Package org.ldk.structs
Class TrustedCommitmentTransaction
- java.lang.Object
-
- org.ldk.structs.TrustedCommitmentTransaction
-
public class TrustedCommitmentTransaction extends Object
A wrapper on CommitmentTransaction indicating that the derived fields (the built bitcoin transaction and the transaction creation keys) are trusted. See trust() and verify() functions on CommitmentTransaction. This structure implements Deref.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuiltCommitmentTransaction
built_transaction()
The pre-built Bitcoin commitment transactionprotected void
finalize()
Result_CVec_SignatureZNoneZ
get_htlc_sigs(byte[] htlc_base_key, DirectedChannelTransactionParameters channel_parameters)
Get a signature for each HTLC which was included in the commitment transaction (ie for which HTLCOutputInCommitment::transaction_output_index.is_some()).TxCreationKeys
keys()
The pre-calculated transaction creation public keys.byte[]
txid()
The transaction ID of the built Bitcoin transaction
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
txid
public byte[] txid()
The transaction ID of the built Bitcoin transaction
-
built_transaction
public BuiltCommitmentTransaction built_transaction()
The pre-built Bitcoin commitment transaction
-
keys
public TxCreationKeys keys()
The pre-calculated transaction creation public keys.
-
get_htlc_sigs
public Result_CVec_SignatureZNoneZ get_htlc_sigs(byte[] htlc_base_key, DirectedChannelTransactionParameters channel_parameters)
Get a signature for each HTLC which was included in the commitment transaction (ie for which HTLCOutputInCommitment::transaction_output_index.is_some()). The returned Vec has one entry for each HTLC, and in the same order.
-
-