bansaltushar014 / Chapter-Solidity

Help Solidity developer to learn fast via providing simple code and examples. This repository containing the most popular smart contracts collections.
MIT License
11 stars 16 forks source link

Demo for ERC1271 - Standard Signature Validation Method #9

Closed Hares27 closed 1 year ago

Hares27 commented 1 year ago

ERC 1271 - Externally Owned Accounts (EOA) can sign messages with their associated private keys, but currently contracts cannot. It propose a standard way for any contracts to verify whether a signature on a behalf of a given contract is valid. This is possible via the implementation of a isValidSignature(hash, signature) function on the signing contract, which can be called to validate a signature.

Resources to follow:

  1. https://eips.ethereum.org/EIPS/eip-1271
  2. https://docs.cow.fi/tutorials/how-to-place-erc-1271-smart-contract-orders/the-basics-of-erc-1271
  3. https://www.youtube.com/watch?v=sc1x_du6UXk&ab_channel=EthereumCatHerders
bansaltushar014 commented 1 year ago

Hi @Hares27 , Please review the above changes. I was expecting something like this. Please add more resources if there is any.

Hares27 commented 1 year ago

Hello @bansaltushar014 , I followed the official implementation of ERC1271.The resources you provided are also give more clarity on this.