UNPKG

lightningdevkit

Version:
30 lines (29 loc) 1.18 kB
import { Secp256k1Error } from '../enums/Secp256k1Error.mjs'; import { CommonBase } from './CommonBase.mjs'; export declare class Result_PublicKeySecp256k1ErrorZ extends CommonBase { protected constructor(_dummy: null, ptr: bigint); /** * Creates a new CResult_PublicKeySecp256k1ErrorZ in the success state. */ static constructor_ok(o: Uint8Array): Result_PublicKeySecp256k1ErrorZ; /** * Creates a new CResult_PublicKeySecp256k1ErrorZ in the error state. */ static constructor_err(e: Secp256k1Error): Result_PublicKeySecp256k1ErrorZ; /** * Checks if the given object is currently in the success state */ is_ok(): boolean; clone_ptr(): bigint; /** * Creates a new CResult_PublicKeySecp256k1ErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ clone(): Result_PublicKeySecp256k1ErrorZ; } export declare class Result_PublicKeySecp256k1ErrorZ_OK extends Result_PublicKeySecp256k1ErrorZ { res: Uint8Array; } export declare class Result_PublicKeySecp256k1ErrorZ_Err extends Result_PublicKeySecp256k1ErrorZ { err: Secp256k1Error; }