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.
- Secret
Salt - A private-store secret salt: 32 bytes of out-of-band key material.
- UrnParse
Error - A parse failure with a stable, human-readable reason.