Skip to main content

Module ident

Module ident 

Source
Expand description

Product-facing rendering of identifiers for human-readable output.

Identifiers are canonically did:keri:<prefix> (a W3C DID with a self-addressing prefix). That canonical form is correct for --json, files, bundles, trailers, and anything a machine consumes — it MUST never change.

In human-facing TEXT output, however, the first-run surface should speak the product’s own vocabulary, not the underlying protocol’s. This module maps the canonical DID to a product handle (auths:<prefix>) for display only. The prefix is preserved verbatim, so the handle is still unambiguous and a user who needs the canonical form can recover it (or read --json).

Use product_id anywhere a did:keri: would otherwise be printed to a person; never use it where the value is parsed, stored, or transmitted.

Functions§

product_id
Render an identifier in product-facing form for human TEXT output.