Skip to content

Registry Events

The content of each event is JSON. Unknown fields are refused.

Kind Event Content
4600 Asset registry, name, cid, size, chunk_size, merkle_root, origin_url, type, policy
4601 Manifest registry, version, prior, assets, root
4602 Intent registry, name, action
4603 Revocation registry, and either asset or through
4604 Checkpoint epoch, size, root, committee, quorum, signatures
4605 Audit indexer, epoch, score, probes, answered, omissions, invalid, equivocation, latency_ms, evidence, proof
4606 Indexer descriptor name, endpoint

Policy

Field Values
propagate boolean
scope global, region or local
regions up to 256 names, required for region
not_before, expires_at Unix time, 0 for none
priority 0 to 6
on_delete purge or retain

Rules

  • origin_url is an HTTP address in canonical form without credentials, query or fragment, and ends with / and the digest.
  • Manifest assets are sorted by name, without repeats. root is the Merkle root over [name, id, cid] of each.
  • Version 1 has an empty prior. Later versions name the previous manifest event.
  • A checkpoint is valid only with a quorum of valid signatures by distinct committee members over SHA-256 of ["registry/checkpoint/1", epoch, size, root, committee, quorum].

Merkle trees

Leaves are SHA-256(0x00 || data) and inner nodes SHA-256(0x01 || left || right), as in RFC 6962. The tree of an asset is over its chunks.

Signed answers

sig is a BIP-340 signature by the indexer over SHA-256 of registry/response/1| and the payload bytes. The payload contains the nonce, sequence number, time in milliseconds, root, size, query, and the view or list.