UNPKG

@bitgo-forks/bitcoinjs-lib

Version:

Client-side Bitcoin JavaScript library

43 lines (42 loc) 1.7 kB
/// <reference types="node" /> export declare const typeforce: any; export declare function isPoint(p: Buffer | number | undefined | null): boolean; export declare function UInt31(value: number): boolean; export declare function BIP32Path(value: string): boolean; export declare namespace BIP32Path { var toJSON: () => string; } export declare function Signer(obj: any): boolean; export declare function Satoshi(value: number | bigint): boolean; export declare const ECPoint: any; export declare const Network: any; export interface XOnlyPointAddTweakResult { parity: 1 | 0; xOnlyPubkey: Uint8Array; } export interface TinySecp256k1Interface { isXOnlyPoint(p: Uint8Array): boolean; xOnlyPointAddTweak(p: Uint8Array, tweak: Uint8Array): XOnlyPointAddTweakResult | null; pointFromScalar(sk: Uint8Array, compressed?: boolean): Uint8Array | null; pointMultiply(a: Uint8Array, b: Uint8Array): Uint8Array | null; pointAdd(a: Uint8Array, b: Uint8Array): Uint8Array | null; privateAdd(d: Uint8Array, tweak: Uint8Array): Uint8Array | null; privateNegate(d: Uint8Array): Uint8Array; } export declare const Buffer256bit: any; export declare const Hash160bit: any; export declare const Hash256bit: any; export declare const Number: any; export declare const Array: any; export declare const Boolean: any; export declare const String: any; export declare const Buffer: any; export declare const Hex: any; export declare const maybe: any; export declare const tuple: any; export declare const UInt8: any; export declare const UInt32: any; export declare const Function: any; export declare const BufferN: any; export declare const Null: any; export declare const oneOf: any;