Package Exports
- bip32grs
- bip32grs/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bip32grs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
bip32grs
A BIP32 compatible library written in TypeScript with transpiled JavaScript committed to git.
Example
TypeScript
import BIP32Factory from 'bip32grs';
import * as ecc from 'tiny-secp256k1';
import { BIP32Interface } from 'bip32grs';
// You must wrap a tiny-secp256k1 compatible implementation
const bip32 = BIP32Factory(ecc);
const node: BIP32Interface = bip32.fromBase58('xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBsoWepH');
const child: BIP32Interface = node.derivePath('m/17/0');
// ...
NodeJS
const ecc = require('tiny-secp256k1')
const { BIP32Factory } = require('bip32grs')
// You must wrap a tiny-secp256k1 compatible implementation
const bip32 = BIP32Factory(ecc)
const node = bip32.fromBase58('xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBsoWepH')
const child = node.derivePath('m/17/0')
LICENSE MIT
A derivation (and extraction for modularity) of the HDWallet
/HDNode
written and tested by groestlcoinjs-lib contributors since 2014.