-
Notifications
You must be signed in to change notification settings - Fork 112
Description
Is your feature request related to a problem? Please describe.
I want to sign messages with backpack, because when I build my project with xNFT, I'm not able to sign in users.
Describe the solution you'd like
Implement _SignTransaction function inside XNFTWallet.cs
Describe alternatives you've considered
The only alternative to this function is to use signTransaction and make user sign memo transaction and don't send it, use it for validation only, which is not the best solution, it's already used by Ledger users but not convenient one, since backpack supports sign message.
Additional context
I've written implementation for it, but problem is, that Phantom.jslib uses window.phantom.solana.request function, which returns signature as a string, but other wallet adapters does not return string, return UInt8Array. For consistency, we must return Uint8Array from phantom wallet adapter as well.
If you have any other ideas how we can implement it, I can do it for sure.