pub struct VerifiedAcknowledgement { /* private fields */ }
Expand description
Represents packet acknowledgement whose signature has been already verified.
This acknowledgement cannot be serialized.
Implementations§
Source§impl VerifiedAcknowledgement
impl VerifiedAcknowledgement
pub fn new(ack_key_share: HalfKey, node_keypair: &OffchainKeypair) -> Self
Sourcepub fn random(offchain_keypair: &OffchainKeypair) -> Self
pub fn random(offchain_keypair: &OffchainKeypair) -> Self
Generates random but still a valid acknowledgement.
Sourcepub fn leak(self) -> Acknowledgement
pub fn leak(self) -> Acknowledgement
Downgrades this verified acknowledgement to an unverified serializable one.
Gets the acknowledged key out of this acknowledgement.
This is the remaining part of the solution of the Ticket
challenge.
Trait Implementations§
Source§impl Clone for VerifiedAcknowledgement
impl Clone for VerifiedAcknowledgement
Source§fn clone(&self) -> VerifiedAcknowledgement
fn clone(&self) -> VerifiedAcknowledgement
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 VerifiedAcknowledgement
impl Debug for VerifiedAcknowledgement
Source§impl PartialEq for VerifiedAcknowledgement
impl PartialEq for VerifiedAcknowledgement
impl Copy for VerifiedAcknowledgement
impl StructuralPartialEq for VerifiedAcknowledgement
Auto Trait Implementations§
impl Freeze for VerifiedAcknowledgement
impl RefUnwindSafe for VerifiedAcknowledgement
impl Send for VerifiedAcknowledgement
impl Sync for VerifiedAcknowledgement
impl Unpin for VerifiedAcknowledgement
impl UnwindSafe for VerifiedAcknowledgement
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more