]> git.bitcoin.ninja Git - ldk-java/blob - src/main/java/org/ldk/structs/ChannelPublicKeys.java
Fix race in tests
[ldk-java] / src / main / java / org / ldk / structs / ChannelPublicKeys.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5 import org.ldk.util.*;
6 import java.util.Arrays;
7
8 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
9 public class ChannelPublicKeys extends CommonBase {
10         ChannelPublicKeys(Object _dummy, long ptr) { super(ptr); }
11         @Override @SuppressWarnings("deprecation")
12         protected void finalize() throws Throwable {
13                 super.finalize();
14                 if (ptr != 0) { bindings.ChannelPublicKeys_free(ptr); }
15         }
16
17         public static ChannelPublicKeys constructor_clone(ChannelPublicKeys orig) {
18                 long ret = bindings.ChannelPublicKeys_clone(orig == null ? 0 : orig.ptr & ~1);
19                 ChannelPublicKeys ret_hu_conv = new ChannelPublicKeys(null, ret);
20                 ret_hu_conv.ptrs_to.add(orig);
21                 return ret_hu_conv;
22         }
23
24         public byte[] get_funding_pubkey() {
25                 byte[] ret = bindings.ChannelPublicKeys_get_funding_pubkey(this.ptr);
26                 return ret;
27         }
28
29         public void set_funding_pubkey(byte[] val) {
30                 bindings.ChannelPublicKeys_set_funding_pubkey(this.ptr, val);
31         }
32
33         public byte[] get_revocation_basepoint() {
34                 byte[] ret = bindings.ChannelPublicKeys_get_revocation_basepoint(this.ptr);
35                 return ret;
36         }
37
38         public void set_revocation_basepoint(byte[] val) {
39                 bindings.ChannelPublicKeys_set_revocation_basepoint(this.ptr, val);
40         }
41
42         public byte[] get_payment_point() {
43                 byte[] ret = bindings.ChannelPublicKeys_get_payment_point(this.ptr);
44                 return ret;
45         }
46
47         public void set_payment_point(byte[] val) {
48                 bindings.ChannelPublicKeys_set_payment_point(this.ptr, val);
49         }
50
51         public byte[] get_delayed_payment_basepoint() {
52                 byte[] ret = bindings.ChannelPublicKeys_get_delayed_payment_basepoint(this.ptr);
53                 return ret;
54         }
55
56         public void set_delayed_payment_basepoint(byte[] val) {
57                 bindings.ChannelPublicKeys_set_delayed_payment_basepoint(this.ptr, val);
58         }
59
60         public byte[] get_htlc_basepoint() {
61                 byte[] ret = bindings.ChannelPublicKeys_get_htlc_basepoint(this.ptr);
62                 return ret;
63         }
64
65         public void set_htlc_basepoint(byte[] val) {
66                 bindings.ChannelPublicKeys_set_htlc_basepoint(this.ptr, val);
67         }
68
69         public static ChannelPublicKeys constructor_new(byte[] funding_pubkey_arg, byte[] revocation_basepoint_arg, byte[] payment_point_arg, byte[] delayed_payment_basepoint_arg, byte[] htlc_basepoint_arg) {
70                 long ret = bindings.ChannelPublicKeys_new(funding_pubkey_arg, revocation_basepoint_arg, payment_point_arg, delayed_payment_basepoint_arg, htlc_basepoint_arg);
71                 ChannelPublicKeys ret_hu_conv = new ChannelPublicKeys(null, ret);
72                 return ret_hu_conv;
73         }
74
75         public byte[] write(ChannelPublicKeys obj) {
76                 byte[] ret = bindings.ChannelPublicKeys_write(obj == null ? 0 : obj.ptr & ~1);
77                 this.ptrs_to.add(obj);
78                 return ret;
79         }
80
81         public static ChannelPublicKeys constructor_read(byte[] ser) {
82                 long ret = bindings.ChannelPublicKeys_read(ser);
83                 ChannelPublicKeys ret_hu_conv = new ChannelPublicKeys(null, ret);
84                 return ret_hu_conv;
85         }
86
87 }