Skip to main content

Module webizen_did

Module webizen_did 

Source
Expand description

did:webizen: Web of Data identifier parser and deterministic concept UUID engine.

§Universal Rules Compliance

  • Zero heap in hot paths: All operations take &[u8] and caller-owned stack buffers. No String, Vec, or Box are allocated.
  • 60-bit Quin Token: Concept tokens are masked with 0x0FFF_FFFF_FFFF_FFFF with bit 63 cleared (MSB = 0), denoting a dictionary/lexicon entity rather than a physical topological coordinate (did:q42 pointer, MSB = 1).

Reference: docs/manuals/standards/did-webizen-method.md

Structs§

WebizenDidRef
Zero-copy reference over a validated did:webizen: identifier.

Enums§

WebizenDidError
Errors returned by parse_did_webizen.
WebizenRealm
The functional realm of a did:webizen identifier.

Constants§

PREFIX
Mandatory URI prefix for all Webizen identifiers.
WEBIZEN_ONTOLOGY_NAMESPACE
Canonical Webizen Ontology Namespace UUID (RFC 4122 Namespace UUID for Web of Data concepts). UUID: 7f18b320-9dad-11d1-80b4-00c04fd430c8

Functions§

derive_concept_uuid
Compute a deterministic RFC 4122 / RFC 9562 UUIDv5 for a concept name.
derive_concept_uuid_pq
Compute a post-quantum collision-resistant deterministic UUID (RFC 9562 UUIDv8) for a concept name using SHA-256.
format_concept_urn
Format a 16-byte concept UUID into a 45-character urn:uuid:... ASCII slice.
format_uuid_hex
Format a 16-byte UUID into standard 36-character hyphenated lowercase hex ASCII.
parse_did_webizen
Parse a did:webizen: byte slice into a zero-copy WebizenDidRef.
quin_concept_token
Compute the 60-bit FNV-1a Quin token for an identifier or UUID URN.
verify_dual_signature
Verify a hybrid DualProof (ML-DSA-65 + Ed25519) digital signature over a message.
verify_pq_signature
Verify an ML-DSA-65 (FIPS-204) post-quantum digital signature over a message.