-
Notifications
You must be signed in to change notification settings - Fork 570
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 tx qrcode #2657 #3454
Add tx qrcode #2657 #3454
Conversation
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.
Thanks. The commit history is a bit messy, it would be better if rebase to develop
branch and force-push.
OK, I'll attention to this next time. |
Current QR code is giving this now
Is that consumable by the app @syalon ? Should it maybe only contain the ops? (what you see in the json popup) |
As mentioned in the issue, I think the |
The icon looks good to me. Thanks. What if the "propose" option is switched on? By the way, can you add a text box so that I can copy the JSON text easily? Although I can extract it from the QR code with a tool, it is not that convenient. |
It might be better to have a copy button on top of the QRcode modal box than the text box. |
To be available without unlocking the wallet, the entry needs to be placed on the unlock mode box. |
How about a text box / area with a copy button? I think it might be confusing if there is only a copy button -- copy an image?
As Stefan mentioned, for a transfer or another operation which contains a (non-empty) memo, the memo private key is needed to encrypt the memo when constructing the transaction. That's why Stenfan said "login with the memo key". Another scenario is that the memo key is on the device to scan / read the QR code but can not be exported, so the user can not login anyway. I think we need to adjust the UX in this case. For now, perhaps show more info on the UI about why need to login and login with which key or password? A new user probably does not know the difference between logging in with a private key or a master password, an advanced user may know. On the other hand, many people like to see a stupid simple UI - sometimes one click for all. There has to be a compromise. Generally, we can defer the "has logged in" check. Or say, only check whether the user has logged in when the "confirm" button is clicked, remove the check from the send modal (also see #1285). |
I just had a discussion with @syalon . To deal with the scenario that a user wants to encrypt memo on the QR code reader side, we can add some flags in the JSON, E.G. (specification to be defined)
Note: it can be more complicated if an operation in the transaction is a In addition, for future expansion, maybe it's better to add a |
This reminds me of earlier discussions about QR code scanning, E.G.
Perhaps I have made it too complicated already. If @syalon confirms the current implementation fits his needs, we can release it first and improve in later versions. |
Yes, there should be a complete solution with the mobile App. |
If it is only the memo issue, we can go with a simpler struct, E.G.
Or even
With one of these approaches the length of the JSON string won't increase much. Thoughts? |
is the unencrypted_memos field just an index? or unencrypted message data? |
The solution in #775 asks for a URI scheme that can be used in places that do not allow or do not want to build transactions themselves, I see this as a separate use case, the holistic approach is out of scope for this PR. This one only adds the QRcode to the Confirm dialog, and that's it, even changing the current login routine is out of scope. To stay as close as possible to the use case at hand (integration of beet or any other external signing app would require the same change), my suggestion would be an implicit approach without changing the current format since it reflects an unsigned json transaction. An encrypted memo looks like this
Let's assume there is a way in the UI to get to the transaction confirm dialog before logging in, i.e. memo is only available as plain string. A representation could then look like this
The above payload could then be sent to the mobile app via QRcode, or to Beet. Both applications recognize there is need to encrypt and do that by themselves. |
Why close this? |
Sorry, I deleted it by mistake while organizing my library, it has been restored |
b056a17
to
fd99821
Compare
is qrcode available on develop.bitshares.org? |
I will merge this for now, let's iterate on this to fit your and anyone elses needs @syalon |
Thanks, found it. @sschiessl-bcp |
add tx qrcode in to TranscationConfirm
#2657