matejcik
efcaf7bda6
python/btc: improve missing signature detection
2020-08-05 16:45:56 +02:00
matejcik
037bef3a38
python: fix logging of protobuf repeated enums
2020-08-05 16:45:56 +02:00
matejcik
c244503e1f
python/trezorctl: add aliases for firmware-update
2020-08-05 16:45:56 +02:00
matejcik
d5fe57012d
python: bump version before release
2020-08-05 16:45:56 +02:00
matejcik
2678e64a99
python/trezorctl: improve file-based arguments
2020-08-05 16:45:56 +02:00
matejcik
e585d35f34
python: clarify session and feature management API
...
init_device() should be used to initialize a session. Reuses existing
session if available.
end_session() explicitly closes any existing session and requests a new
one
lock() enables soft-lock
clear_session() is the equivalent of lock() + end_session()
A new function ensure_unlocked() can be used to open a session and
prompt for PIN and passphrase before further operations.
2020-08-05 16:45:56 +02:00
matejcik
95f33a77c7
python/trezorctl: support multisig addresses in get-address
2020-08-05 16:45:56 +02:00
Andrew Kozlik
62d66a713c
python: Add cancel_authorization() to trezorlib.
2020-08-04 17:32:44 +02:00
Andrew Kozlik
5c1f197602
common/protob: Add CancelAuthorization message.
2020-08-04 17:32:44 +02:00
Andrew Kozlik
85cf79169c
python: Support preauthorized operations in trezorlib.
2020-08-04 17:32:44 +02:00
Andrew Kozlik
84c1324290
python: Add authorize_coinjoin() to trezorlib.
2020-08-04 17:32:44 +02:00
Andrew Kozlik
2c30dd62fc
common: Add DoPreauthorized message.
2020-08-04 17:32:44 +02:00
Andrew Kozlik
bbab13f6e7
common/protob: Add AuthorizeCoinJoin message.
2020-08-04 17:32:44 +02:00
gabrielkerekes
a5d3b63912
Refactor trezorlib transaction key checking
2020-07-30 17:17:03 +02:00
gabrielkerekes
f2ee450410
Include metadata in transaction signing
2020-07-30 17:17:03 +02:00
gabrielkerekes
c29d297a77
Set default values to client functions parameters
2020-07-30 17:17:03 +02:00
gabrielkerekes
93b9f35678
Update trezorlib
...
Add certificates, withdrawals and metadata hash
2020-07-30 17:17:03 +02:00
gabrielkerekes
e92baf5b02
Update protobuf
2020-07-30 17:17:03 +02:00
gabrielkerekes
b5f3511c1c
Add support for script addresses in tx outputs
2020-07-30 14:43:32 +02:00
matejcik
741fca0156
tests: watch_layout must be explicit ( fixes #1142 )
2020-07-29 11:50:47 +02:00
Pavol Rusnak
cec87bba50
core: remove mono bold font variant (not used anywhere)
2020-07-27 23:22:34 +02:00
Gabriel Kerekeš
d2c1624602
Cardano shelley update 2/3 ( #1112 )
2020-07-27 13:11:23 +02:00
gabrielkerekes
e1615e60ec
Update Cardano to support Shelley era 1/3
...
Update protobuf
- Previous transactions don't need to be sent anymore, because fee is
included in the transaction now. Thus transactions_count can be
removed from CardanoSignTx message and the CardanoTxAck and
CardanoTxRequest messages can be removed altogether.
- CardanoTxInputType.type is unused so remove it
Add NULL (None type) serialisation to CBOR
- Transaction metada must either have a valid structure or CBOR NULL
must be used (if metadata is empty) - it can't be simply left out.
Add protocol_magics file
- Just to have a nicer way of representing protocol magics
Update transaction signing
- Previous transactions no longer need to be requested
- Output building is simplified, since fee doesn't need to be calculated
- Remove transaction class since it is no longer needed (only functions
remained)
- Reorder functions so it reads top to bottom
Add protocol magic to byron address on testnet
- This has always been a part of the spec, but it hasn't been
implemented before, because it wasn't really needed.
Update trezorlib
Update tests
- Transaction messages are no longer required
- Expected values are different since tx format changed
- Common values in test cases have been extracted
Remove unused file
- Progress was used when receiving previous transactions
Add CRC check to output address validation
2020-07-27 13:04:49 +02:00
matejcik
fdcb64ac24
all: rename protobuf unsafe_prompts
to safety_checks
2020-07-24 16:37:58 +02:00
matejcik
8f8e793155
core, python: add changelogs
2020-07-24 16:37:58 +02:00
matejcik
1109250dcf
core: add option to allow unsafe prompts
2020-07-24 16:37:58 +02:00
matejcik
c964ff702d
python: disallow setting auto-lock without PIN
2020-07-10 14:05:52 +02:00
matejcik
fb03a174c1
python: remove linkify-changelog reference as it now lives in root
2020-07-08 10:43:40 +02:00
matejcik
a19a9a318a
all: improve changelog formatting
2020-07-08 10:43:40 +02:00
Andrew Kozlik
a973c3bc6e
python: Add get_ownership_id() and get_ownership_proof() to trezorlib.
2020-07-03 11:17:19 +02:00
Andrew Kozlik
533de50588
common/protob: Add GetOwnershipId message.
2020-07-03 11:17:19 +02:00
Andrew Kozlik
6c523d09e0
tests/sign_tx: Don't expect signatures to be returned for external inputs.
2020-07-03 11:17:19 +02:00
Andrew Kozlik
956ea9a94f
common: Add ownership_proof field to TxInputType.
2020-07-03 11:17:19 +02:00
Andrew Kozlik
c723c78529
common/protob: Add GetOwnershipProof message.
2020-07-03 11:17:19 +02:00
Andrew Kozlik
cc655575c8
common: Add witness field to TxInputType.
2020-07-03 11:17:19 +02:00
Tomas Susanka
14a8da9c28
common: remove underscore from 'overwintered' field
...
Due to some Suite/Connect compatibility issues.
2020-07-01 13:56:32 +00:00
Tomas Susanka
ca3dd2bfb9
common: skip deprecated fields during generation; deprecate overwintered field in Zcash
2020-06-30 16:02:21 +02:00
matejcik
312d6ea822
python: fix padding in first chunk ( fixes #1082 )
2020-06-25 11:23:26 +02:00
Tomas Susanka
e534ae3ad7
legacy, core: rename Features.pin_cached to unlocked and unify
2020-06-19 21:26:36 +02:00
matejcik
6f53ca0ac6
core: rework wait_layout()
...
The original wait_layout was unreliable, because there are no guarantees
re order of arrival of the respective events. Still, TT's event handling
is basically deterministic, so as long as the host sent its messages
close enough to each other, the order worked out.
This is no longer the case with the introduction of loop.spawn: TT's
behavior is still deterministic, but now ButtonAck is processed *before*
the corresponding wait_layout, so the waiting side waits forever.
In the new process, the host must first register to receive layout
events, and then receives all of them (so the number of calls to
wait_layout must match the number of layout changes).
DebugLinkWatchLayout message must be version-gated, because of an
unfortunate collection of bugs in previous versions wrt unknown message
handling; and this interests us because upgrade-tests are using
wait_layout feature.
2020-06-04 16:18:46 +02:00
matejcik
5d823ff5ea
core: use ButtonRequestType.PinEntry for PIN entry
2020-06-04 16:18:46 +02:00
matejcik
bbfce4e303
common: introduce ButtonRequestType.PinEntry
2020-06-04 16:18:46 +02:00
matejcik
fc6c99c6f9
tests: disable PIN detection, all PIN uses must be explicit
2020-06-04 16:18:46 +02:00
matejcik
b68cc5abda
python/debuglink: implement use_pin_sequence support for trezor-core
2020-06-04 16:18:46 +02:00
matejcik
62ced317cd
python/debuglink: proto -> messages
2020-06-04 16:18:46 +02:00
matejcik
ee32806bb2
python/debuglink: add debuglink message logging
2020-06-04 16:18:46 +02:00
matejcik
6069173252
python/debuglink: clean out debuglink methods
2020-06-04 16:18:46 +02:00
matejcik
0600d87c8c
common: rename ClearSession to LockDevice, introduce EndSession
2020-06-04 16:18:46 +02:00
matejcik
83d3acb0a6
python: fix dead code in protobuf pretty-printing
2020-05-29 12:27:42 +02:00
Tomas Susanka
9dfc08ca61
core/bitcoin: drop decred_script_version
2020-05-21 19:14:39 +02:00
matejcik
29db769185
tests: update test vectors to use correct paths
2020-05-15 14:08:29 +02:00
matejcik
aeaa402b75
python: fix PASSPHRASE_TEST_PATH
2020-05-15 14:08:29 +02:00
Tomas Susanka
15e33b42c0
python: style
2020-05-05 07:05:53 +00:00
Serge
e900173b9c
python/trezorctl: del an outdated mesage
2020-05-05 06:46:49 +02:00
Serge
4e25c396d2
python/trezorctl: display embedded v2 image fingerprint ( fixes #977 )
2020-05-05 06:46:49 +02:00
matejcik
59f43514be
python: convert chunks to bytes when reading from hid
2020-05-04 10:16:15 +02:00
matejcik
7ebbccdbba
python/debuglink: support conditional expected_responses
2020-04-25 18:27:29 +02:00
matejcik
5885978c83
Merge branch 'release/2020-04'
2020-04-15 15:00:23 +02:00
Dusan Klinec
25b6e9058f
xmr: proto - add fields for protocol optimization
2020-04-13 22:19:56 +02:00
matejcik
c65b14cb2f
python: add information about incompatible changes to CHANGELOG
2020-04-09 12:49:29 +02:00
Jonathan Cross
f756bec0fe
Adding @jonathancross to AUTHORS
2020-04-06 10:11:08 +02:00
matejcik
f48cb4eff4
python: update changelog, release 0.12.0
2020-04-01 12:13:16 +02:00
matejcik
e2199f6099
python: update changelog, regenerate OPTIONS.rst
2020-03-26 11:30:06 +01:00
matejcik
1b50877545
tests: streamline TrezorFailure exception usage
2020-03-26 11:30:06 +01:00
matejcik
a40f1e00ed
python: add period at end of sentence
2020-03-26 11:30:06 +01:00
matejcik
2402853b9c
python: simplify outdated firmware warning (full message is still used in the exception)
2020-03-26 11:30:06 +01:00
matejcik
f52c087cb6
python/trezorctl: implement common client and exception handling ( fixes #226 )
2020-03-26 11:30:06 +01:00
matejcik
b440ca1ec5
python: drop deprecated name CallException
2020-03-26 11:30:06 +01:00
matejcik
7a85d93d94
python/debuglink: properly use session_counter for debuglink transport
2020-03-26 11:30:06 +01:00
matejcik
af05e0927f
python/trezorctl: nicer output for list-devices
2020-03-26 11:30:06 +01:00
matejcik
b801f1a9cf
python/trezorctl: help user find the right firmware version ( fixes #823 )
2020-03-26 11:30:06 +01:00
matejcik
2112da7ab5
python/trezorctl: send raw bytes to device ( fixes #116 )
2020-03-26 11:30:06 +01:00
matejcik
9a330f3475
python: unify protobuf-encoding code paths
...
Protobuf encoding now happens in TrezorClient, and transports get encoded blobs
to (chunkify and) send. This is a better design because transports don't need
to know about protobuf.
It also lays groundwork for sending raw bytes feature (#116 )
This commit also removes all vestiges of ProtocolV2 which was never used and
will probably need to be redesigned from the ground up anyway. The code is
still ready for protocol flexibility.
2020-03-26 11:30:06 +01:00
matejcik
22b167a961
python: update tools/build_tx.py
2020-03-26 11:30:06 +01:00
matejcik
9d29952a15
python: move out deprecated ckd_public
2020-03-26 11:30:06 +01:00
matejcik
5dfb01c25d
python: drop old Electrum compatibility code
2020-03-26 11:30:06 +01:00
matejcik
687c32e267
python: regenerate OPTIONS.rst
2020-03-26 11:30:06 +01:00
matejcik
fabd504b77
python: drop unnecessary parts of setup.py
2020-03-26 11:30:06 +01:00
matejcik
6ccf22225c
python: drop coins.json ( fixes #752 )
2020-03-26 11:30:06 +01:00
matejcik
325dae890e
python: completely drop trezorlib.coins and trezorlib.tx_api
2020-03-26 11:30:06 +01:00
matejcik
5a526888cf
python: move json_to_tx to btc.from_json, add test cases
2020-03-26 11:30:06 +01:00
matejcik
d2dd78f979
python: drop TxApi and coin specializations in json_to_tx
2020-03-26 11:30:06 +01:00
matejcik
208bac8653
common: drop capricoin blockbook servers
2020-03-26 11:30:06 +01:00
matejcik
ffdb299c61
all: drop Capricoin support [NO BACKPORT]
2020-03-20 14:19:30 +00:00
matejcik
e2035b4972
all: drop Horizen and BIP-115 support [NO BACKPORT]
2020-03-20 14:19:07 +00:00
matejcik
27803ee8c1
all: drop overwintered field from transaction
2020-03-20 14:18:27 +00:00
Pavol Rusnak
817b922850
all: add extra_data and timestamp fields to coin specification
2020-03-20 14:18:27 +00:00
Andrew Kozlik
e51ed5bf05
trezorlib: Regenerate coins.json.
2020-03-17 11:53:48 +01:00
Andrew Kozlik
ac78d1e2f3
trezorctl: Validate PIN digits and length.
2020-03-17 11:53:48 +01:00
Andrew Kozlik
2f905a1157
core/webauthn: Add algorithm and curve to WebAuthnListResidentCredentials response.
2020-03-12 15:45:26 +01:00
Michail Brynard
c2635a4773
python: fix encoding errors in Stellar
2020-03-02 16:01:15 +01:00
matejcik
b916072389
common: restore PassphraseAck.state
2020-02-24 15:15:09 +01:00
matejcik
5523c7bbef
tests: add SD card format feature tests
2020-02-20 12:51:48 +01:00
matejcik
ddee77ecb6
core: add SD clearing via debuglink
2020-02-20 12:51:48 +01:00
Tomas Susanka
ff1bb67abc
common: return the PasshraseType button request
2020-02-20 08:04:35 +00:00
matejcik
e61b7d28e9
all: do not send state in PassphraseAck (not needed for compatibility)
2020-02-13 15:44:50 +01:00
matejcik
3959600760
python/protobuf: do not warn for unknown enum values ( fixes #832 )
2020-02-13 15:37:14 +01:00
matejcik
cdb7a7eb68
Merge pull request #840 from trezor/matejcik/sys-exit
...
wipe code activation tests
2020-02-13 15:11:33 +01:00
matejcik
0ec628ccd4
legacy: fix CALLBACK checker
2020-02-12 17:18:51 +01:00
matejcik
1cc1382153
python/trezorctl: improve get-session
2020-02-12 17:18:50 +01:00
matejcik
81a03edf61
python/debuglink: add docstrings, rename functions for clearer usage
2020-02-12 15:38:18 +01:00
matejcik
271da3fa39
python: add detailed logging to emulator runner
2020-02-12 13:31:58 +01:00
matejcik
7a253a6c0b
python/debuglink: properly clean up at end of "with client"
2020-02-12 13:31:31 +01:00
matejcik
94b85efba1
python/debuglink: make pin sequences configurable
2020-02-12 10:36:42 +01:00
Tomas Susanka
2c0504ad1c
Merge pull request #803 from trezor/passphrase
...
Passphrase Redesign
2020-02-11 16:01:59 +01:00
matejcik
1ebaaa7e77
python/emulator: increase tolerances
...
This should help in CI where things can sometimes take a long time.
2020-02-11 13:20:35 +01:00
matejcik
a375460afc
python/emulator: fix timeout parameter in emulator.wait()
2020-02-11 13:20:35 +01:00
matejcik
05a1d6f771
core/debug: add "show arbitrary screen" capability, for easier prototyping
2020-02-11 11:53:34 +01:00
matejcik
c01d04f26e
common/protob: drop a default field declaration
...
which triggers nanopb bug https://github.com/nanopb/nanopb/issues/487
2020-02-11 11:53:34 +01:00
matejcik
4b0d8d5f6d
python/trezorctl: tweak error message in get-session
2020-02-10 16:22:48 +01:00
matejcik
7f63cf28b0
python: only set session_id from Features on firmwares that send it
2020-02-10 16:15:45 +01:00
matejcik
6dace16033
python: update changelog
2020-02-10 16:14:27 +01:00
matejcik
d4343ad8b7
python/trezorctl: add get-session
2020-02-10 16:14:21 +01:00
matejcik
8d93503c9c
python: do not send deprecated state in PassphraseAck on T1
2020-02-10 15:38:26 +01:00
matejcik
f7608f55ff
python: implement backwards compatibility for pre-2.3.0 firmwares
2020-02-10 13:01:47 +01:00
matejcik
4c9689d7a7
common: return deprecated fields to protobuf, to allow cross-version compatible code
2020-02-10 12:35:28 +01:00
Tomas Susanka
56dc952495
common: fix PassphraseAck.on_device id
2020-02-07 14:19:01 +00:00
Pavol Rusnak
73ed2f3450
legacy: small nitpicks related to the new passphrase handling
2020-02-07 11:41:03 +00:00
matejcik
ee07b32f52
python: fix debuglink usage of get_passphrase
2020-02-07 11:41:02 +00:00
matejcik
7513a65f9a
python: move passphrase-on-host logic to UI class
2020-02-07 11:41:01 +00:00
matejcik
23ad62e719
python: bump versions
2020-02-07 11:41:01 +00:00
Tomas Susanka
dc53df772f
python: passphrase on host is the default for T1
2020-02-07 11:41:01 +00:00
Tomas Susanka
d5763d9cab
all: implement code review comments
2020-02-07 11:41:01 +00:00
Tomas Susanka
f3553f63f1
common: remove PassphraseRequest.on_device completely
2020-02-07 11:41:00 +00:00
Tomas Susanka
c65b57affb
core, legacy: remove passphrase_cached
2020-02-07 11:41:00 +00:00
Tomas Susanka
1ae5813cab
legacy: bump version to 1.9.0
2020-02-07 11:41:00 +00:00
Tomas Susanka
a3f3d4fcdb
remove ping.passphrase/pin
2020-02-07 11:41:00 +00:00
Tomas Susanka
466dc4732d
core/passphrase: add button requests
2020-02-07 11:40:59 +00:00
Tomas Susanka
cd09f9ce94
all: modify passphrase source to always on device
2020-02-07 11:40:59 +00:00
Tomas Susanka
eafd57c301
common, core: add passphrase entry capability
2020-02-07 11:40:58 +00:00
Tomas Susanka
90d5cdfd5b
all: rework passphrase
...
The `on_device` field is being moved to PassphraseAck, State messages
are removed. Features newly contain `session_id`.
2020-02-07 11:40:58 +00:00
matejcik
d28e33ef02
core/headertool: support generating vendor headers with explicit size
2020-02-05 12:23:34 +01:00
matejcik
0a052806c7
python: kill emulator if it doesn't become ready in time
...
this fixes a problem in upgrade-test, when one emulator fails to come up
and then blocks all other tests.
the CI task will still be failed, but at least we'll know at a glance
that it is a timeout problem
2020-01-28 16:15:09 +01:00
matejcik
72537e3c3a
python: exclude broken version of construct to fix CI build
2020-01-28 15:47:48 +01:00
Tomas Susanka
d2f8a83057
docs: fix title and trezorlib readme link
...
By adding it to SUMMARY.md.
2020-01-28 09:30:04 +00:00
matejcik
f506bd4447
python: update README ( fixes #788 )
2020-01-24 18:10:31 +01:00
matejcik
37ea0773ea
python: do not preload prev_txes, drop dependency on coins.json
2020-01-24 17:51:43 +01:00
matejcik
8dce2cf98c
core: introduce emulator runner ( fixes #466 )
2020-01-23 18:43:20 +01:00
matejcik
05131c328d
python: trezorctl should not print empty line if result is None
2020-01-23 15:50:28 +01:00
matejcik
c151fdeefd
python: add wait-for-emulator command
2020-01-23 15:50:28 +01:00
Pavol Rusnak
a95405b693
python: don't use py3.6+ format strings yet
2020-01-21 16:29:13 +00:00
matejcik
4d7e3c8a23
python: use TREZOR_PATH in get_default_client
2020-01-20 17:33:00 +01:00
matejcik
1b04d1caa7
core/tools: drop tools obsoleted by headertool
2020-01-20 17:32:59 +01:00
matejcik
9341f0d584
core: improve building of vendor headers
2020-01-20 17:32:59 +01:00
matejcik
cc29b22f91
core/tools: introduce headertool
2020-01-20 17:32:58 +01:00
matejcik
b26a430b85
python/firmware: shorten names for vendor header fields
2020-01-20 17:32:58 +01:00
matejcik
3fc3231254
python/firmware: simplify calculate_code_hashes
2020-01-20 17:32:58 +01:00
matejcik
40477b836e
python/firmware: make header_digest function more intelligent
2020-01-20 17:32:58 +01:00
matejcik
18d4bd30a3
python/firmware: add production and development boardloader keys
2020-01-20 17:32:58 +01:00
matejcik
15bd35824b
python/cosi: improve API
...
cosi.verify was renamed to verify_combined, because it is pretty much
ed25519.verify, and the new name implies what it does in terms of the
CoSi scheme: verify a signature with already-combined public keys.
cosi.verify_m_of_n signature was simplified by not requiring the `n`
parameter, which is not important for verification. The updated function
was renamed to cosi.verify, because this is the standard CoSi
verification operation: given signature, digest, required number of
signatures, sigmask, and a list of public keys, verify that enough
signatures are indicated and that they sign the digest.
2020-01-20 17:32:58 +01:00