1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-24 15:28:10 +00:00
trezor-firmware/trezorlib/tests
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
..
device_tests cosi: move things around 2018-05-17 12:53:01 +02:00
support cosi: move things around 2018-05-17 12:53:01 +02:00
txcache tests/device: Bitcoin Gold tests 2018-03-07 16:43:01 +01:00
unit_tests tests: update imports after tests.support move 2018-05-11 15:29:37 +02:00
__init__.py tests: Move to trezorlib.tests 2017-12-19 13:16:22 +01:00