*/
export class SignedRawInvoice extends CommonBase {
/* @internal */
- public constructor(_dummy: object, ptr: number) {
+ public constructor(_dummy: object, ptr: bigint) {
super(ptr, bindings.SignedRawInvoice_free);
}
* Two objects with NULL inner values will be considered "equal" here.
*/
public eq(b: SignedRawInvoice): boolean {
- const ret: boolean = bindings.SignedRawInvoice_eq(this.ptr, b == null ? 0 : CommonBase.get_ptr_of(b) & ~1);
+ const ret: boolean = bindings.SignedRawInvoice_eq(this.ptr, b == null ? 0n : CommonBase.get_ptr_of(b));
CommonBase.add_ref_from(this, b);
return ret;
}
- public clone_ptr(): number {
- const ret: number = bindings.SignedRawInvoice_clone_ptr(this.ptr);
+ public clone_ptr(): bigint {
+ const ret: bigint = bindings.SignedRawInvoice_clone_ptr(this.ptr);
return ret;
}
* Creates a copy of the SignedRawInvoice
*/
public clone(): SignedRawInvoice {
- const ret: number = bindings.SignedRawInvoice_clone(this.ptr);
+ const ret: bigint = bindings.SignedRawInvoice_clone(this.ptr);
const ret_hu_conv: SignedRawInvoice = new SignedRawInvoice(null, ret);
CommonBase.add_ref_from(ret_hu_conv, this);
return ret_hu_conv;
* 3. signature
*/
public into_parts(): ThreeTuple_RawInvoice_u832InvoiceSignatureZ {
- const ret: number = bindings.SignedRawInvoice_into_parts(this.ptr);
+ const ret: bigint = bindings.SignedRawInvoice_into_parts(this.ptr);
const ret_hu_conv: ThreeTuple_RawInvoice_u832InvoiceSignatureZ = new ThreeTuple_RawInvoice_u832InvoiceSignatureZ(null, ret);
CommonBase.add_ref_from(ret_hu_conv, this);
return ret_hu_conv;
* The `RawInvoice` which was signed.
*/
public raw_invoice(): RawInvoice {
- const ret: number = bindings.SignedRawInvoice_raw_invoice(this.ptr);
+ const ret: bigint = bindings.SignedRawInvoice_raw_invoice(this.ptr);
const ret_hu_conv: RawInvoice = new RawInvoice(null, ret);
CommonBase.add_ref_from(ret_hu_conv, this);
return ret_hu_conv;
* InvoiceSignature for the invoice.
*/
public signature(): InvoiceSignature {
- const ret: number = bindings.SignedRawInvoice_signature(this.ptr);
+ const ret: bigint = bindings.SignedRawInvoice_signature(this.ptr);
const ret_hu_conv: InvoiceSignature = new InvoiceSignature(null, ret);
CommonBase.add_ref_from(ret_hu_conv, this);
return ret_hu_conv;
* Recovers the public key used for signing the invoice from the recoverable signature.
*/
public recover_payee_pub_key(): Result_PayeePubKeyErrorZ {
- const ret: number = bindings.SignedRawInvoice_recover_payee_pub_key(this.ptr);
+ const ret: bigint = bindings.SignedRawInvoice_recover_payee_pub_key(this.ptr);
const ret_hu_conv: Result_PayeePubKeyErrorZ = Result_PayeePubKeyErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}
* Read a SignedRawInvoice object from a string
*/
public static constructor_from_str(s: string): Result_SignedRawInvoiceParseErrorZ {
- const ret: number = bindings.SignedRawInvoice_from_str(bindings.encodeString(s));
+ const ret: bigint = bindings.SignedRawInvoice_from_str(bindings.encodeString(s));
const ret_hu_conv: Result_SignedRawInvoiceParseErrorZ = Result_SignedRawInvoiceParseErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
}