1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 public class HolderCommitmentTransaction extends CommonBase {
7 HolderCommitmentTransaction(Object _dummy, long ptr) { super(ptr); }
8 @Override @SuppressWarnings("deprecation")
9 protected void finalize() throws Throwable {
10 bindings.HolderCommitmentTransaction_free(ptr); super.finalize();
13 public HolderCommitmentTransaction(HolderCommitmentTransaction orig) {
14 super(bindings.HolderCommitmentTransaction_clone(orig == null ? 0 : orig.ptr & ~1));
15 this.ptrs_to.add(orig);
18 // Skipped HolderCommitmentTransaction_get_unsigned_tx
19 // Skipped HolderCommitmentTransaction_set_unsigned_tx
20 public byte[] get_counterparty_sig(HolderCommitmentTransaction this_ptr) {
21 byte[] ret = bindings.HolderCommitmentTransaction_get_counterparty_sig(this_ptr == null ? 0 : this_ptr.ptr & ~1);
22 this.ptrs_to.add(this_ptr);
26 public void set_counterparty_sig(HolderCommitmentTransaction this_ptr, byte[] val) {
27 bindings.HolderCommitmentTransaction_set_counterparty_sig(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
28 this.ptrs_to.add(this_ptr);
31 public int get_feerate_per_kw(HolderCommitmentTransaction this_ptr) {
32 int ret = bindings.HolderCommitmentTransaction_get_feerate_per_kw(this_ptr == null ? 0 : this_ptr.ptr & ~1);
33 this.ptrs_to.add(this_ptr);
37 public void set_feerate_per_kw(HolderCommitmentTransaction this_ptr, int val) {
38 bindings.HolderCommitmentTransaction_set_feerate_per_kw(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
39 this.ptrs_to.add(this_ptr);
42 // Skipped HolderCommitmentTransaction_set_per_htlc
43 // Skipped HolderCommitmentTransaction_new_missing_holder_sig
44 public TxCreationKeys trust_key_derivation() {
45 TxCreationKeys ret = new TxCreationKeys(null, bindings.HolderCommitmentTransaction_trust_key_derivation(this.ptr));
49 public byte[] txid() {
50 byte[] ret = bindings.HolderCommitmentTransaction_txid(this.ptr);
54 public byte[] get_holder_sig(byte[] funding_key, byte[] funding_redeemscript, long channel_value_satoshis) {
55 byte[] ret = bindings.HolderCommitmentTransaction_get_holder_sig(this.ptr, funding_key, funding_redeemscript, channel_value_satoshis);
59 // Skipped HolderCommitmentTransaction_get_htlc_sigs
60 // Skipped HolderCommitmentTransaction_write
61 public HolderCommitmentTransaction(byte[] ser) {
62 super(bindings.HolderCommitmentTransaction_read(ser));