pub struct ConfirmP<S: Suite>(/* private fields */);Expand description
confirmP, the prover’s key confirmation: MAC(K_confirmP, shareV).
Implementations§
Source§impl<S: Suite> ConfirmP<S>
impl<S: Suite> ConfirmP<S>
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
Parses a confirmation received from the peer. Whether it matches is checked by the session that expects it, in constant time.
§Errors
Error::Length for the wrong length.
Sourcepub fn as_bytes(&self) -> &S::Confirmation
pub fn as_bytes(&self) -> &S::Confirmation
The confirmation as it travels.
Trait Implementations§
impl<S: Copy + Suite> Copy for ConfirmP<S>where
S::Confirmation: Copy,
impl<S: Eq + Suite> Eq for ConfirmP<S>where
S::Confirmation: Eq,
impl<S: PartialEq + Suite> StructuralPartialEq for ConfirmP<S>where
S::Confirmation: PartialEq,
Auto Trait Implementations§
impl<S> Freeze for ConfirmP<S>
impl<S> RefUnwindSafe for ConfirmP<S>
impl<S> Send for ConfirmP<S>
impl<S> Sync for ConfirmP<S>
impl<S> Unpin for ConfirmP<S>
impl<S> UnsafeUnpin for ConfirmP<S>
impl<S> UnwindSafe for ConfirmP<S>
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