Skip to main content

initEccLib

reddcoinjs-lib v7.0.1-rdd.1Docs


reddcoinjs-lib v7.0.1-rdd.1 / initEccLib

Function: initEccLib()

initEccLib(eccLib, opts?): void

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.

Parameters

eccLib: undefined | TinySecp256k1Interface

The instance of the ECC library to initialize.

opts?

Extra initialization options. Use {DANGER_DO_NOT_VERIFY_ECCLIB:true} if ecc verification should not be executed. Not recommended!

opts.DANGER_DO_NOT_VERIFY_ECCLIB?: boolean

Returns

void

Defined in

ts_src/ecc_lib.ts:14