Skip to main content

Module evm

Module evm 

Source
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 evmlib surface (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§

CustomNetwork
EncodedPeerId
A peer’s identity encoded as raw 32 bytes (BLAKE3 hash of ML-DSA-65 public key).
MerklePaymentCandidateNode
A node’s signed quote for potential reward eligibility.
MerklePaymentCandidatePool
One candidate pool: midpoint proof + nodes who could store addresses.
MerklePaymentProof
Data package for merkle payment verification.
MerkleTree
A Merkle tree built from XorNames (content addresses).
MidpointProof
A reward candidate derived from a midpoint.
PayForQuotesError
Contains the payment error and the already succeeded batch payments (if any).
PaymentQuote
A payment quote to store data given by a node to a client.
PoolCommitment
Minimal pool commitment for smart contract submission
ProofOfPayment
The proof of payment for a data payment
Wallet

Enums§

MerklePaymentVerificationError
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)

Type Aliases§

Address
Amount
QuoteHash
RewardsAddress
TxHash
U256