New answers tagged hash
1
vote
ethers hashMessage and solidity keccak256
As in Solidity, keccak256 hashing is used. So, you need to use the same while hashing the message in your app (off-chain).
So, in your app, replace this line:
const hash = ethers.hashMessage(msg+'-'+...
Top 50 recent answers are included
Related Tags
hash × 266solidity × 72
keccak × 42
transactions × 37
blockchain × 33
hash-algorithm × 25
signature × 23
web3js × 18
mining × 16
etherscan × 13
sha3 × 13
javascript × 12
blocks × 12
cryptography × 12
randomness × 11
go-ethereum × 10
addresses × 9
ethers.js × 9
contract-development × 8
remix × 8
security × 8
block-header × 8
contract-design × 7
ether × 7
web3.py × 7