mirror of https://github.com/status-im/bip39.git
use standard
This commit is contained in:
parent
981ab63ce9
commit
3d9d09d27a
|
@ -1,8 +1,10 @@
|
|||
BIP39
|
||||
=====
|
||||
# BIP39
|
||||
|
||||
[![Build Status](https://travis-ci.org/bitcoinjs/bip39.png?branch=master)](https://travis-ci.org/bitcoinjs/bip39)
|
||||
[![Version](http://img.shields.io/npm/v/bip39.svg)](https://www.npmjs.org/package/bip39)
|
||||
[![NPM](https://img.shields.io/npm/v/bip39.svg)](https://www.npmjs.org/package/bip39)
|
||||
|
||||
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
|
||||
|
||||
|
||||
JavaScript implementation of [Bitcoin BIP39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki): Mnemonic code for generating deterministic keys
|
||||
|
||||
|
|
2
index.js
2
index.js
|
@ -55,7 +55,7 @@ function mnemonicToEntropy (mnemonic, wordlist) {
|
|||
var newChecksum = checksumBits(entropyBuffer)
|
||||
|
||||
// recreate properly chunked and padded bits to get the properly padded checksum
|
||||
var bits2 = (entropy + newChecksum).match(/(.{1,11})/g).map(function(index) {
|
||||
var bits2 = (entropy + newChecksum).match(/(.{1,11})/g).map(function (index) {
|
||||
return lpad(index, '0', 11)
|
||||
|
||||
}).join('')
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
"devDependencies": {
|
||||
"browserify": "^9.0.0",
|
||||
"mocha": "^2.2.0",
|
||||
"mock-require": "^1.0.5"
|
||||
"mock-require": "^1.0.5",
|
||||
"standard": "*"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue