pub struct DidDocument {
pub context: Vec<String>,
pub id: String,
pub verification_method: Vec<VerificationMethod>,
pub authentication: Vec<String>,
pub assertion_method: Vec<String>,
pub capability_invocation: Vec<String>,
pub capability_delegation: Vec<String>,
pub service: Vec<Service>,
}Expand description
A W3C DID Core 1.0 conformant DID Document — the public projection of an LCT.
Fields§
§context: Vec<String>§id: String§verification_method: Vec<VerificationMethod>§authentication: Vec<String>§assertion_method: Vec<String>§capability_invocation: Vec<String>§capability_delegation: Vec<String>§service: Vec<Service>Implementations§
Source§impl DidDocument
impl DidDocument
Sourcepub fn from_lct(lct: &Lct, authority: &str, services: &ServiceEndpoints) -> Self
pub fn from_lct(lct: &Lct, authority: &str, services: &ServiceEndpoints) -> Self
Project an LCT into a DID Document resolved via authority.
Note: keyAgreement is intentionally absent in v0 — the Web4 channel
key (pair_channel) is an independent X25519 key, not derived from the
Ed25519 identity key, so it cannot be expressed as a derived DID
verification method. A channel endpoint is advertised as a service
instead.
Trait Implementations§
Source§impl Clone for DidDocument
impl Clone for DidDocument
Source§impl Debug for DidDocument
impl Debug for DidDocument
Source§impl<'de> Deserialize<'de> for DidDocument
impl<'de> Deserialize<'de> for DidDocument
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DidDocument
impl RefUnwindSafe for DidDocument
impl Send for DidDocument
impl Sync for DidDocument
impl Unpin for DidDocument
impl UnsafeUnpin for DidDocument
impl UnwindSafe for DidDocument
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more