Skip to main content

Module urn

Module urn 

Source
Expand description

DigUrn — the parsed urn:dig: scheme, its canonical form, and retrieval-key derivation.

This is the source-of-truth implementation the crate::grammar ABNF describes; the frozen conformance vectors (tests/fixtures/urn_conformance.json) prove the two agree.

Format: urn:dig:<chain>:<store-id>[:<root-hash>][/<resource>][?salt=<hex>]

  • retrieval_key = SHA-256(canonical()) (URN identity; pins the root)
  • content_key = SHA-256(canonical_rootless()) (root-independent fetch/AES-seed key)

Structs§

DigUrn
A parsed DIG URN.
SecretSalt
A private-store secret salt: 32 bytes of out-of-band key material.
UrnParseError
A parse failure with a stable, human-readable reason.