UNPKG

@bitcoinerlab/secp256k1

Version:

A library for performing elliptic curve operations on the secp256k1 curve. It is designed to integrate into the BitcoinJS & BitcoinerLAB ecosystems and uses the audited noble-secp256k1 library. It is compatible with environments that do not support WASM,

20 lines (16 loc) 462 B
import test from "tape"; import * as secp256k1 from "../dist/index.js"; import test_ecdsa from "./ecdsa.js"; import test_points from "./points.js"; import test_privates from "./privates.js"; import test_schnorr from "./schnorr.js"; // Closing browser if launched through `browser-run`. test.onFinish(() => { if (process.browser) { window.close(); } }); test_schnorr(secp256k1); test_ecdsa(secp256k1); test_points(secp256k1); test_privates(secp256k1);