pub struct DocumentSignature {
pub identity: String,
pub signing_key_digest: String,
pub signature: String,
pub algorithm: Option<String>,
}Expand description
A signature on a network status document.
Each directory authority signs the consensus with their signing key.
The signature covers the document from the beginning through the
directory-signature line.
§Fields
identity: The authority’s identity key fingerprintsigning_key_digest: Digest of the signing key usedsignature: The PEM-encoded signaturealgorithm: Optional algorithm identifier (e.g., “sha256”)
Fields§
§identity: StringThe signing authority’s identity key fingerprint (40 hex chars).
signing_key_digest: StringDigest of the signing key used for this signature.
signature: StringThe PEM-encoded signature block.
algorithm: Option<String>Algorithm used (e.g., “sha256”), if specified.
Trait Implementations§
Source§impl Clone for DocumentSignature
impl Clone for DocumentSignature
Source§fn clone(&self) -> DocumentSignature
fn clone(&self) -> DocumentSignature
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DocumentSignature
impl Debug for DocumentSignature
Source§impl PartialEq for DocumentSignature
impl PartialEq for DocumentSignature
impl StructuralPartialEq for DocumentSignature
Auto Trait Implementations§
impl Freeze for DocumentSignature
impl RefUnwindSafe for DocumentSignature
impl Send for DocumentSignature
impl Sync for DocumentSignature
impl Unpin for DocumentSignature
impl UnwindSafe for DocumentSignature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more