Currently im using  web3 eth.personal.sign(message, address) to send sign request to metamask...i want to do it in ethers js how can i

Dec 12, 2022, 9:53 AM
import Web3 from 'web3'; web3 = new Web3(web3.currentProvider); web3.personal.sign(web3.toHex("message to sign"), "from_address", function(err, signature) { console.log('signature: ' + signature); }
Dec 12, 2022, 10:00 AM
Im doing this by web3js but i want it using ethers js
Dec 12, 2022, 10:04 AM
https://docs.ethers.org/v5/api/signer/#Signer-signMessage

Might be this one
https://soliditydeveloper.com/ecrecover
Dec 12, 2022, 10:51 AM

© 2024 Draquery.com All rights reserved.