Socket
Socket
Sign inDemoInstall

bip32

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bip32 - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

src/bip32.js

37

package.json
{
"name": "bip32",
"version": "1.0.2",
"version": "2.0.0",
"description": "A BIP32 compatible library",

@@ -11,3 +11,4 @@ "keywords": [

],
"main": "index.js",
"main": "./src/index.js",
"types": "./types/index.d.ts",
"engines": {

@@ -17,7 +18,14 @@ "node": ">=6.0.0"

"scripts": {
"coverage-report": "nyc report --reporter=lcov",
"coverage": "nyc --check-coverage --branches 90 --functions 90 npm run unit",
"standard": "standard",
"test": "npm run standard && npm run coverage",
"unit": "tape test/*.js"
"build": "tsc -p ./tsconfig.json",
"coverage-report": "npm run build && npm run nobuild:coverage-report",
"coverage": "npm run build && npm run nobuild:coverage",
"format": "npm run prettier -- --write",
"format:ci": "npm run prettier -- --check",
"lint": "tslint -p tsconfig.json -c tslint.json",
"nobuild:coverage-report": "nyc report --reporter=lcov",
"nobuild:coverage": "nyc --check-coverage --branches 90 --functions 90 npm run nobuild:unit",
"nobuild:unit": "tape test/*.js",
"prettier": "prettier 'ts-src/**/*.ts' --ignore-path ./.prettierignore",
"test": "npm run build && npm run format:ci && npm run lint && npm run nobuild:coverage",
"unit": "npm run build && npm run nobuild:unit"
},

@@ -28,3 +36,8 @@ "repository": {

},
"files": [
"src",
"types"
],
"dependencies": {
"@types/node": "10.12.18",
"bs58check": "^2.1.1",

@@ -38,8 +51,10 @@ "create-hash": "^1.2.0",

"devDependencies": {
"nyc": "^11.7.1",
"standard": "^11.0.1",
"tape": "^4.9.0"
"nyc": "^13.3.0",
"prettier": "1.16.4",
"tape": "^4.9.0",
"tslint": "5.13.1",
"typescript": "3.3.3333"
},
"author": "Daniel Cousens",
"license": "ISC",
"license": "MIT",
"bugs": {

@@ -46,0 +61,0 @@ "url": "https://github.com/bitcoinjs/bip32/issues"

@@ -6,8 +6,22 @@ # bip32

[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
A [BIP32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki) compatible library.
A [BIP32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki) compatible library written in TypeScript with transpiled JavaScript committed to git.
## Example
TypeScript
``` 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
``` javascript

@@ -21,2 +35,3 @@ let bip32 = require('bip32')

## LICENSE [ISC](LICENSE)
## LICENSE [MIT](LICENSE)
A derivation (and extraction for modularity) of the `HDWallet`/`HDNode` written and tested by [bitcoinjs-lib](https://github.com/bitcoinjs/bitcoinjs-lib) contributors since 2014.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc