1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
5 import org.ldk.enums.*;
7 public class KeysInterface extends CommonBase {
8 KeysInterface(Object _dummy, long ptr) { super(ptr); }
9 public KeysInterface(bindings.LDKKeysInterface arg) {
10 super(bindings.LDKKeysInterface_new(arg));
11 this.ptrs_to.add(arg);
13 @Override @SuppressWarnings("deprecation")
14 protected void finalize() throws Throwable {
15 bindings.KeysInterface_free(ptr); super.finalize();
18 public byte[] get_node_secret() {
19 byte[] ret = bindings.KeysInterface_get_node_secret(this.ptr);
23 public byte[] get_destination_script() {
24 byte[] ret = bindings.KeysInterface_get_destination_script(this.ptr);
28 public byte[] get_shutdown_pubkey() {
29 byte[] ret = bindings.KeysInterface_get_shutdown_pubkey(this.ptr);
33 public ChannelKeys get_channel_keys(boolean inbound, long channel_value_satoshis) {
34 ChannelKeys ret = new ChannelKeys(null, bindings.KeysInterface_get_channel_keys(this.ptr, inbound, channel_value_satoshis));
35 ret.ptrs_to.add(this);
39 public byte[] get_secure_random_bytes() {
40 byte[] ret = bindings.KeysInterface_get_secure_random_bytes(this.ptr);