-
Notifications
You must be signed in to change notification settings - Fork 90
wip: solanaSignMessage #770
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
base: master
Are you sure you want to change the base?
Conversation
Adds solanaSignMessage method to hdwallet-core and implements it in hdwallet-native to support signing raw Solana message bytes. This enables protocols like Bebop that require signing transaction messages for submission to their API (gasless mode). Implementation: - hdwallet-core: Add SolanaSignMessage interface and optional method - hdwallet-native: Implement using adapter's signMessage method - Returns base64-encoded signature Native wallet only for now, other wallets can be added later.
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- Add signMessage method to PhantomSolanaProvider type - Implement solanaSignMessage using Phantom's Ed25519 signing - Returns signature as base64 string (following native wallet pattern) - Enables Bebop gasless Solana swaps with message signing
- Add solanaSignRawTransaction to SolanaWallet interface - Implement in Phantom using provider.signTransaction - Implement in Native using adapter.signTransaction - Returns signature as base64 string - Enables signing prebuilt Bebop transactions
- Native: use adapter.signMessage(messageBytes) - exact equivalent of signBytes - Phantom: add logging to verify message integrity - Both extract tx.messageBytes and sign without modifying transaction
Allowing arbitrary Solana signing for e.g but not limited to, Bebop gasless solana swaps