Expand description
ERC20Permit pallet for signature-based approvals (EIP-2612).
This pallet stores permit-related state (nonces) and provides EIP-712 signature verification for gasless approvals.
§Security Notes
- Nonce management: Use
use_permit(notverify_permit) to atomically verify and consume permits. This prevents replay attacks. - Deadline validation: Permits are validated against UNIX timestamps.
- Domain separation: Each verifying contract has its own domain separator.
- Signature malleability: The
svalue is checked to be in the lower half of the secp256k1 curve order to prevent signature malleability attacks.
Re-exports§
pub use pallet::*;
Modules§
- pallet
- The
palletmodule in each FRAME pallet hosts the most important items needed to construct this pallet.