-
-
Notifications
You must be signed in to change notification settings - Fork 194
Conversation
619253a
to
14fad6e
Compare
1ddcabe
to
01ef6e2
Compare
beeeb65
to
a5538c4
Compare
a4f6f1b
to
09970dc
Compare
@matejcik I merged in trezor-common changes for Lisk messages in trezor/trezor-common@6a7710c The Protobuf API is VERY similar to the Bitcoin API, so trezorctl/client changes should be also very similar. Can you please review this PR to python-trezor? Not sure about auto-generated messages in One final note: Lisk is implemented only for T2 (in trezor-core), so tests should include |
@prusnak |
@prusnak the "generated messages in git" are to support people who don't have (the appropriate version of) |
Agreed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly LGTM, apart from one nitpick.
trezorlib/client.py
Outdated
resp = self.call(proto.LiskVerifyMessage(signature=signature, public_key=pubkey, message=message)) | ||
except CallException as e: | ||
resp = e | ||
if isinstance(resp, proto.Success): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change this to return isinstance(...)
(yes, all other verify_message functions have this. that will be changed, let's not put it into new code)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matejcik done
the code looks mostly good. however what I see as a problem is that several clearly numeric fields are declared as strings? |
Please wait with the merge until we resolve int/string discussion in trezor/trezor-core#90 |
@alepop when the int conversion goes through, please rebase this PR onto current master, update the |
1a60697
to
f500dc5
Compare
f500dc5
to
adc6258
Compare
@matejcik done. |
looks good, thanks |
Messages: trezor/trezor-common#68
Progress:
dApp
tx types wil not allowed in the Lisk 1.0 releasedapp tansactiondapp In transfer transactiondapp out transfer transaction