question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

signature created from brave wallet can not verify

See original GitHub issue

Description

Hi team, I am working on a dapp that needs to verify users’ signatures. When testing with Metamask, Coinbase everything is okay. But can not verify the signature created from Brave wallet. My code js code using ethers.js.

const hash = `0xd3aea288db79124342317a8e950dfc59d3f8d93b7a7b743a25c3453f2e53e309`
const myAccount = `0xF14DE383fE1f5ECA59dbC33A7d7aB527AD7c8c94`
const signature = await myprovider.send('eth_sign', [myAccount, hash])
// signature is "0xf20b11505f101df739e899dec45f09791526f4b06ad77b987699517a08db36c04c224e262b5757ecba9e648e61c12cd2668c9327f22e46e85d9e5e18cc6260bf1c"

I verify signature by golang backend with go-ethereum. I tried another method like personal_sign but it still got same problem. I am sure that problem with Brave because that signature create from Metamask, Coinbase wallet can be verify successfully.

Actual result:

Invalid signature

Expected result:

Signature create from Brave wallet can be verify

Reproduces how often:

100%

Desktop Brave version:

  • Brave wallet on Brave browser
  • Brave browser version: 1.45.113
  • MacOS

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kdenhartogcommented, Nov 1, 2022

Good to hear @nguyenhoaidanh I’m going to close this one out then.

1reaction
kdenhartogcommented, Nov 1, 2022

I can see that this library works for eth_chainId and I’m getting a 4200 error showing in the wallet which is usually an indication that the method is not supported.

I’m not sure why eth_sign isn’t usable, but I will note that the usage of the send API is deprecate in both Brave and Metamask.

You should be using the request API these days with the ExternalProvider class.

Read more comments on GitHub >

github_iconTop Results From Across the Web

signature created from brave wallet can not verify
Description Hi team, I am working on a dapp that needs to verify users' signatures. When testing with Metamask, Coinbase everything is okay....
Read more >
Brave wallet adapter gives "Signature verification failed" #478
Describe the bug Brave wallet adapter gives "Signature verification failed" when trying to send some transactions. To Reproduce I don't have ...
Read more >
How to create an account on The Sandbox
If you use the Brave browser: Please go into your browser settings and make sure the "Default Wallet" option is set to "None"....
Read more >
Verifying a message in python signed with Coinbase Wallet ...
My code works with MetaMask (or Brave Wallet) and KeepKey, but doesn't work with Coinbase Wallet or Ledger. The message that is being...
Read more >
Verifying Brave Rewards with Gemini is temporarily down for ...
Just wanted to notify everybody that verifying your wallet with Gemini is currently down for maintenance, so you may see an error when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found