Expand description
§nostr-did
Generate W3C-compliant DID Documents from did:nostr identifiers.
Uses nostr-did-key for BIP-340 → Multikey cryptographic transformation
and produces fully spec-compliant DID Documents matching the
Nostr DID Method Specification v0.0.11.
§Quick start
use nostr_did::DocumentBuilder;
let doc = DocumentBuilder::new()
.build("did:nostr:124c0fa99407182ece5a24fad9b7f6674902fc422843d3128d38a0afbee0fdd2")
.unwrap();
println!("{}", serde_json::to_string_pretty(&doc).unwrap());Re-exports§
pub use document::DidDocument;pub use document::DocumentBuilder;pub use document::Profile;pub use document::Service;pub use document::VerificationMethod;pub use nostr_did_key as key;
Modules§
- document
- DID Document generation for the
did:nostrmethod.