Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 972 Bytes

OZ MinimalForwarder.md

File metadata and controls

23 lines (20 loc) · 972 Bytes

OpenZeppelin MinimalForwarder: provides a simple minimal forwarder (as described in OZ ERC2771Context) to be used together with an ERC2771 compatible contract. It verifies the nonce and signature of the forwarded request before calling the destination contract.

  1. struct ForwardRequest {address from; address to; uint256 value; uint256 gas; uint256 nonce; bytes data;}

  2. verify(ForwardRequest calldata req, bytes calldata signature) public view(bool)

  3. execute(ForwardRequest calldata req, bytes calldata signature)(success, returndata)


Slide Screenshot

184.jpg


Slide Text

  • ERC-2771 Meta-transactions
  • Simple Minimal Forwarder
  • Nonce & Signature Checks
  • verify(req, signature)
  • execut(req, signature)

References


Tags