New answers tagged signature
0
I was able to figure this out after much debugging. Turns out that the chainid OPCODE is not working correctly in Ganche (if you use their UI - the fix has been released in the ganache-cli project).
The lack of a proper functioning chainid results in the DOMAIN_TYPEHASH being computed incorrectly which prevents ecrecover from generating the correct address ...
Top 50 recent answers are included
Related Tags
signature × 282web3js × 58
transactions × 48
solidity × 46
ecrecover × 34
cryptography × 27
contract-development × 25
raw-transaction × 25
go-ethereum × 22
ecdsa × 22
contract-design × 18
private-key × 18
metamask × 16
javascript × 14
ethereumjs × 12
hash × 12
public-key × 12
python × 11
security × 9
addresses × 9
blockchain × 8
multisignature × 8
contract-invocation × 7
web3.py × 7
verify × 7