We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
To validate the signature belongs to the signing address, we can use the method recover from web3.account.recover:
function checkSignatureMatch(signingAddress, transaction, signature) { var expectedSigningAddress = web3.eth.accounts.recover(transaction, signature); var isEqual = expectedSigningAddress === signingAddress; return isEqual; }