Skip to content

The signature query obtained after the solana chain sign failed #318

@pingko

Description

@pingko

Describe the bug
When I listened to the solana_signTransaction method, I signed the message and got the signature. When I called web3Wallet.respondSessionRequest(), there was no error but it prompted "Error: Signature verification failed. Invalid signature for public key [My solana address]. In addition, I could not find this transaction on the solana browser.

To Reproduce
Steps to reproduce the behavior:

  1. Process the data when listening to solana_signTransaction. First, base58Decode the saved private key
  2. Get the keypair object and generate the message object
  3. Use Keypair to sign the compiledMessage
  4. Get the signature. After broadcasting it through web3Wallet.respondSessionRequest(), the signature cannot be queried on the blockchain browser. The current dApp page prompts an error message:
    "Error: Signature verification failed. Invalid signature for public key [My solana address].

Expected behavior
Transactions can be queried in the blockchain browser

Reproducible code

Screenshots
image

Desktop (please complete the following information):
Platform agnostic, doesnt matter which device i test on it allways does the explained issue

Smartphone (please complete the following information):
Developing a dApp wallet, Use walletconnectV2Flutter to trade in jito dApp

Additional context

### Tasks

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