-
Notifications
You must be signed in to change notification settings - Fork 133
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
[solved] QtQr adds invisible characters front of the string in the QRcode #214
Comments
Do you know what are the steps I should take to replicate this bug? In order to better identify this bug and fix it, it would be great if we can find a token (not the one you are using) for which this behavior is true (i.e., generates a different robot in desktop and mobile). I assume you did good diligence before reporting, but are you sure the token did not corrupt while transferring devices? When manually entering a token, it is important to note that base64 has both The frontend token hashing function is the same for both desktop and mobile (in fact, the whole frontend is the same). The hash of the token is the robot identity, so same hash -> same avatar. It would be surprising, at this stage, if this setup is not reliable. |
steps taken:
|
Assuming the issue is exclusive to QtQR, maybe the best solution is to simply avoid this tool and document it. This problem might also occur and be very annoying if you use it to copy a password or a BTC address to your device. I tested whether this hypothesis is true by sending a txid from mempool.space to the Android device:
The result is "Invalid hex string" . One can also see on the browser bar that the URL has characters As a solution for future users encountering a similar problem, the frontend could check for |
This is scary as I was using QtQr occasionally for various things including sharing invoices and PSBTs. Well won't do it any more. Likely other projects would benefit from a warning as well. Regarding the example QRs above Binary Eye does display the problem in the hex representation and showing empty characters at the beginning of the token: |
Clearly not a problem with Robosats, renaming and happy to close. |
Fwiw, EFBBBF is UTF-8 BOM (byte order mask), when handling such string, your code should remove it |
Shared the robot code to mobile and different avatar came up without the ongoing trade.
Tor Browser on Android: 99.0.0b3 (11.5)
Latest Tor Browser on desktop + Brave was consistent with the original account.
Previously could recover the same account on mobile.
The text was updated successfully, but these errors were encountered: