Properly set CVec_u8Z to a byte[] which adds a ton more fn's
[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[] get_node_secret() {
19                 byte[] ret = bindings.KeysInterface_get_node_secret(this.ptr);
20                 return ret;
21         }
22
23         public byte[] get_destination_script() {
24                 byte[] ret = bindings.KeysInterface_get_destination_script(this.ptr);
25                 return ret;
26         }
27
28         public byte[] get_shutdown_pubkey() {
29                 byte[] ret = bindings.KeysInterface_get_shutdown_pubkey(this.ptr);
30                 return ret;
31         }
32
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);
36                 return ret;
37         }
38
39         public byte[] get_secure_random_bytes() {
40                 byte[] ret = bindings.KeysInterface_get_secure_random_bytes(this.ptr);
41                 return ret;
42         }
43
44 }