Skip to main content

Crate did_scid

Crate did_scid 

Source
Expand description

Implementation of the did:scid (Self-Certifying Identifier) DID method.

Supported formats:

  • did:scid:vh:1 — Verifiable History via did:webvh or did:cheqd
  • did:scid:ke:1 — a KERI AID via did:webs (requires the did-webs feature)

⚠️ The did:scid method type registry (Appendix A of the specification) is still marked TODO, and ke is listed there as a proposed entry rather than a registered one. It is implemented here because did:webs is named explicitly as a supported verification metadata format, but the code could still change before the registry is settled.

Two invocation modes are supported:

  • URL mode: did:scid:vh:1:<scid>?src=<source> — the src parameter encodes either a did:cheqd:<network> prefix or a WebVH host/path.
  • Peer mode: did:scid:vh:1:<scid> with the source supplied out-of-band via ScidMethod.

§WebVH src formats accepted

The src parameter for WebVH is intentionally permissive — any of the following are normalised to the canonical did:webvh tail:

  • example.com
  • example.com/path/to/dir
  • localhost:3000 / localhost:3000/path (the port is %3A-encoded)
  • https://example.com/path (scheme is stripped)
  • Any of the above with a trailing slash

Modules§

errors

Enums§

ScidMethod
The verification metadata format a did:scid resolves through.

Functions§

resolve
Resolve a SCID DID Method