pub struct Ed25519Cert { /* private fields */ }
Expand description

Structure for an Ed25519-signed certificate as described in Tor’s cert-spec.txt.

Implementations

Available on crate feature encode only.

Return a new Ed25519CertConstructor to create and return a new signed Ed25519Cert.

Try to decode a certificate from a byte slice.

This function returns an error if the byte slice is not completely exhausted.

Note that the resulting KeyUnknownCertificate is not checked for validity at all: you will need to provide it with an expected signing key, then check it for timeliness and well-signedness.

Return the time at which this certificate becomes expired

Return true iff this certificate will be expired at the time when.

Return the signed key or object that is authenticated by this certificate.

Return the ed25519 key that signed this certificate.

Return the type of this certificate.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
An error type that’s returned when the object is not timely.
Check whether this object is valid at a given time. Read more
Return the underlying object without checking whether it’s valid.
Unwrap this Timebound object if it is valid at a given time.
Unwrap this Timebound object if it is valid now.
Unwrap this object if it is valid at the provided time t. If no time is provided, check the object at the current time. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.