Tribute

// O(1)-STORAGE ON-CHAIN SUBSCRIPTION ENGINE · VYPER 0.4.3

A gas-optimized on-chain subscription engine. Most subscription systems store one slot per subscriber (mapping(address => uint256)) — a cost that grows linearly, so onboarding a million members means a million SSTOREs and a permanently larger state footprint. Tribute replaces that mapping with a single Merkle root: membership for any number of subscribers lives in one 32-byte slot, and each subscriber proves their own status on demand with a Merkle proof.

Vyper 0.4.3 Merkle Proofs Snekmate Moccasin Titanoboa ERC-20
O(1) Membership Storage
1 Merkle Root Slot
23 Tests Passing
0.4.3 Vyper

Mechanism

Membership is a Merkle tree whose root lives on-chain; payments and proofs do the rest. The contract never iterates a member set, so per-member cost is constant regardless of scale.

Security Design

The trust model is small by construction: the contract custodies no membership list and only the root-update authority is privileged. Renewal accounting is event-driven so the on-chain surface stays minimal.

Test Coverage

Key Features