Package org.ldk.structs
Class DataLossProtect
- java.lang.Object
-
- org.ldk.structs.DataLossProtect
-
public class DataLossProtect extends Object
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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataLossProtect
clone()
Creates a copy of the DataLossProtectboolean
eq(DataLossProtect b)
Checks if two DataLossProtects contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
byte[]
get_my_current_per_commitment_point()
The sender's per-commitment point for their current commitment transactionbyte[]
get_your_last_per_commitment_secret()
Proof that the sender knows the per-commitment secret of a specific commitment transaction belonging to the recipientstatic DataLossProtect
of(byte[] your_last_per_commitment_secret_arg, byte[] my_current_per_commitment_point_arg)
Constructs a new DataLossProtect given each fieldvoid
set_my_current_per_commitment_point(byte[] val)
The sender's per-commitment point for their current commitment transactionvoid
set_your_last_per_commitment_secret(byte[] val)
Proof that the sender knows the per-commitment secret of a specific commitment transaction belonging to the recipient
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_your_last_per_commitment_secret
public byte[] get_your_last_per_commitment_secret()
Proof that the sender knows the per-commitment secret of a specific commitment transaction belonging to the recipient
-
set_your_last_per_commitment_secret
public void set_your_last_per_commitment_secret(byte[] val)
Proof that the sender knows the per-commitment secret of a specific commitment transaction belonging to the recipient
-
get_my_current_per_commitment_point
public byte[] get_my_current_per_commitment_point()
The sender's per-commitment point for their current commitment transaction
-
set_my_current_per_commitment_point
public void set_my_current_per_commitment_point(byte[] val)
The sender's per-commitment point for their current commitment transaction
-
of
public static DataLossProtect of(byte[] your_last_per_commitment_secret_arg, byte[] my_current_per_commitment_point_arg)
Constructs a new DataLossProtect given each field
-
clone
public DataLossProtect clone()
Creates a copy of the DataLossProtect
-
eq
public boolean eq(DataLossProtect b)
Checks if two DataLossProtects contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
-
-