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§
Sourcefn did_commitment(&self) -> &dyn DIDCommitment
fn did_commitment(&self) -> &dyn DIDCommitment
Gets the wrapped DIDCommitment.
Sourcefn timestamp_commitment(&self) -> &dyn TimestampCommitment
fn timestamp_commitment(&self) -> &dyn TimestampCommitment
Gets the wrapped TimestampCommitment.