Trait VerifiableTimestamp

Source
pub trait VerifiableTimestamp {
    // Required methods
    fn did_commitment(&self) -> &dyn DIDCommitment;
    fn timestamp_commitment(&self) -> &dyn TimestampCommitment;

    // Provided methods
    fn timestamp(&self) -> Timestamp { ... }
    fn verify(&self, target: &str) -> Result<(), CommitmentError> { ... }
}
Expand description

A verifiably-timestamped DID.

Required Methods§

Source

fn did_commitment(&self) -> &dyn DIDCommitment

Gets the wrapped DIDCommitment.

Source

fn timestamp_commitment(&self) -> &dyn TimestampCommitment

Gets the wrapped TimestampCommitment.

Provided Methods§

Source

fn timestamp(&self) -> Timestamp

Gets the Timestamp.

Source

fn verify(&self, target: &str) -> Result<(), CommitmentError>

Verifies both the DIDCommitment and the TimestampCommitment against the same target.

Implementors§