pub struct PinRecord {
pub current_fingerprint: [u8; 32],
pub previous_fingerprint: Option<[u8; 32]>,
}
Expand description
A record of pinned fingerprints for a peer, supporting key rotation with continuity. Contains the current fingerprint and optionally the previous one for continuity validation.
Fields§
§current_fingerprint: [u8; 32]
The current SHA-256 fingerprint of the peer’s public key (SPKI).
previous_fingerprint: Option<[u8; 32]>
The previous SHA-256 fingerprint if the key has been rotated, used for continuity validation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PinRecord
impl<'de> Deserialize<'de> for PinRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PinRecord
impl StructuralPartialEq for PinRecord
Auto Trait Implementations§
impl Freeze for PinRecord
impl RefUnwindSafe for PinRecord
impl Send for PinRecord
impl Sync for PinRecord
impl Unpin for PinRecord
impl UnwindSafe for PinRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.