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 ChannelPublicKeys extends CommonBase {
10 ChannelPublicKeys(Object _dummy, long ptr) { super(ptr); }
11 @Override @SuppressWarnings("deprecation")
12 protected void finalize() throws Throwable {
14 if (ptr != 0) { bindings.ChannelPublicKeys_free(ptr); }
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);
24 public byte[] get_funding_pubkey() {
25 byte[] ret = bindings.ChannelPublicKeys_get_funding_pubkey(this.ptr);
29 public void set_funding_pubkey(byte[] val) {
30 bindings.ChannelPublicKeys_set_funding_pubkey(this.ptr, val);
33 public byte[] get_revocation_basepoint() {
34 byte[] ret = bindings.ChannelPublicKeys_get_revocation_basepoint(this.ptr);
38 public void set_revocation_basepoint(byte[] val) {
39 bindings.ChannelPublicKeys_set_revocation_basepoint(this.ptr, val);
42 public byte[] get_payment_point() {
43 byte[] ret = bindings.ChannelPublicKeys_get_payment_point(this.ptr);
47 public void set_payment_point(byte[] val) {
48 bindings.ChannelPublicKeys_set_payment_point(this.ptr, val);
51 public byte[] get_delayed_payment_basepoint() {
52 byte[] ret = bindings.ChannelPublicKeys_get_delayed_payment_basepoint(this.ptr);
56 public void set_delayed_payment_basepoint(byte[] val) {
57 bindings.ChannelPublicKeys_set_delayed_payment_basepoint(this.ptr, val);
60 public byte[] get_htlc_basepoint() {
61 byte[] ret = bindings.ChannelPublicKeys_get_htlc_basepoint(this.ptr);
65 public void set_htlc_basepoint(byte[] val) {
66 bindings.ChannelPublicKeys_set_htlc_basepoint(this.ptr, val);
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);
75 public byte[] write(ChannelPublicKeys obj) {
76 byte[] ret = bindings.ChannelPublicKeys_write(obj == null ? 0 : obj.ptr & ~1);
77 this.ptrs_to.add(obj);
81 public static ChannelPublicKeys constructor_read(byte[] ser) {
82 long ret = bindings.ChannelPublicKeys_read(ser);
83 ChannelPublicKeys ret_hu_conv = new ChannelPublicKeys(null, ret);