mirror of https://github.com/status-im/bip39.git
all: consistent import order
This commit is contained in:
parent
6488b6362e
commit
3552491505
9
index.js
9
index.js
|
@ -1,12 +1,13 @@
|
|||
var CryptoJS = require('crypto-js')
|
||||
var path = require('path')
|
||||
var includeFolder = require('include-folder')
|
||||
var Wordlists = includeFolder(path.join(__dirname, 'wordlists'))
|
||||
var crypto = require('crypto')
|
||||
|
||||
var includeFolder = require('include-folder')
|
||||
var path = require('path')
|
||||
var wordlists = includeFolder(path.join(__dirname, 'wordlists'))
|
||||
|
||||
function BIP39(language) {
|
||||
language = language || 'en'
|
||||
this.wordlist = JSON.parse(Wordlists[language])
|
||||
this.wordlist = JSON.parse(wordlists[language])
|
||||
}
|
||||
|
||||
BIP39.prototype.mnemonicToSeed = function(mnemonic, password) {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
var vectors = require('./vectors.json').english
|
||||
var BIP39 = require('../index.js')
|
||||
var wordlist = require('../wordlists/en.json')
|
||||
var assert = require('assert')
|
||||
var wordlist = require('../wordlists/en.json')
|
||||
var vectors = require('./vectors.json').english
|
||||
|
||||
var BIP39 = require('../index.js')
|
||||
var bip39 = new BIP39()
|
||||
|
||||
describe('constructor', function(){
|
||||
|
|
Loading…
Reference in New Issue