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[] call_get_node_secret() {
19 byte[] ret = bindings.KeysInterface_call_get_node_secret(this.ptr);
23 // Skipped KeysInterface_call_get_destination_script
24 public byte[] call_get_shutdown_pubkey() {
25 byte[] ret = bindings.KeysInterface_call_get_shutdown_pubkey(this.ptr);
29 public ChannelKeys call_get_channel_keys(boolean inbound, long channel_value_satoshis) {
30 ChannelKeys ret = new ChannelKeys(null, bindings.KeysInterface_call_get_channel_keys(this.ptr, inbound, channel_value_satoshis));
31 ret.ptrs_to.add(this);
35 public byte[] call_get_secure_random_bytes() {
36 byte[] ret = bindings.KeysInterface_call_get_secure_random_bytes(this.ptr);