@btc-vision/transaction
Version:
OPNet transaction library allows you to create and sign transactions for the OPNet network.
17 lines (16 loc) • 494 B
TypeScript
export declare class Secp256k1PointDeriver {
private maxTries;
constructor(maxTries?: number);
findOrDeriveValidPoint(xBytes: Uint8Array, failOnInvalidX?: boolean, maxTries?: number): {
x: bigint;
y1: bigint;
y2: bigint;
};
getCanonicalY(y: bigint, y2: bigint): bigint;
getHybridPublicKey(x: bigint, y: bigint): Uint8Array;
private isValidX;
private modPow;
private sqrtModP;
private bytesToBigInt;
private bigIntTo32Bytes;
}