X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FKeysInterface.ts;h=bfc1777fc4f770000b41cd16dc26904642e492c2;hb=1854b5cebef22ace9e9e4dd191f609818df9ce08;hp=46543e46aee58fa82a6aa638430ab057f6bbdfa6;hpb=5fd405f7a48aaeca779c45c88ec6b3d3d3dbf0e4;p=ldk-java diff --git a/ts/structs/KeysInterface.ts b/ts/structs/KeysInterface.ts index 46543e46..bfc1777f 100644 --- a/ts/structs/KeysInterface.ts +++ b/ts/structs/KeysInterface.ts @@ -74,6 +74,12 @@ import * as bindings from '../bindings' // TODO: figure out location 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; + }, + }; impl_holder.held = new KeysInterface (null, structImplementation); @@ -88,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_inbound_payment_key_material(): Uint8Array; } @@ -135,4 +142,9 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } + public Uint8Array get_inbound_payment_key_material() { + Uint8Array ret = bindings.KeysInterface_get_inbound_payment_key_material(this.ptr); + return ret; + } + }