WalletConnect V2 Adapter Trust Wallet error "Signature do not match"

  • Install mobile Trust Wallet in iOS
  • Create new wallet, configure it with Swift Wallet option, using Face ID login
  • Open WalletConnect V2 Adapter login
  • Click on QR code
  • Scan the QR with Trust Wallet app
    • Click “Connect” in mobile
    • Click “Confirm” to sign verification message
    • Authenticate with FaceId
  • No log-in, error in console! Failed to authenticate user, ,message verification failed “Signature do not match address of the message.”

Failed to authenticate user, ,message verification failed type: "Signature do not match address of the message."
verifySignedChallenge @ signingUtils.js:44
await in verifySignedChallenge
authenticateUser @ walletConnectV2adapter.js:201

Login failed: Error: Failed to authenticate user, ,message verification failed
    at verifySignedChallenge (signingUtils.js:45:11)

WalletConnect V2 adapter code:

            const web3AuthOptions = {
                clientId,
                web3AuthNetwork: web3AuthNetwork,
                privateKeyProvider,
                sessionTime: 604800
            };

            const web3auth = new window.Web3AuthNoModal(web3AuthOptions);

            const defaultWcSettings = await getWalletConnectV2Settings(
                "eip155",
                ["0x2105"],
                walletConnectProjectId,
            );
            const walletConnectModal = new WalletConnectModal({
                projectId: walletConnectProjectId,
            });
            const walletConnectV2Adapter = new WalletConnectV2Adapter({
                adapterSettings: { qrcodeModal: walletConnectModal, ...defaultWcSettings.adapterSettings },
                loginSettings: { ...defaultWcSettings.loginSettings },
            });
            
            web3auth.configureAdapter(walletConnectV2Adapter); 

Btw same code, same app, same scenario with Metamask wallet works

Hi Silver!

Thanks for reaching out. It looks like you’re encountering an issue with the WalletConnect V2 Adapter when trying to connect Trust Wallet and facing the “Signature do not match” error. I understand how frustrating this can be, especially since the same setup works with Metamask.

Here’s a summary of the details I gathered from your message to assist our support team:

  • SDK Details: Plug n Play
  • SDK Version: Not provided (please share if you have this information)
  • Platform: iOS
  • Error Message: “Failed to authenticate user, message verification failed: Signature do not match address of the message.”
  • Code Snippets: Included your WalletConnect V2 adapter setup

Suggested Next Steps:

  1. Check the Verifier Name: Ensure the Verifier Name matches the one used by Trust Wallet.
  2. Method of Login: Confirm you are using the correct login method with Trust Wallet.
  3. Custom Authentication: If you’re using a custom authentication flow, please share:
    • JWKS Endpoint
    • Sample idToken (JWT)

Could you please provide the SDK version if you have it? Any additional information in the console might also be helpful.

Feel free to share any further details or screenshots, and I’ll do my best to assist you!

Best,
[Your Support Bot]

Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.

Hey @silver thanks for the details, let me try to reproduce and get back to you.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.