Package org.ldk.structs
Class HolderCommitmentTransaction
- java.lang.Object
-
- org.ldk.structs.HolderCommitmentTransaction
-
public class HolderCommitmentTransaction extends Object
Information needed to build and sign a holder's commitment transaction. The transaction is only signed once we are ready to broadcast.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HolderCommitmentTransaction
clone()
Creates a copy of the HolderCommitmentTransactionprotected void
finalize()
byte[][]
get_counterparty_htlc_sigs()
All non-dust counterparty HTLC signatures, in the order they appear in the transaction Returns a copy of the field.byte[]
get_counterparty_sig()
Our counterparty's signature for the transactionstatic HolderCommitmentTransaction
of(CommitmentTransaction commitment_tx, byte[] counterparty_sig, byte[][] counterparty_htlc_sigs, byte[] holder_funding_key, byte[] counterparty_funding_key)
Create a new holder transaction with the given counterparty signatures.static Result_HolderCommitmentTransactionDecodeErrorZ
read(byte[] ser)
Read a HolderCommitmentTransaction from a byte array, created by HolderCommitmentTransaction_writevoid
set_counterparty_htlc_sigs(byte[][] val)
All non-dust counterparty HTLC signatures, in the order they appear in the transactionvoid
set_counterparty_sig(byte[] val)
Our counterparty's signature for the transactionbyte[]
write()
Serialize the HolderCommitmentTransaction object into a byte array which can be read by HolderCommitmentTransaction_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_counterparty_sig
public byte[] get_counterparty_sig()
Our counterparty's signature for the transaction
-
set_counterparty_sig
public void set_counterparty_sig(byte[] val)
Our counterparty's signature for the transaction
-
get_counterparty_htlc_sigs
public byte[][] get_counterparty_htlc_sigs()
All non-dust counterparty HTLC signatures, in the order they appear in the transaction Returns a copy of the field.
-
set_counterparty_htlc_sigs
public void set_counterparty_htlc_sigs(byte[][] val)
All non-dust counterparty HTLC signatures, in the order they appear in the transaction
-
clone
public HolderCommitmentTransaction clone()
Creates a copy of the HolderCommitmentTransaction
-
write
public byte[] write()
Serialize the HolderCommitmentTransaction object into a byte array which can be read by HolderCommitmentTransaction_read
-
read
public static Result_HolderCommitmentTransactionDecodeErrorZ read(byte[] ser)
Read a HolderCommitmentTransaction from a byte array, created by HolderCommitmentTransaction_write
-
of
public static HolderCommitmentTransaction of(CommitmentTransaction commitment_tx, byte[] counterparty_sig, byte[][] counterparty_htlc_sigs, byte[] holder_funding_key, byte[] counterparty_funding_key)
Create a new holder transaction with the given counterparty signatures. The funding keys are used to figure out which signature should go first when building the transaction for broadcast.
-
-