UNPKG

@scrypt-inc/bitcoinjs-lib

Version:
18 lines (17 loc) 787 B
import { TinySecp256k1Interface } from './types.js'; /** * Initializes the ECC library with the provided instance. * If `eccLib` is `undefined`, the library will be cleared. * If `eccLib` is a new instance, it will be verified before setting it as the active library. * * @param eccLib The instance of the ECC library to initialize. */ export declare function initEccLib(eccLib: TinySecp256k1Interface | undefined): void; /** * Retrieves the ECC Library instance. * Throws an error if the ECC Library is not provided. * You must call initEccLib() with a valid TinySecp256k1Interface instance before calling this function. * @returns The ECC Library instance. * @throws Error if the ECC Library is not provided. */ export declare function getEccLib(): TinySecp256k1Interface;