Sign and verify Signature with Solidity and Javascript

Tutorial about signing and validating data in solidity and javascript.

Creating and validating signatures is crucial part in many transactions and applications.

In this tutorial the signature is created in javascript utilizing the libraries eth-crypto, web3 and ganache-cli.

The javascript library EthCrypto ist responsible for signing the message (for example with a keccak256).

The validation takes place in a smart contract (Solidity).

Validating a signature in Solidity.

This smart contract written in Solidity shows how to validate a signature passed to a function.
Link to Post 🔗