Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 82922

Questions about EcRecover, a function of the programming language Solidity to verify a signature on the blockchain

4 votes
Accepted

How do you verify a Metamask signature on the server side?

Here is what worked for me: You will need a Web3 provider, for example: w3 = Web3(Web3.HTTPProvider('https://mainnet.infura.io/v3/api_key') You can recover the address using the message and signature …
dx1's user avatar
  • 125
5 votes
1 answer
8k views

How do you verify a Metamask signature on the server side?

I want my server to be able to authenticate a user based on whether or not they have the private key to their wallet. I am using web3.js in my front end, and web3.py in my backend. The scenario will b …
dx1's user avatar
  • 125
2 votes
1 answer
2k views

How to recover public key using ecRecover in Python?

I am able to use ecRecover to verify the signer in Javascript, for example: const ecRecoverAddr = await window.ethereum.request({ method: "personal_ecRecover", params: [message, signedMessage], … Is there a way to retrieve the public key using ecRecover without the use of a provider? Shouldn't it just be a method that can run without any connections? Thanks! …
dx1's user avatar
  • 125