-
Notifications
You must be signed in to change notification settings - Fork 72
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
Add clear message signing #74
Comments
Hey, I want to work on this issue. Can You Guide Me through the process for that? |
Hi @deepak7488, thanks for your interest in contributing! :) Handler for sign_message: here The state necessary for the UI will need to be added to the global variable here. The handler could do something similar to this:
When showing the message in chunks, it would be even better would be to be able to go to the next (or previous) chunk by just using the left/right buttons. However, this might require some digging into the UX framework of the sdk (which is notoriously not very developer-friendly...) to figure out how to do − and not sure there are use cases for very long messages anyway, at this time. Hope this gives you enough information to get started, feel free to ask more questions! |
As my semester exam is going on, I will work on this after 26 Nov. Thank You for your fast response and for giving me this information. I will be very happy to work on this. |
Hey, I need to have physical nano s devices to develop this app, or I can do it on my mac os. |
It's more convenient to work with the speculos emulator during development; here you shouldfind everything you need to get started! |
Hey, Can you help me set up the development environment I am facing some issues? |
I recommend to join Ledger's developer Discord for these questions, easier to find help there: https://developers.ledger.com/discord-pro |
Hi @bigspider, I know some devs who'd be interested in working on this. Is there a budget for fixing this issue, and if so, how much? I'd put this issue up on OpenQ. Thanks! |
Hi @ef3n9r98. Thanks for your interest, but at this time there are no plans to put on bounties for PRs on the bitcoin application. |
Hi @bigspider. I think there's enough information here for me to start working on this issue. |
Sure, that would be great! Let me know if you have any questions on the tentative specs above. You can use a software wallet like electrum to try the message signing feature, to get an idea of how it would be used in a software wallet. |
Hi @bigspider, Sorry for the delay. I've been quite busy.
What's the memory size? The current UI code displays about 18 characters (9 bytes) of the message hash per screen. Is it safe to assume this limit.
Does this mean we forgo displaying the message hash, if the message is too large and just display the message only? |
Is If I am correct that this function So where is |
|
@bigspider I am testing signing message using the bitcoin_client in the repo. But I am not getting the option to sign or reject. I am just getting the
|
Hi @rxbryan, a caveat The memory is already quite tight on Nano S (meaning: there is not much room to add more space in the global structures − in particular, should make sure to not increase the size of the The
I'd say let's always show also the message hash, as it might be easier for some users (e.g. if they're using a third device to double-check the hash).
Yes, but the way that's written requires all the chunks to be in memory at the same time, which is not feasible if there are many.
It appears from this event log that the action was indeed rejected? |
A complication for this issue at this time is that it will conflict with the PR #126 that adds support to a new device with completely different UX system (as it's a large touchscreen). |
We could create a new flow for displaying messages and pass 64 bytes at a time.
Looking through the code of the PR, It still does make use of the flows as the other models. We can use conditional compilation if the |
Yes, changes are not drastic for non-stax devices, but I'd suggest waiting for that to be merged before working on this issue. |
Alright.
I will remind you xd. |
Can anyone help me getting started?? I want to contribute in this project not only on a single issue. |
The app can already sign arbitrary (binary) messages (using the legacy Bitcoin Message signing scheme that prepends
"\x18Bitcoin Signed Message:\n"
to the message), but only a hash of the message is shown.We could improve the UX (and potentially the practical security for certain protocols) by showing the actual message if it's not very long and displayable as text.
Ideally, the user should be able to scroll back and forth if the message is long (but that could be non-trivial if we can't hold the entire message in memory; perhaps we can have different thresholds on the length for Nano S versus other devices).
The text was updated successfully, but these errors were encountered: