Expand description
EIP-712 spending capabilities for the PaymentPool contract.
A capability is an owner-signed grant that delegates spend on a pool to a
signer key up to a spending_cap, until expiry. The pool owner (the
funder of the on-chain deposit) signs it; the node registers it and then
accepts crate::voucher::Vouchers from that signer up to the cap
(ADR 003 §Capability delegation).
The capability shares the voucher’s EIP-712 domain (see
crate::voucher::voucher_domain) — PaymentPool recovers both against
the same _hashTypedDataV4 domain separator. Only the type-string differs:
Capability(address signer,uint256 spendingCap,bytes32 poolId,uint64 expiry)Re-exports§
pub use crate::voucher::voucher_domain;
Structs§
- Capability
- A pool owner’s spending grant in its unsigned form.
- Signed
Capability - A capability together with its EIP-712 owner signature.
Enums§
- Capability
Error - Failure modes for capability verification.