1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-11 07:50:57 +00:00
trezor-firmware/trezorlib
matejcik db92b13f97 cosi: move things around
ed25519raw is moved back to trezorlib
ed25519cosi is renamed to cosi, and has a couple more functions,
with the expectation that TrezorClient.cosi_* methods will move there.

Also most code shouldn't need ed25519raw for anything, so it might get
renamed to "_ed25519" to indicate that it's a private implementation.

For now, I added a "verify" method to cosi, so that you don't need to
call into ed25519raw.checkvalid. But trezor-core's keyctl is also
using ed25519raw.publickey. I'm not sure if that's worth replicating
in cosi, or whether to just leave it be, so I'm leaving it be for now.

Importantly, new function "sign_with_privkey" does that math thing that
was part of the selftest and is also explicitly listed in keyctl.
(it's called sign_with_privkey because I expect to have a "sign" method
here that calls into Trezor)
2018-05-17 12:53:01 +02:00
..
messages protobuf: update generators and messages to be identical with trezor-core 2018-05-09 17:15:13 +02:00
qt don't use generic Exception, but rather specific subclass 2017-11-06 11:10:23 +01:00
tests cosi: move things around 2018-05-17 12:53:01 +02:00
transport flake8: make flake8 better and more strict 2018-04-10 15:58:34 +02:00
__init__.py bump version to 0.9.1 2018-03-05 19:14:04 +01:00
client.py client: clean up exception and decorator code 2018-05-11 15:34:49 +02:00
coins.py coins: wrap JSON errors in an ImportError 2018-04-10 15:58:34 +02:00
cosi.py cosi: move things around 2018-05-17 12:53:01 +02:00
debuglink.py logging: get rid of pprint and VerboseWireMixin 2018-05-11 15:29:38 +02:00
device.py restore device.py as a deprecated compatibility wrapper 2018-03-05 16:18:32 +01:00
ed25519raw.py cosi: move things around 2018-05-17 12:53:01 +02:00
log.py logging: convenience function to set up protobuf logging 2018-05-11 15:29:38 +02:00
mapping.py Added registering custom protobuf messages by application. 2017-12-17 03:17:37 +01:00
nem.py tests/device/nem: multisig tests 2018-04-10 14:50:01 +02:00
protobuf.py protobuf: improve prettyprint formatting 2018-05-11 15:29:38 +02:00
protocol_v1.py protocol: python logging to supersede VerboseWire 2018-05-11 15:29:38 +02:00
protocol_v2.py protocol: python logging to supersede VerboseWire 2018-05-11 15:29:38 +02:00
stellar.py fix style to match flake8 2018-04-28 12:59:08 -06:00
tools.py trezorlib: remove Hash to btc_hash, prepare for moving it away from things 2018-05-11 15:29:38 +02:00
tx_api.py coins: refactor, use data from coins.json instead of hardcoded lists 2018-04-10 15:58:34 +02:00