1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-27 01:48:17 +00:00
Commit Graph

50 Commits

Author SHA1 Message Date
matejcik
19a0f4cc7b tx_api: support blockbook, allow url-less operation
Bitcoin Testnet backends were removed.
This broke our tests that work purely on local data but nevertheless
need to know backend URLs. Because the design is less than ideal.

Here, we do a little cleanup:
* blockbook URLs are respected
* Dogecoin is now supported by our blockbook backend so we don't need
  a special tx-api implementation
* it's possible to instantiate a TxApi that is backed by the cache,
  without a known URL
* relevant tests now make use of this feature
2018-07-09 13:46:18 +02:00
matejcik
54f1599a5a regenerate license headers
This clarifies the intent: the project is licenced under terms
of LGPL version 3 only, but the standard headers cover only "3 or later",
so we had to rewrite them.

In the same step, we removed author information from individual files
in favor of "SatoshiLabs and contributors", and include an AUTHORS
file that lists the contributors.

Apologies to those whose names are missing; please contact us if you wish
to add your info to the AUTHORS file.
2018-06-21 16:49:13 +02:00
Pavol Rusnak
e4dcc8d8c6
zcash overwinter support 2018-06-05 16:05:14 +02:00
matejcik
bd43363b1c coins: refactor, use data from coins.json instead of hardcoded lists 2018-04-10 15:58:34 +02:00
matejcik
e3d59eedfb tx_api: drop completely unused Smartbit API 2018-04-10 15:58:34 +02:00
Tomas Susanka
869af4498b tests/device: Bitcoin Gold tests 2018-03-07 16:43:01 +01:00
脇山P
4cbf74f789 Support monacoin (#215) 2018-02-08 14:09:40 +01:00
Anton Kolesnyk
a8cd90c3ad Add varying url to broadcast tx, depending on the api 2018-01-15 00:25:05 +01:00
Anton Kolesnyk
28c9820b3d Fixes for BlockCypher API and Dogecoin. 2018-01-14 16:14:39 +01:00
Pavol Rusnak
6b31ac9753
fix typo 2017-12-27 01:44:26 +01:00
Anton Kolesnyk
956d5e7149 Add sign_tx support for Dogecoin 2017-12-27 01:39:06 +01:00
Saleem Rashid
9229f8b80a coins: Add Decred Testnet 2017-12-18 16:34:43 +01:00
slush
a27217811b Rework from Google's protobuf to pure-python protobuf implementation 2017-12-17 02:19:16 +01:00
Jochen Hoenicke
69067c9280 Parse json floats as string
With python-2.7 the float values are sometimes rounded to unacceptable
levels, e.g. stripping the last two digits for values over 100k BTC.
This change parses floats as strings to avoid rounding.

Refactored get_url out of fetch_json to make it easier to add
new tx_api with a different url scheme.
2017-11-28 19:55:31 +01:00
Pavol Rusnak
a5fc76d8c9
don't use generic Exception, but rather specific subclass 2017-11-06 11:10:23 +01:00
Pavol Rusnak
23d75bfc10
trezorctl: sign_tx command based on tx_sign_tool by mruddy 2017-10-24 00:50:01 +02:00
Pavol Rusnak
33f274d145
style: use flake8 2017-06-23 21:52:53 +02:00
Pavol Rusnak
e7a56899c6
more python3 compatibility 2017-06-19 00:00:26 +02:00
mruddy
72ab93bd87 add a tx signing tool that handles bitcoin, testnet, and litecoin 2017-02-26 16:44:49 +01:00
mruddy
b29331ca40
fix UnboundLocalError cache_file referenced before assignment (#102) 2017-02-26 16:38:56 +01:00
Pavol Rusnak
06cedd2150
move device (=TREZOR) tests to tests/device_tests, create tests/unit_tests for unit tests 2016-11-28 16:04:55 +01:00
Pavol Rusnak
ec966a0111
rename txcache files to json 2016-11-28 14:33:24 +01:00
Pavol Rusnak
0bba092741
add LGPLv3 headers to sources files 2016-11-25 22:53:55 +01:00
Pavol Rusnak
046ced3f81
rework txapi class to use local cache, add txcache fixtures 2016-11-08 15:07:58 +01:00
Pavol Rusnak
22faa4cafa
add msg_signtx_zcash unittest 2016-10-21 15:25:24 +02:00
Jochen Hoenicke
d5daf1d2f0
Fixed unit tests (also for Python 3)
Removed old unit tests for non-implemented functions (SimpleSignTx, Ecies).
2016-06-28 01:06:51 +02:00
Pavol Rusnak
3a108ee8a5
fix pylint warnings 2016-05-26 17:20:44 +02:00
Pavol Rusnak
fdc3cff1d6
use requests instead of urllib mess 2016-05-20 16:09:14 +02:00
slush0
64fadde3e0
Passes first unit tests (against trezor-emu over transport_pipe).
WIP: Issue with console printing of protobuf messages (probably bug in protobuf for python3 itself).
WIP: Disabled Bridge transport because of json_protobuf incompatibility with python3.
WIP: Broken expectations of returned objects in unit tests
2016-05-20 13:46:51 +02:00
slush0
6ec2ff3eac
Preparation for python3 support (WIP) 2016-05-20 13:46:51 +02:00
Pavol Rusnak
828026dd40
Merge branch 'segwit' of github.com:jhoenicke/python-trezor 2016-05-19 11:59:19 +02:00
Pavol Rusnak
ec870f3a57
update protobuf, disable filecache 2016-05-19 11:50:33 +02:00
Jochen Hoenicke
aa3392fa7c SegWit support 2016-05-01 14:21:20 +02:00
Jochen Hoenicke
337fe029fd insight api: use hex code
The insight api transaction parser used to look at the assembly to
reconstruct the input and output scripts.  This patch changes it to
use the hex input directly.  This fixes parsing some instructions with
unknown opcodes (e.g. multisig inputs with "0" opcode).
2015-05-10 16:11:03 +02:00
Pavol Rusnak
e2a8f08581 add local version of filecache (used just for unittests), cache globally (to tmpdir) 2015-05-07 18:29:38 +02:00
nelisky
f3b7629a4f Prevent floating point issues when pushing output amount 2015-03-03 23:37:32 +00:00
nelisky
e4429242aa Allow insight_tx to be passed a dict object instead of an url 2015-03-03 23:36:51 +00:00
Pavol Rusnak
049166d6c9 disable filecache by default 2015-02-22 14:40:21 +01:00
slush0
bd7c575be3 Fixed testnet URL 2015-01-23 21:24:15 +01:00
Pavol Rusnak
399deeee67 add tests for multisig tx change confirmation 2014-12-20 23:45:40 +01:00
Pavol Rusnak
87d3688ed7 update bitcore to insight in tx_api.py 2014-12-02 03:58:26 +01:00
slush0
4e963cfd3c Fixed handling of coinbase tx 2014-05-28 14:38:44 +02:00
slush0
ff77261a61 Fixed bin_output 2014-04-10 15:23:35 +02:00
Pavol Rusnak
60df691bb2 make txapi class more universal 2014-04-02 19:31:47 +02:00
Pavol Rusnak
c3f74420a4 add OP_EQUAL to txapi parser 2014-04-02 19:18:14 +02:00
Pavol Rusnak
0ca0594077 parse sequence in txapi as well 2014-03-30 00:44:42 +01:00
Pavol Rusnak
49eec8b78e txapi cleanup 2014-03-29 21:31:17 +01:00
Pavol Rusnak
7a1e2827c8 check for known scriptPubKey asm 2014-03-28 21:48:48 +01:00
Pavol Rusnak
38ed16934f use bitcore for tx api 2014-03-28 21:34:15 +01:00
Pavol Rusnak
860aa753c9 put TXAPIs into one location 2014-03-28 19:51:56 +01:00