secp256k1-node
This module provides native bindings to bitcoin-core/secp256k1. In browser elliptic will be used as fallback.
Works on node version 14.0.0 or greater, because use N-API.
Installation
from npm
npm install secp256k1
from git
git clone git@github.com:cryptocoinjs/secp256k1-node.git
cd secp256k1-node
git submodule update --init
npm installWindows
The easiest way to build the package on windows is to install windows-build-tools.
Or install the following software:
Git: https://git-scm.com/download/win
nvm: https://github.com/coreybutler/nvm-windows
Python 2.7: https://www.python.org/downloads/release/python-2712/
Visual C++ Build Tools: http://landinghub.visualstudio.com/visual-cpp-build-tools (Custom Install, and select both Windows 8.1 and Windows 10 SDKs)
And run commands:
Based on:
https://github.com/nodejs/node-gyp/issues/629#issuecomment-153196245
https://github.com/nodejs/node-gyp/issues/972
Usage
API Reference (v4.x) (current version)
Private Key generation, Public Key creation, signature creation, signature verification
* .verify return false for high signatures
Get X point of ECDH
LICENSE
This library is free and open-source software released under the MIT license.
Last updated