1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
8 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
9 public class PreCalculatedTxCreationKeys extends CommonBase {
10 PreCalculatedTxCreationKeys(Object _dummy, long ptr) { super(ptr); }
11 @Override @SuppressWarnings("deprecation")
12 protected void finalize() throws Throwable {
14 if (ptr != 0) { bindings.PreCalculatedTxCreationKeys_free(ptr); }
17 public static PreCalculatedTxCreationKeys constructor_clone(PreCalculatedTxCreationKeys orig) {
18 long ret = bindings.PreCalculatedTxCreationKeys_clone(orig == null ? 0 : orig.ptr & ~1);
19 PreCalculatedTxCreationKeys ret_hu_conv = new PreCalculatedTxCreationKeys(null, ret);
20 ret_hu_conv.ptrs_to.add(orig);
24 public static PreCalculatedTxCreationKeys constructor_new(TxCreationKeys keys) {
25 long ret = bindings.PreCalculatedTxCreationKeys_new(keys == null ? 0 : keys.ptr & ~1);
26 PreCalculatedTxCreationKeys ret_hu_conv = new PreCalculatedTxCreationKeys(null, ret);
27 ret_hu_conv.ptrs_to.add(keys);
31 public TxCreationKeys trust_key_derivation() {
32 long ret = bindings.PreCalculatedTxCreationKeys_trust_key_derivation(this.ptr);
33 TxCreationKeys ret_hu_conv = new TxCreationKeys(null, ret);
37 public byte[] per_commitment_point() {
38 byte[] ret = bindings.PreCalculatedTxCreationKeys_per_commitment_point(this.ptr);