projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update auto-updated Java files
[ldk-java]
/
ts
/
structs
/
KeysInterface.ts
diff --git
a/ts/structs/KeysInterface.ts
b/ts/structs/KeysInterface.ts
index d199662d5790ab847c1835fbf51a61519734a1de..bfc1777fc4f770000b41cd16dc26904642e492c2 100644
(file)
--- a/
ts/structs/KeysInterface.ts
+++ b/
ts/structs/KeysInterface.ts
@@
-34,7
+34,8
@@
import * as bindings from '../bindings' // TODO: figure out location
// todo: in-line interface filling
get_node_secret (): Uint8Array {
Uint8Array ret = arg.get_node_secret();
// todo: in-line interface filling
get_node_secret (): Uint8Array {
Uint8Array ret = arg.get_node_secret();
- return ret;
+ result: Uint8Array = InternalUtils.check_arr_len(ret, 32);
+ return result;
},
get_destination_script (): Uint8Array {
},
get_destination_script (): Uint8Array {
@@
-44,32
+45,38
@@
import * as bindings from '../bindings' // TODO: figure out location
get_shutdown_scriptpubkey (): number {
ShutdownScript ret = arg.get_shutdown_scriptpubkey();
get_shutdown_scriptpubkey (): number {
ShutdownScript ret = arg.get_shutdown_scriptpubkey();
- result: number = ret == null ? 0 : ret.ptr & ~1;
- impl_holder.held.ptrs_to.add(ret);
+ result: number = ret == null ? 0 : ret.clone_ptr();
return result;
},
get_channel_signer (inbound: boolean, channel_value_satoshis: number): number {
Sign ret = arg.get_channel_signer(inbound, channel_value_satoshis);
return result;
},
get_channel_signer (inbound: boolean, channel_value_satoshis: number): number {
Sign ret = arg.get_channel_signer(inbound, channel_value_satoshis);
- result: number = ret == null ? 0 : ret.
ptr
;
+ result: number = ret == null ? 0 : ret.
clone_ptr()
;
impl_holder.held.ptrs_to.add(ret);
return result;
},
get_secure_random_bytes (): Uint8Array {
Uint8Array ret = arg.get_secure_random_bytes();
impl_holder.held.ptrs_to.add(ret);
return result;
},
get_secure_random_bytes (): Uint8Array {
Uint8Array ret = arg.get_secure_random_bytes();
- return ret;
+ result: Uint8Array = InternalUtils.check_arr_len(ret, 32);
+ return result;
},
read_chan_signer (reader: Uint8Array): number {
Result_SignDecodeErrorZ ret = arg.read_chan_signer(reader);
},
read_chan_signer (reader: Uint8Array): number {
Result_SignDecodeErrorZ ret = arg.read_chan_signer(reader);
- result: number = ret
!= null ? ret.ptr : 0
;
+ result: number = ret
== null ? 0 : ret.clone_ptr()
;
return result;
},
sign_invoice (invoice_preimage: Uint8Array): number {
Result_RecoverableSignatureNoneZ ret = arg.sign_invoice(invoice_preimage);
return result;
},
sign_invoice (invoice_preimage: Uint8Array): number {
Result_RecoverableSignatureNoneZ ret = arg.sign_invoice(invoice_preimage);
- result: number = ret != null ? ret.ptr : 0;
+ result: number = ret == null ? 0 : ret.clone_ptr();
+ return result;
+ },
+
+ get_inbound_payment_key_material (): Uint8Array {
+ Uint8Array ret = arg.get_inbound_payment_key_material();
+ result: Uint8Array = InternalUtils.check_arr_len(ret, 32);
return result;
},
return result;
},
@@
-87,6
+94,7
@@
import * as bindings from '../bindings' // TODO: figure out location
get_secure_random_bytes(): Uint8Array;
read_chan_signer(reader: Uint8Array): Result_SignDecodeErrorZ;
sign_invoice(invoice_preimage: Uint8Array): Result_RecoverableSignatureNoneZ;
get_secure_random_bytes(): Uint8Array;
read_chan_signer(reader: Uint8Array): Result_SignDecodeErrorZ;
sign_invoice(invoice_preimage: Uint8Array): Result_RecoverableSignatureNoneZ;
+ get_inbound_payment_key_material(): Uint8Array;
}
}
@@
-134,4
+142,9
@@
import * as bindings from '../bindings' // TODO: figure out location
return ret_hu_conv;
}
return ret_hu_conv;
}
+ public Uint8Array get_inbound_payment_key_material() {
+ Uint8Array ret = bindings.KeysInterface_get_inbound_payment_key_material(this.ptr);
+ return ret;
+ }
+
}
}