Package org.ldk.structs
Class RevokeAndACK
- java.lang.Object
-
- org.ldk.structs.RevokeAndACK
-
public class RevokeAndACK extends Object
A [`revoke_and_ack`] message to be sent to or received from a peer. [`revoke_and_ack`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#completing-the-transition-to-the-updated-state-revoke_and_ack
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RevokeAndACK
clone()
Creates a copy of the RevokeAndACKboolean
eq(RevokeAndACK b)
Checks if two RevokeAndACKs contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
byte[]
get_channel_id()
The channel IDbyte[]
get_next_per_commitment_point()
The next sender-broadcast commitment transaction's per-commitment pointbyte[]
get_per_commitment_secret()
The secret corresponding to the per-commitment pointstatic RevokeAndACK
of(byte[] channel_id_arg, byte[] per_commitment_secret_arg, byte[] next_per_commitment_point_arg)
Constructs a new RevokeAndACK given each fieldstatic Result_RevokeAndACKDecodeErrorZ
read(byte[] ser)
Read a RevokeAndACK from a byte array, created by RevokeAndACK_writevoid
set_channel_id(byte[] val)
The channel IDvoid
set_next_per_commitment_point(byte[] val)
The next sender-broadcast commitment transaction's per-commitment pointvoid
set_per_commitment_secret(byte[] val)
The secret corresponding to the per-commitment pointbyte[]
write()
Serialize the RevokeAndACK object into a byte array which can be read by RevokeAndACK_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_channel_id
public byte[] get_channel_id()
The channel ID
-
set_channel_id
public void set_channel_id(byte[] val)
The channel ID
-
get_per_commitment_secret
public byte[] get_per_commitment_secret()
The secret corresponding to the per-commitment point
-
set_per_commitment_secret
public void set_per_commitment_secret(byte[] val)
The secret corresponding to the per-commitment point
-
get_next_per_commitment_point
public byte[] get_next_per_commitment_point()
The next sender-broadcast commitment transaction's per-commitment point
-
set_next_per_commitment_point
public void set_next_per_commitment_point(byte[] val)
The next sender-broadcast commitment transaction's per-commitment point
-
of
public static RevokeAndACK of(byte[] channel_id_arg, byte[] per_commitment_secret_arg, byte[] next_per_commitment_point_arg)
Constructs a new RevokeAndACK given each field
-
clone
public RevokeAndACK clone()
Creates a copy of the RevokeAndACK
-
eq
public boolean eq(RevokeAndACK b)
Checks if two RevokeAndACKs 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.
-
write
public byte[] write()
Serialize the RevokeAndACK object into a byte array which can be read by RevokeAndACK_read
-
read
public static Result_RevokeAndACKDecodeErrorZ read(byte[] ser)
Read a RevokeAndACK from a byte array, created by RevokeAndACK_write
-
-