Storage and Resource integration¶
The 420 Resource Protocol coordinates provider identity, service eligibility, offers, sessions, metering, storage agreements, capacity, commitments, proofs and settlement while payload bytes remain off-chain.
The developer boundary is strict: providers perform storage/relay/cache/gateway work, but canonical authorization and economic state stay in the Resource Protocol and 420Vault.
For executable v1 examples, local/testnet setup, SDK usage, the S3 support matrix and troubleshooting, use the 420Storage Developer Hub.
Shared Resource flow¶
For Relay, Cache, Gateway and metered resource use:
- resolve a qualified provider/node and service class;
- resolve an effective canonical offer;
- obtain user authorization for the bounded spend/action;
- open a session with explicit unit/spend ceilings;
- consume the off-chain service;
- accept cumulative metering only within the bound session;
- settle only through canonical protocol state.
A provider's local invoice or usage counter cannot create additional spend authority.
420Store flow¶
A safe durable-storage path is:
- resolve an effective STORE offer and qualified provider/node;
- prepare object identity, content root, manifest hash and encryption/erasure commitments;
- reserve canonical capacity;
- create the immutable storage commitment and proposed agreement;
- activate only after offer/provider/capacity/commitment/proof-scheme invariants agree;
- upload encrypted payload/shards off-chain;
- register compatible shard placements and seal the manifest when complete;
- monitor current retrievability rather than assuming sealed means permanently available;
- submit challenge-bound storage proofs through the configured verifier;
- allow only matching proof-window evidence to release the corresponding 420Vault obligation.
Proof semantics¶
An accepted storage proof establishes one verifier-approved challenge for one immutable commitment. It does not establish perpetual availability, satisfy unrelated proof windows or authorize arbitrary payment.
Proof submission is deadline-bound and replay-safe. The current protocol bounds raw proof payloads at 65,536 bytes and retains canonical proof identity/digest/receipt rather than requiring all raw proof bytes in permanent state.
Settlement¶
420Vault remains the custodian. Storage settlement creates/releases/cancels bounded Vault obligations; the settlement controller does not become custody authority.
Each funded proof window ends as either PAID or REFUNDED. A missed deadline cannot later be repaired by substituting unrelated proof evidence.
Privacy¶
Keep plaintext payloads, encrypted payload bytes, shard bytes, decryption keys, private application metadata, relay traffic and cache contents off-chain. Canonical state should contain only the commitments and metadata needed for identity, authorization, capacity, evidence and settlement.
Provider failure and repair¶
Provider suspension blocks new work where active status is required but does not erase historical commitments. Repair/replacement must preserve object identity, old agreement/commitment/proof history and settled/refunded windows while creating new qualified provider/capacity/commitment/placement state.
Never rewrite historical commitment fields to make a replacement provider appear to have been the original provider.
Application checks¶
Before presenting a storage object as healthy, distinguish at least:
- manifest completeness;
- current retrievability;
- provider/node activity;
- live agreement/commitment state;
- proof freshness;
- settlement state.
A healthy provider filesystem alone is not canonical proof of availability, and a canonical reservation alone is not proof that local bytes remain intact.
Related architecture¶
- 420Storage Developer Hub
- 420Storage production topology qualification
- 420Storage adversarial and fault-injection qualification
- 420Storage load and capacity qualification
- 420Storage upgrade and compatibility qualification
- 420Storage credential rotation and recovery qualification
- 420Storage backup, restore and disaster recovery qualification
- 420Storage security and abuse-resistance qualification
- 420Storage operator runbooks, alerts and SLO qualification
- 420Storage testnet deployment evidence
- 420Storage production launch closeout
- Storage Proof and Resource Protocol
- Storage and Resource infrastructure
- Provider-backed integration model