use standard

This commit is contained in:
Daniel Cousens 2016-10-06 00:02:34 +11:00
parent 981ab63ce9
commit 3d9d09d27a
3 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -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('')

View File

@ -29,6 +29,7 @@
"devDependencies": {
"browserify": "^9.0.0",
"mocha": "^2.2.0",
"mock-require": "^1.0.5"
"mock-require": "^1.0.5",
"standard": "*"
}
}