4.0.0 • Published 2 years ago

bip32 v4.0.0

Weekly downloads
41,412
License
MIT
Repository
github
Last release
2 years ago

bip32

Github CI NPM code style: prettier

A BIP32 compatible library written in TypeScript with transpiled JavaScript committed to git.

Example

TypeScript

import BIP32Factory from 'bip32';
import * as ecc from 'tiny-secp256k1';
import { BIP32Interface } from 'bip32';
// You must wrap a tiny-secp256k1 compatible implementation
const bip32 = BIP32Factory(ecc);

const node: BIP32Interface = bip32.fromBase58('xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi');

const child: BIP32Interface = node.derivePath('m/0/0');
// ...

NodeJS

const ecc = require('tiny-secp256k1')
const { BIP32Factory } = require('bip32')
// You must wrap a tiny-secp256k1 compatible implementation
const bip32 = BIP32Factory(ecc)

const node = bip32.fromBase58('xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi')

const child = node.derivePath('m/0/0')

LICENSE MIT

A derivation (and extraction for modularity) of the HDWallet/HDNode written and tested by bitcoinjs-lib contributors since 2014.

@womasoft/wallet@blits-labs/filecoin-signing-tools@alebusse/account-lib@thorswap-lib/hdwallet-metamask@thorswap-lib/hdwallet-portis@thorswap-lib/multichain-core@thorswap-lib/xpub-scan@thorswap-lib/binance-chain-sdk@stacks/clialebusse@twetch/walletmy-rollup-project-just-for-testphoton-libzoobcwocode-wallet-btcwocode-wallet-qitmeerwocode-wallet-ubtestsigtestkratosjstestkuchainjscert-requestanatha-sdkbonfida-bot@radar/htlcbitsong-js-keysarcexslfb-clientdec.js.testbip47-jssolanaapi@diviproject/react-native-bip32@steakwallet/chains@owlmeans/regov-ssi-common@liteflow/api@rogerfelipe/digibyte-toolbox-jsliquidjs-lib-taprootyonggui@zondax/izari-filecoin-tools@tequ/xrplsecurepeerkey-bip@everything-registry/sub-chunk-1237myathhhh2023mint@thepowereco/hub@thepowereco/jssdkwallet-forge@peturparkur19/tron@phungdaihiep/react-native-bitcoinjs@phantomcores/crypto@phantomchain/crypto@photon-sdk/photon-lib@thepowereco/tssdk@thorswap-lib/hdwallet-native@thorwallet/cosmos-client@thorwallet/xchain-binance@sudophunk/hdwallet-native@sudophunk/furya@swipechain/crypto-transactions@swipechain/platform-sdk@swipechain/platform-sdk-btc@swipechain/platform-sdk-crypto@swipechain/crypto@synonymdev/react-native-lnurl@tabu/crypto@tatumio/shared-blockchain-btc-based@tatumio/shared-testing@tatumio/shared-testing-btc-based@tatumio/tatum-tron@tatumio/tatum-v1@tatumio/tron@tatumio/tron-wallet-provider@tatumio/utxo-wallet-provider@tatumio/tatum-bch@tatumio/tatum-btc@tatumio/scrypta@tatumio/sdk@tatumio/tatum-doge@tatumio/tatum-flow@tatumio/tatum-ltc@tatumio/tatum-qtum@tatumio/tatum-scrypta@tatumio/flow@tatumio/ltc@tatumio/doge@tatumio/bch@tatumio/btc@tatsujoestar/abstract-eth@tatsujoestar/abstract-utxo@tatsujoestar/account-lib@tatsujoestar/bitgo@tatsujoestar/sdk-api@tatsujoestar/sdk-coin-avaxp@tatsujoestar/sdk-coin-cspr@tatsujoestar/sdk-coin-xrp@tatsujoestar/sdk-core@tatsujoestar/utxo-lib@teleportdao/trezor-bitcoin@teleportdao/bitcoin@teleportdao/contracts-helper@teleportdao/ledger-bitcoin@tendermint/sig
4.0.0

2 years ago

3.1.0

2 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.6

4 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

1.0.4

5 years ago

2.0.2

5 years ago

1.0.3

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

9 years ago

1.0.0

9 years ago