CHIP 2022-10 BCMR: Bitcoin Cash Metadata Registries

Cashonize v0.14 was the BCMR Identities Release: it added a new identities page holds and manages the identities behind your tokens, publishing and verifying their metadata and keeping their UTXOs out of ordinary sends.

Cashonize now is the first wallet to have built-in BCMR identity management. These BCMR Identity features (and some future extensions) were all already envisioned by the BCMR spec but had never been implemented presumably due to the lack of resources and the scope of this integration.

However now with current AI this type of work has because orders of magnitude cheaper, so I’m interested to hear if others find this useful or want to integrate similar things in other wallets. As always, the Cashonize code is open source and can serve as a great reference.

Screenshots of BCMR Identities

2 Likes

With Cashonize v0.18.0 we added user notifies for when user-followed tokens have BCMR metadata updates. This was Cashonize users can be alerted if a token they use changes icons, name or decimal places.

The idea to notify users on token metadata changes was always part of the BCMR spec but has not been attempted by anyone to actually integrate it in reality.

I don’t claim this initial Cashonize approach is perfect, but the goal is to have user-awareness that token metadata and reserved supply can change, and they can see such changes straight in their wallet without external tools.

Also the goal is to get attention to this idea from other wallet developers who may be interested in similar functionality.

Cashonize new “Token Identities” Page

We restructured the page so the two tabs are “identities you follow” and “identities you control”

“identities you control” is the feature introduced in v0.14 but this has now become demoted to a secondary page, as more people will watch identities for updates rather than own and manage token identities.

We removed the “add existing” tab for identities, and made it a button on the new pages instead, which seems like a more natural place to have them.

Screenshot

Identities you follow

The “identities you follow” has two sections

  1. specific tokens you want to watch metadata for but don’t hold in this wallet (maybe you hold the tokens elsewhere or track the tokenmetadata for other reasons)
  2. follow the identities of all tokens in this wallet, with a ON/OFF toggle

For the identities you see the high level info and can click on it to see the details about the last published metadata and a history button to display the full authchain history

Screenshots

Identities you control

How to get to the Identities

You can get to the identities page, either through “Info” on a token in the “Tokens” page, or through the normal "…’ menu navigation

Learn More

The Identities page also has a “Learn More” button/section which attempts to explain the identities concept inside the wallet. Not just with boring text but with an example and a schematic.

Screenshots

3 Likes

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.

1 Like