- Provide a hex or UTF-8 encoded string as a Uint8Array.
- Request that the encoded message is signed via the user’s Phantom wallet.
Phantom uses Ed25519 signatures for Solana message signatures. To verify a message signature, you can use the tweetnacl npm package.
signMessage()
request()
Sign-In with Solana (SIWS)
Developers who usesignMessage
to authenticate users can now take advantage of Phantom’s new Sign-In with Solana feature. For more information, refer to our specification on GitHub.