Contract Details
Tech Stack
Solidity ^0.8.24 OpenZeppelin v5 Foundry
Chains
Ethereum Arbitrum Base Optimism
Description
Human-readable EIP-712 typed data signing library with replay protection and domain separator validation. Includes Solidity verifier, TypeScript signer, and common DeFi struct type definitions.
Features
- ✓ EIP-712 typed data hash construction
- ✓ Domain separator with chain ID validation
- ✓ Nonce-based replay protection
- ✓ Deadline/expiry enforcement
- ✓ Common DeFi type hash definitions
- ✓ ECDSA signature verification (v, r, s)
- ✓ Compact signature support (EIP-2098)
- ✓ Full Foundry test suite
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title EIP-712 Signing Library /// @notice Human-readable EIP-712 signing library with replay protection. contract Eip712SigningLib { address public immutable owner; uint256 public constant VERSION = 1; event Initialized(address indexed deployer); constructor() { owner = msg.sender; emit Initialized(msg.sender); } // ... full implementation in purchased package }