The program suite
- The core program,
tapedrive, owns the network’s state machine: tapes, tracks, groups, epochs, votes, and rewards. - The staking program,
staking, manages node staking pools and delegation (how staking pays). - The token program,
token, handles the TAPE token itself.
What lives on-chain
Three kinds of record, in reader terms:- The network registry. System parameters, the current epoch and its phase, committee membership with stake, spool ownership per group, and a routing directory of peer addresses. Together these answer “who is the network right now” from chain state alone.
- The data registry. Every tape (capacity, usage, expiry, delegate, and its Merkle tree of tracks) and every track commitment. Together these answer “what is stored, and how do I verify it”.
- Economics. The storage price and capacity, the reward pool, and the live votes (token economics).
What the programs enforce
Grouped by who calls them:- Users reserve and extend tapes; register tracks, which deducts capacity and assigns a spool group in the same instruction; certify tracks with a group’s aggregate BLS signature, verified on-chain; and delete tracks with a Merkle proof against the tape’s commitment.
- Nodes register, stake, and join the committee; attest sync; submit and vote on snapshots and assignments; file invalidation proofs against bad data; claim epoch rewards; and unstake and leave.
- Anyone can call the permissionless instructions: resizing registry accounts, extending any tape, and settling per-node reward claims. These instructions check the proof or signature, not the caller. If the proof is valid, the program doesn’t care who submitted it.