Struct tor_cert::Ed25519Cert
source ·
[−]pub struct Ed25519Cert { /* fields omitted */ }Expand description
Structure for an Ed25519-signed certificate as described in Tor’s cert-spec.txt.
Implementations
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.
Trait Implementations
type Error = TimeValidityError
type Error = TimeValidityError
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
