Skip to main content

Module create

Module create 

Source
Expand description

DID creation (SPEC §3 “Create”).

Minting a DID from a funding coin is three coin spends bundled together (SPEC §3 notes): the funding coin spend (which creates the launcher and, per Owner, requires the owner’s signature), the launcher spend (which creates the eve DID), and an owner update/settle spend that confirms the DID’s metadata so wallets can parse it. All three land in one DidSpend — dig-did never splits a create across multiple return values.

Every builder here is generic over Owner (§2.4): a Owner::Standard key or a Owner::Custom pre-built inner spend both work, because the settle step is built from the raw chia_wallet_sdk::driver::Spend primitive (Did::spend) rather than a typed inner layer.

Functions§

create_did
Mints a brand-new DID, fully settled and wallet-parseable, from a funding coin.
create_eve_did_only
Launches the eve DID WITHOUT the owner-update settle step.
create_simple_did
create_did with the common defaults: no recovery list, a single required verification, and nil metadata. The usual entry point for a DID that does not need a recovery configuration.