Expand description
EVM payment primitives re-exported from evmlib.
Use ant_protocol::evm::… in downstream crates instead of a direct
evmlib dependency. This guarantees client and node always link the
same evmlib major version.
Modules§
- contract
- Lower-level
evmlibsurface (RPC provider, contract interface, and payment-vault bindings). Re-exported for the node’s verifier and the Anvil-based tests; most client code will not need these. - testnet
- Anvil-backed testnet used by devnets and E2E tests.
- utils
- HTTP provider + transaction-config helpers used by on-chain verification flows.
Structs§
- Custom
Network - Encoded
Peer Id - A peer’s identity encoded as raw 32 bytes (BLAKE3 hash of ML-DSA-65 public key).
- Merkle
Payment Candidate Node - A node’s signed quote for potential reward eligibility.
- Merkle
Payment Candidate Pool - One candidate pool: midpoint proof + nodes who could store addresses.
- Merkle
Payment Proof - Data package for merkle payment verification.
- Merkle
Tree - A Merkle tree built from XorNames (content addresses).
- Midpoint
Proof - A reward candidate derived from a midpoint.
- PayFor
Quotes Error - Contains the payment error and the already succeeded batch payments (if any).
- Payment
Quote - A payment quote to store data given by a node to a client.
- Pool
Commitment - Minimal pool commitment for smart contract submission
- Proof
OfPayment - The proof of payment for a data payment
- Wallet
Enums§
- Merkle
Payment Verification Error - Errors that can occur during merkle payment verification
- Network
Constants§
- CANDIDATES_
PER_ POOL - Number of candidate nodes per pool (provides redundancy)
- MAX_
LEAVES - Maximum number of leaves (2^MAX_MERKLE_DEPTH)
- MERKLE_
PAYMENT_ EXPIRATION - Maximum age of a Merkle payment (one week in seconds)