BTW, here’s an idea I had and now spent some little time brainstorming with AI.
Idea: decentralize BCMR storage with BitTorrent v2. The protocols compose naturally — both are content-addressed and immutable, so no BCMR specification changes needed, just an extension convention.
Why v2 fits: BEP 52 hashes each file independently (SHA-256 Merkle root over chunks). Clients like libtorrent merge swarms across torrents that share identical file roots. So one mega torrent seeding all BCMR registries can pull pieces from any torrent containing the same file. If projects seed their own small torrents for their own token metadata (which they’re already incentivized to do), the archive gets replication for free, with zero coordination. A wallet fetching only a project’s torrent even becomes an incidental seeder into the archive swarm.
The design:
- BCMR publications are on-chain and canonically ordered, so the file set is an append-only log derived from the blockchain. Maintain an MMR over it, anchor the root + latest torrent infohash in OP_RETURN every N blocks. Anyone can verify a builder’s file set against the anchor — omission by any curator is detectable.
- The torrent is deterministically derived from that log: fixed piece length, files named
height-txid/<bcmr-hash>.json, no timestamps or variable fields. Multiple independent operators produce byte-identical torrents and the same infohash. Co-maintained, not trusted.
- Instead of one ever-growing torrent (metadata size limits, swarm churn on every update), close an immutable epoch torrent every N blocks; a small head torrent carries the open epoch. Old epochs keep stable swarms forever; wallets download only epochs they lack. Rebuilding from scratch is milliseconds — bandwidth and swarm continuity are the real resources.
- Announce both hashes: the BCMR SHA-256 (authoritative verification, transport-agnostic as today) and the pieces root (transport-level dedup). Note they’re not equal — v2 pads to the piece boundary — so the BCMR hash stays the trust anchor.
Spec MUSTs: pure v2 (no hybrid/v1 baggage), piece length = 16384 everywhere (the pieces root depends on piece length, so inconsistent choices break cross-seeding), published test vectors (bytes → pieces root → torrent bytes → infohash) so independent builders can verify determinism.
Infra: own tooling above the wire protocol (chain indexer, deterministic torrent builder, anchoring job, wallet SDK/gateway), libtorrent as the engine — v2 piece verification and swarm merging are nontrivial and already solved there. Optionally, publications carry the project’s own torrent infohash, so wallets can go chain → project torrent directly; the indexer then only bootstraps the archive and covers files nobody self-hosts anymore.
Net effect: a permissionlessly mirrored, chain-verifiable archive of all BCMR registries, where every self-hosting project is automatically a mirror of its own slice. Total data volume is small — seeding incentives are a non-issue; indexer liveness and wallet integration are the actual work.