Phantom Browser Extensions can't sign non-utf8 bytes with signMessage #411
Unanswered
jsamol
asked this question in
Help & Support
Replies: 1 comment 1 reply
-
|
@jsamol Can I understand your use case for signing non-utf8 byte messages? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I'm trying to sign arbitrary non-utf8 encoded bytes with Phantom using @solana/wallet-adapter. Unfortunately, the browser extensions (Chrome, Firefox) seem to be unable to do so and throw
You cannot sign solana transactions using sign messageon every try. Interestingly enough, the Android application doesn't share this behaviour and has no problems with signing the same messages. I haven't tested the other extensions - Brave and Edge.I've seen other discussions reporting the same (#189, #181), but I don't find the answers sufficient to close the issue, especially that it looks like it's a problem only in a browser and not even a single non-utf8 byte can be signed - which with certainty isn't a transaction.
Example
No response
Steps to Reproduce
Sign arbitrary bytes with a browser extension using @solana/wallet-adapter:
To compare behaviours, sign the same with the Android application using the MWA SDK:
Phantom Version
25.8.0
Is there an existing discussion for this?
Beta Was this translation helpful? Give feedback.
All reactions