pub struct RevokeAndACK {
pub channel_id: [u8; 32],
pub per_commitment_secret: [u8; 32],
pub next_per_commitment_point: PublicKey,
}
Expand description
A revoke_and_ack message to be sent or received from a peer
Fields
channel_id: [u8; 32]
The channel ID
per_commitment_secret: [u8; 32]
The secret corresponding to the per-commitment point
next_per_commitment_point: PublicKey
The next sender-broadcast commitment transaction’s per-commitment point
Trait Implementations
sourceimpl Clone for RevokeAndACK
impl Clone for RevokeAndACK
sourcefn clone(&self) -> RevokeAndACK
fn clone(&self) -> RevokeAndACK
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RevokeAndACK
impl Debug for RevokeAndACK
sourceimpl PartialEq<RevokeAndACK> for RevokeAndACK
impl PartialEq<RevokeAndACK> for RevokeAndACK
sourcefn eq(&self, other: &RevokeAndACK) -> bool
fn eq(&self, other: &RevokeAndACK) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Readable for RevokeAndACK
impl Readable for RevokeAndACK
sourceimpl Writeable for RevokeAndACK
impl Writeable for RevokeAndACK
sourcefn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Writes self out to a Vec
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
impl StructuralPartialEq for RevokeAndACK
Auto Trait Implementations
impl RefUnwindSafe for RevokeAndACK
impl Send for RevokeAndACK
impl Sync for RevokeAndACK
impl Unpin for RevokeAndACK
impl UnwindSafe for RevokeAndACK
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more