/jsbtc

JavaScript Bitcoin library

Primary LanguageJavaScript

JavaScript Bitcoin library

travis build codecov coverage version

Crypto secp256k1 + wasm. Implemented: bip32, bip39, bip44, bip49, bip84, bip141. NIST random generation tests on the fly for entropy. Shamir's secret sharing for mnemonic.

Build:

npm install jsbtc.js
npm run build:wasm:prebuild
npm run build:wasm
npm run build
npm run build:web

Use in browser:

<script src="jsbtc.web.min.js"></script>
<script> ...
// inside async function 
var jsbtc = await jsbtc.asyncInit();
... </script>

Examples

https://github.com/bitaps-com/jsbtc/blob/master/test/jsbtc.test.js