-
-
Notifications
You must be signed in to change notification settings - Fork 710
feat(cardano): Message signing #3509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Made some changes after feedback from software wallet devs |
bfccf17
to
e3c4907
Compare
Heads-up: There are conflicts with main so I'm about to rebase |
e3c4907
to
8381708
Compare
Heads-up: Rebasing again to fix conflict |
8381708
to
8ceefbf
Compare
you are adding new texts, so you will now need to convert to translations and update.
|
8ceefbf
to
b3b317a
Compare
b3b317a
to
4bb7871
Compare
I've rebased on top of the current |
Hi @matejcik, could we finish also this please? |
@matejcik any update please? |
Spamming GitHub with comments that add no value is exactly what you do not want to do as a community. It adds lots of noise into all developers' inboxes and we should prefer work on them on code, not reading useless comments. Locking discussion to collaborators-only. |
eyes on this please, lots of users can't claim midnight drop because they can't sign messages with their trezor ada wallets |
if not isinstance(response, m.CardanoMessageSignature): | ||
raise ValueError("Unexpected response") |
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.
if not isinstance(response, m.CardanoMessageSignature): | |
raise ValueError("Unexpected response") | |
response = m.CardanoMessageSignature.ensure_isinstance(response) |
ACK from me, leaving the rest to @obrusvit whoever ends up doing the final review, please specifically confirm that we're showing the whole payload to the user; there are remnats in the code for "first chunk" display |
97619a8
to
e0af7d0
Compare
I am taking this over.
So your request @matejcik is both fulfilled and unfulfilled at the same time. Do you think we should raise an error if the data is too long rather than truncating? Or simply not truncate and keep scrolling? |
not truncate, keep scrolling. |
Show signing path, validate with keychain, show address parameters and increase max displayed bytes of first payload chunk unless signing hash. Also add issue number to changelog.
This makes the behavior more consistent with Ethereum message signing.
This ends up being useful for software wallets.
[no changelog]
f0eb138
to
7a07c36
Compare
[no changelog]
[no changelog]
7a07c36
to
6fb97f0
Compare
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.
utACK
Adds support for arbitrary message signing as per CIP-8.
https://cips.cardano.org/cip/CIP-0008