Skip to content

Backpack sign message implementation #85

@dfl-zeke

Description

@dfl-zeke

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions