]> git.bitcoin.ninja Git - ldk-java/blob - src/main/java/org/ldk/structs/ChannelPublicKeys.java
0d2664a6d46f16bcd4d201b082b3cdc0583da16f
[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 byte[] get_funding_pubkey() {
18                 byte[] ret = bindings.ChannelPublicKeys_get_funding_pubkey(this.ptr);
19                 return ret;
20         }
21
22         public void set_funding_pubkey(byte[] val) {
23                 bindings.ChannelPublicKeys_set_funding_pubkey(this.ptr, val);
24         }
25
26         public byte[] get_revocation_basepoint() {
27                 byte[] ret = bindings.ChannelPublicKeys_get_revocation_basepoint(this.ptr);
28                 return ret;
29         }
30
31         public void set_revocation_basepoint(byte[] val) {
32                 bindings.ChannelPublicKeys_set_revocation_basepoint(this.ptr, val);
33         }
34
35         public byte[] get_payment_point() {
36                 byte[] ret = bindings.ChannelPublicKeys_get_payment_point(this.ptr);
37                 return ret;
38         }
39
40         public void set_payment_point(byte[] val) {
41                 bindings.ChannelPublicKeys_set_payment_point(this.ptr, val);
42         }
43
44         public byte[] get_delayed_payment_basepoint() {
45                 byte[] ret = bindings.ChannelPublicKeys_get_delayed_payment_basepoint(this.ptr);
46                 return ret;
47         }
48
49         public void set_delayed_payment_basepoint(byte[] val) {
50                 bindings.ChannelPublicKeys_set_delayed_payment_basepoint(this.ptr, val);
51         }
52
53         public byte[] get_htlc_basepoint() {
54                 byte[] ret = bindings.ChannelPublicKeys_get_htlc_basepoint(this.ptr);
55                 return ret;
56         }
57
58         public void set_htlc_basepoint(byte[] val) {
59                 bindings.ChannelPublicKeys_set_htlc_basepoint(this.ptr, val);
60         }
61
62         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) {
63                 long ret = bindings.ChannelPublicKeys_new(funding_pubkey_arg, revocation_basepoint_arg, payment_point_arg, delayed_payment_basepoint_arg, htlc_basepoint_arg);
64                 ChannelPublicKeys ret_hu_conv = new ChannelPublicKeys(null, ret);
65                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
66                 return ret_hu_conv;
67         }
68
69         public ChannelPublicKeys clone() {
70                 long ret = bindings.ChannelPublicKeys_clone(this.ptr);
71                 ChannelPublicKeys ret_hu_conv = new ChannelPublicKeys(null, ret);
72                 ret_hu_conv.ptrs_to.add(this);
73                 return ret_hu_conv;
74         }
75
76         public byte[] write() {
77                 byte[] ret = bindings.ChannelPublicKeys_write(this.ptr);
78                 return ret;
79         }
80
81         public static Result_ChannelPublicKeysDecodeErrorZ constructor_read(byte[] ser) {
82                 long ret = bindings.ChannelPublicKeys_read(ser);
83                 Result_ChannelPublicKeysDecodeErrorZ ret_hu_conv = Result_ChannelPublicKeysDecodeErrorZ.constr_from_ptr(ret);
84                 return ret_hu_conv;
85         }
86
87 }