- Result_ChannelKeysDecodeErrorZ ret = arg.read_chan_signer(reader);
- result: number = ret != null ? ret.ptr : 0;
+ Result_SignDecodeErrorZ ret = arg.read_chan_signer(reader);
+ result: number = ret == null ? 0 : ret.clone_ptr();
+ return result;
+ },
+
+ sign_invoice (invoice_preimage: Uint8Array): number {
+ Result_RecoverableSignatureNoneZ ret = arg.sign_invoice(invoice_preimage);
+ 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);