Skip to content

Libs

Use these packages when integrating or extending the Midnight DID reference implementation.

PackageUse whenResponsibility
@midnight-ntwrk/midnight-did-apiYou need wallet/provider setup and DID lifecycle operations.High-level runtime facade over contract calls and resolution.
@midnight-ntwrk/midnight-didYou already have ledger state and need a DID Resolution Result.Ledger-to-domain mapping and in-process resolver helpers.
@midnight-ntwrk/midnight-did-domainYou need runtime-agnostic DID validation and canonicalization.DID schemas, method ids, DID URL normalization, and domain types.
@midnight-ntwrk/midnight-did-contractYou need Compact runtime artifacts or generated contract types.Compact DID contract and generated runtime package.
@midnight-ntwrk/midnight-did-jubjub-schnorrYou need Midnight-native SchnorrJubjub signing helpers.Shared Jubjub Schnorr transcript and signing helpers.

Secret storage moved to midnight-did-resolver because it is service/runtime key-custody infrastructure, not DID method state.

Start with API Reference for the main exported API surface.

Midnight DID reference implementation