You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Kukks 341c95e39b wip 5 years ago
src initial commit 5 years ago
test initial commit 5 years ago
ts-src wip 5 years ago
types initial commit 5 years ago
.gitignore initial commit 5 years ago
.prettierignore initial commit 5 years ago
.prettierrc.json initial commit 5 years ago
.travis.yml initial commit 5 years ago
CONTRIBUTING.md initial commit 5 years ago
LICENSE initial commit 5 years ago
README.md initial commit 5 years ago
package-lock.json initial commit 5 years ago
package.json add bip174 as dep 5 years ago
tsconfig.json initial commit 5 years ago
tslint.json initial commit 5 years ago

README.md

bip32

Build Status

NPM

code style: prettier

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

Example

TypeScript

import * as bip32 from 'bip32';
import { BIP32Interface } from 'bip32';
let node: BIP32Interface = bip32.fromBase58('xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi');

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

NodeJS

let bip32 = require('bip32')
let node = bip32.fromBase58('xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHi')

let 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.