Add support for DID services and did:plc

This commit is contained in:
Michael Muré
2025-07-21 10:12:05 +02:00
parent 7b88f5587b
commit de98cf811b
17 changed files with 819 additions and 14 deletions

4
did.go
View File

@@ -7,6 +7,10 @@ import (
"sync"
)
// Specifications:
// - https://www.w3.org/TR/did-1.0/
// - https://www.w3.org/TR/did-1.1/
const JsonLdContext = "https://www.w3.org/ns/did/v1"
// Decoder is a function decoding a DID string representation ("did:example:foo") into a DID.