This project leverages hardhat framework
this README contains how to run the code
located in task1
directory
yarn install
yarn hardhat compile
yarn hardhat test
- A payer can call
issueCheque
to submit a e-cheque with his/her own signature to the contract - In the
issueCheque
we will verify the signature with the data payer provided
- chequeInfoHash: hash the data part
- (v, r, s): split the input signature
- recover and verify the payer address with the above hash and (v, r, s)
- The payer can revoke the cheque by calling
revoke
- A payee can check if the cheuque is still valid by calling
isChequeValid
- The payee can call
redeem
to redeem the cheque
- deposit
- withdraw
- withdrawTo
- recoverSigner
- splitSignature
- issueCheque
- getCheque
- isChequeValid
- revoke
- redeem
- notifySignOver and redeemSignOver
- sign-over feature