pub fn parse_did_q42(uri: &[u8]) -> Result<u64, IdentifierError>Expand description
Parse a did:q42: URI byte slice into a 64-bit topological pointer.
§Contract
- Input must start with
b"did:q42:". - The payload after the prefix must be non-empty.
- The returned
u64always has bit 63 set — signalling to the Webizen VM that this value is a hardware/disk coordinate, not a dictionary hash.
§Example
use qualia_core_db::identifier::parse_did_q42;
let ptr = parse_did_q42(b"did:q42:z6MkpTHR8VNs").unwrap();
assert_eq!(ptr >> 63, 1, "MSB must be set for topological coordinates");