Skip to main content

Module identifier

Module identifier 

Source
Expand description

did:q42 Q42 Resource Coordinate (QrcCoordinate) resolver.

A did:q42 URI is a 60-bit + MSB (1 << 63) Q42 Resource Coordinate (QRC) belonging to Plane::Handle / Plane::Instrument — a physical/topological coordinate into the Qualia disk/memory layout — never a W3C DID Document root and never a NaturalAgent (Who) identity.

§Zero-allocation guarantee

All operations work directly on &[u8]. No String or Vec is constructed at any point in the hot path.

§MSB flag convention

Any u64 returned by this module has bit 63 set to 1. The Webizen VM uses that bit to distinguish absolute hardware/disk QRC pointers (MSB = 1) from local dictionary hashes produced by q_hash (MSB = 0).

Enums§

IdentifierError
Errors returned by parse_did_q42 and parse_did_q42_or_ptr.

Functions§

parse_did_q42
Parse a did:q42: URI byte slice into a 64-bit Q42 Resource Coordinate (QRC).
parse_did_q42_or_ptr
Parse either a standard did:q42:<payload> coordinate or a display-serialized did:q42:ptr/<hex> / <did:q42:ptr/<hex>> coordinate emitted by resolver::format_ntriples_to, returning the canonical 64-bit QRC pointer (MSB = 1, low 60 bits = coordinate payload).