Package org.ldk.structs
Class TrustedClosingTransaction
- java.lang.Object
-
- org.ldk.structs.TrustedClosingTransaction
-
public class TrustedClosingTransaction extends Object
A wrapper on ClosingTransaction indicating that the built bitcoin transaction is 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 byte[]
built_transaction()
The pre-built Bitcoin commitment transactionprotected void
finalize()
byte[]
get_sighash_all(byte[] funding_redeemscript, long channel_value_satoshis)
Get the SIGHASH_ALL sighash value of the transaction.byte[]
sign(byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis)
Sign a transaction, either because we are counter-signing the counterparty's transaction or because we are about to broadcast a holder transaction.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
built_transaction
public byte[] built_transaction()
The pre-built Bitcoin commitment transaction
-
get_sighash_all
public byte[] get_sighash_all(byte[] funding_redeemscript, long channel_value_satoshis)
Get the SIGHASH_ALL sighash value of the transaction. This can be used to verify a signature.
-
sign
public byte[] sign(byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis)
Sign a transaction, either because we are counter-signing the counterparty's transaction or because we are about to broadcast a holder transaction.
-
-