Skip to main content

Module did_string

Module did_string 

Source
Expand description

The did:chia:1… string codec (SPEC §2.3 & §9).

A DID’s canonical string form is did:chia: followed by the bech32m encoding of its launcher_id. This codec delegates to chia-sdk-utilsAddress — the same codec dig-identity and chip35 use — so a did:chia: string byte-agrees across the ecosystem (INV-4, SPEC §9). It never hand-rolls bech32m.

Constants§

DID_CHIA_PREFIX
The bech32m human-readable prefix of a v1 Chia DID (did:chia:1...).

Functions§

did_string_from_launcher_id
Encodes a DID singleton’s launcher id as its canonical did:chia:1… string.
launcher_id_from_did_string
Decodes a did:chia:1… string back to the DID singleton’s launcher id.