- }
- });
- return impl_holder.held;
- }
- public byte[] get_node_secret() {
- byte[] ret = bindings.KeysInterface_get_node_secret(this.ptr);
+ },
+
+ sign_invoice (invoice_preimage: Uint8Array): number {
+ Result_RecoverableSignatureNoneZ ret = arg.sign_invoice(invoice_preimage);
+ result: number = ret != null ? ret.ptr : 0;
+ return result;
+ },
+
+
+ };
+ impl_holder.held = new KeysInterface (null, structImplementation);
+ }
+ }
+
+ export interface KeysInterfaceInterface {
+ get_node_secret(): Uint8Array;
+ get_destination_script(): Uint8Array;
+ get_shutdown_pubkey(): Uint8Array;
+ get_channel_signer(inbound: boolean, channel_value_satoshis: number): Sign;
+ get_secure_random_bytes(): Uint8Array;
+ read_chan_signer(reader: Uint8Array): Result_SignDecodeErrorZ;
+ sign_invoice(invoice_preimage: Uint8Array): Result_RecoverableSignatureNoneZ;
+
+ }
+
+ class LDKKeysInterfaceHolder {
+ held: KeysInterface;
+ }
+ public Uint8Array get_node_secret() {
+ Uint8Array ret = bindings.KeysInterface_get_node_secret(this.ptr);