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 byte[] get_funding_pubkey() {
18 byte[] ret = bindings.ChannelPublicKeys_get_funding_pubkey(this.ptr);
22 public void set_funding_pubkey(byte[] val) {
23 bindings.ChannelPublicKeys_set_funding_pubkey(this.ptr, val);
26 public byte[] get_revocation_basepoint() {
27 byte[] ret = bindings.ChannelPublicKeys_get_revocation_basepoint(this.ptr);
31 public void set_revocation_basepoint(byte[] val) {
32 bindings.ChannelPublicKeys_set_revocation_basepoint(this.ptr, val);
35 public byte[] get_payment_point() {
36 byte[] ret = bindings.ChannelPublicKeys_get_payment_point(this.ptr);
40 public void set_payment_point(byte[] val) {
41 bindings.ChannelPublicKeys_set_payment_point(this.ptr, val);
44 public byte[] get_delayed_payment_basepoint() {
45 byte[] ret = bindings.ChannelPublicKeys_get_delayed_payment_basepoint(this.ptr);
49 public void set_delayed_payment_basepoint(byte[] val) {
50 bindings.ChannelPublicKeys_set_delayed_payment_basepoint(this.ptr, val);
53 public byte[] get_htlc_basepoint() {
54 byte[] ret = bindings.ChannelPublicKeys_get_htlc_basepoint(this.ptr);
58 public void set_htlc_basepoint(byte[] val) {
59 bindings.ChannelPublicKeys_set_htlc_basepoint(this.ptr, val);
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);
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);
76 public byte[] write() {
77 byte[] ret = bindings.ChannelPublicKeys_write(this.ptr);
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);