- Result_ChanKeySignerDecodeErrorZ 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();