Repository navigation
Description
Component
cli (decdn binary)
Who it affects
publisher (someone importing content or sponsoring downloads)
Problem
Everything built so far is supply-side. Publishing a directory today is four steps and a human in the loop:
decdn origin import --input <path> --to <dir>encodes the blobs and outboards into an origin store.- The publisher either runs a node with
decdn config init --origin file://<dir>, oraws s3 syncs the store to a bucket an operator serves from. decdn publish namespace create, thendecdn publish assign <namespace-id> <0xOPERATOR>...seats origins.assignreverts until aVETTER_ROLEholder has vetted the publisher's wallet underManualVettingPolicy. The README says this "happens out-of-band, not through the CLI": the publisher emails info@ and waits.
A small team shipping a release on a known date (the customer the flash-crowd post names) does not get through that. There is no link they can paste in a release note at the end of it.
Proposed solution
One command, done:
decdn publish ./dir
→ https://<namespace>.decdn.link/
What it chains, in order:
- Import. Encode
./dirwith the existingorigin importwriter (bao-range::encode_outboard,{H}.obao4layout) into a local staging store, or a bundle when the directory has more than one entry (appendix-bundles). - Upload. Push the store to an origin the publisher does not run. Default: origin nodes Labs runs and seats for every new namespace (fleet work, tracked outside this repo). A
--origin s3://…or--origin file://…flag keeps the self-hosted path for publishers who want it. - Namespace.
namespace createif the publisher has none, otherwise reuse the one in config. - Seat.
assignthe default origin set. - Print the URL.
https://<namespace>.decdn.link/<path>for each entry, served by the hosted gateway (separate issue, linked below). Until the gateway exists, print thedecdn:<hash>/<path>?ns=<id>URI.
Vetting stops being a human step for small publishers: an automated policy vets any wallet up to a small quota (bytes per namespace, namespaces per wallet) and routes only above-quota requests to a VETTER_ROLE holder. That is a contract-surface change under ADR 011 § Vetting policies, so it has its own design issue (linked below) and lands first.
Keystore, Sepolia ETH and USDC stay a prerequisite for the publisher wallet in this issue. Removing them is the dashboard issue (linked below).
Alternatives considered
- Keep four steps, document them better. Does not remove the human from the loop, and still needs a wallet that holds three currencies before the first byte is published. Rejected.
- Publisher runs their own origin node. That is the current path and the reason the only guide is "run a node". It stays available behind
--origin; it must not be the default. - Make
origin importitself upload. Conflates encoding with seating and ownership.publishis the publisher's verb already (namespace create,assign,revoke), so the one-shot belongs under it.
Design scope
- This proposal changes the protocol, the economics, or the contract surface.
The CLI command itself does not. The automated vetting policy it depends on does, and is tracked separately.
Related
- Vetting-policy design issue: design: automated quota-based vetting policy for new publishers, manual only above the quota #2592
- Hosted gateway (
decdn.link): gateway: hosted public HTTP gateway at<ns>.decdn.linkthat pays a pool behind the scenes #2593 - Publisher dashboard and card funding: sponsord: publisher dashboard with card-to-USDC pool funding, per-namespace spend and per-user allowances #2594
- Foreign-hash ingress: ingress: accept SHA-256, CID and infohash identifiers and map them to BLAKE3 internally #2595
- Docs "Deliver" tab (decdn/website): docs: add a "Deliver" tab for publishers (publish, gateway, SDK, pricing) website#335
- External-demand metric (decdn/stats): feat: show bytes paid for by pools whose owner is not a registered operator stats#65
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsBacklog
Activity