Expose SecretKey as byte[32], expose trait call fns in human structs
[ldk-java] / src / main / java / org / ldk / structs / KeysInterface.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4
5 import org.ldk.enums.*;
6
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);
12         }
13         @Override @SuppressWarnings("deprecation")
14         protected void finalize() throws Throwable {
15                 bindings.KeysInterface_free(ptr); super.finalize();
16         }
17
18         public byte[] call_get_node_secret() {
19                 byte[] ret = bindings.KeysInterface_call_get_node_secret(this.ptr);
20                 return ret;
21         }
22
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);
26                 return ret;
27         }
28
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);
32                 return ret;
33         }
34
35         public byte[] call_get_secure_random_bytes() {
36                 byte[] ret = bindings.KeysInterface_call_get_secure_random_bytes(this.ptr);
37                 return ret;
38         }
39
40 }