Struct lightning::ln::msgs::DataLossProtect [−][src]
pub struct DataLossProtect { pub your_last_per_commitment_secret: [u8; 32], pub my_current_per_commitment_point: PublicKey, }
Expand description
Proof that the sender knows the per-commitment secret of the previous commitment transaction. This is used to convince the recipient that the channel is at a certain commitment number even if they lost that data due to a local failure. Of course, the peer may lie and even later commitments may have been revoked.
Fields
your_last_per_commitment_secret: [u8; 32]
Proof that the sender knows the per-commitment secret of a specific commitment transaction belonging to the recipient
my_current_per_commitment_point: PublicKey
The sender’s per-commitment point for their current commitment transaction
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DataLossProtect
impl Send for DataLossProtect
impl Sync for DataLossProtect
impl Unpin for DataLossProtect
impl UnwindSafe for DataLossProtect
Blanket Implementations
Mutably borrows from an owned value. Read more