Trait DIDCommitment

Source
pub trait DIDCommitment: Commitment {
    // Required methods
    fn did(&self) -> &str;
    fn did_document(&self) -> &Document;
    fn as_any(&self) -> &dyn Any;

    // Provided methods
    fn candidate_keys(&self) -> Option<Vec<JWK>> { ... }
    fn candidate_endpoints(&self) -> Option<Vec<ServiceEndpoint>> { ... }
}

Required Methods§

Source

fn did(&self) -> &str

Gets the DID.

Source

fn did_document(&self) -> &Document

Gets the DID Document.

Source

fn as_any(&self) -> &dyn Any

Provided Methods§

Source

fn candidate_keys(&self) -> Option<Vec<JWK>>

Gets the keys in the candidate data.

Source

fn candidate_endpoints(&self) -> Option<Vec<ServiceEndpoint>>

Gets the endpoints in the candidate data.

Implementors§