pub fn create_simple_did(
ctx: &mut SpendContext,
funding_coin: Coin,
owner: Owner,
) -> DidResult<DidSpend>Expand description
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.
§The funding coin becomes the DID, in full
This delegates to create_did, so its funding-coin contract applies unchanged: the singleton’s
amount is the coin’s ENTIRE amount, it MUST be odd, and any excess is locked in the DID forever.
Pass a coin pre-split to exactly the intended amount.
§Errors
See create_did — including crate::DidError::EvenSingletonAmount.