X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FKeysInterface.java;h=d3463631db8a6f09ac8fa9a7e95f3af5fc4e82c5;hb=276893d3b8bd3fcb2bb10e3cab73a69d34831909;hp=84a2762347e31262dd20aad3042b620e4a46b6b9;hpb=fd59673b53bd5e74459132e685a10258b3c1d5a6;p=ldk-java diff --git a/src/main/java/org/ldk/structs/KeysInterface.java b/src/main/java/org/ldk/structs/KeysInterface.java index 84a27623..d3463631 100644 --- a/src/main/java/org/ldk/structs/KeysInterface.java +++ b/src/main/java/org/ldk/structs/KeysInterface.java @@ -23,9 +23,9 @@ public class KeysInterface extends CommonBase { byte[] get_node_secret(); byte[] get_destination_script(); byte[] get_shutdown_pubkey(); - ChannelKeys get_channel_keys(boolean inbound, long channel_value_satoshis); + Sign get_channel_signer(boolean inbound, long channel_value_satoshis); byte[] get_secure_random_bytes(); - Result_ChannelKeysDecodeErrorZ read_chan_signer(byte[] reader); + Result_SignDecodeErrorZ read_chan_signer(byte[] reader); } private static class LDKKeysInterfaceHolder { KeysInterface held; } public static KeysInterface new_impl(KeysInterfaceInterface arg) { @@ -43,8 +43,8 @@ public class KeysInterface extends CommonBase { byte[] ret = arg.get_shutdown_pubkey(); return ret; } - @Override public long get_channel_keys(boolean inbound, long channel_value_satoshis) { - ChannelKeys ret = arg.get_channel_keys(inbound, channel_value_satoshis); + @Override public long get_channel_signer(boolean inbound, long channel_value_satoshis) { + Sign ret = arg.get_channel_signer(inbound, channel_value_satoshis); long result = ret == null ? 0 : ret.ptr; impl_holder.held.ptrs_to.add(ret); return result; @@ -54,7 +54,7 @@ public class KeysInterface extends CommonBase { return ret; } @Override public long read_chan_signer(byte[] reader) { - Result_ChannelKeysDecodeErrorZ ret = arg.read_chan_signer(reader); + Result_SignDecodeErrorZ ret = arg.read_chan_signer(reader); long result = ret != null ? ret.ptr : 0; return result; } @@ -76,9 +76,9 @@ public class KeysInterface extends CommonBase { return ret; } - public ChannelKeys get_channel_keys(boolean inbound, long channel_value_satoshis) { - long ret = bindings.KeysInterface_get_channel_keys(this.ptr, inbound, channel_value_satoshis); - ChannelKeys ret_hu_conv = new ChannelKeys(null, ret); + public Sign get_channel_signer(boolean inbound, long channel_value_satoshis) { + long ret = bindings.KeysInterface_get_channel_signer(this.ptr, inbound, channel_value_satoshis); + Sign ret_hu_conv = new Sign(null, ret); ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; } @@ -88,9 +88,9 @@ public class KeysInterface extends CommonBase { return ret; } - public Result_ChannelKeysDecodeErrorZ read_chan_signer(byte[] reader) { + public Result_SignDecodeErrorZ read_chan_signer(byte[] reader) { long ret = bindings.KeysInterface_read_chan_signer(this.ptr, reader); - Result_ChannelKeysDecodeErrorZ ret_hu_conv = Result_ChannelKeysDecodeErrorZ.constr_from_ptr(ret); + Result_SignDecodeErrorZ ret_hu_conv = Result_SignDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; }