Skip to content

Midnight DID

Midnight DID is the reference implementation of the did:midnight method.

This site keeps the public documentation small and implementation-focused:

  • the DID method specification
  • the contract/API package boundaries
  • the current key-storage model
  • local build, test, and publishing commands

Resolver services, DID manager UI/backend, and secret storage live in midnight-did-resolver. VC/VP packages live in midnight-verifiable-credentials.

Start Here

Key Model

  • Opaque W3C JWK keys are stored as canonical strings.
  • BLS12381G1 and BLS12381G2 are stored as opaque publicKeyJwk compressed point strings.
  • Native SchnorrJubjub keys are stored as JubjubPoint values.
  • Resolvers merge both key maps into the DID Document.
  • SchnorrJubjub verification reads the key from ledger state by verification method id.

Last updated:

Midnight DID reference implementation