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
publicKeyJwkcompressed point strings. - Native SchnorrJubjub keys are stored as
JubjubPointvalues. - Resolvers merge both key maps into the DID Document.
- SchnorrJubjub verification reads the key from ledger state by verification method id.