mirror of
https://github.com/status-im/bip39.git
synced 2025-01-09 20:25:59 +00:00
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 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 crypto = require('crypto')
|
||||||
|
|
||||||
|
var includeFolder = require('include-folder')
|
||||||
|
var path = require('path')
|
||||||
|
var wordlists = includeFolder(path.join(__dirname, 'wordlists'))
|
||||||
|
|
||||||
function BIP39(language) {
|
function BIP39(language) {
|
||||||
language = language || 'en'
|
language = language || 'en'
|
||||||
this.wordlist = JSON.parse(Wordlists[language])
|
this.wordlist = JSON.parse(wordlists[language])
|
||||||
}
|
}
|
||||||
|
|
||||||
BIP39.prototype.mnemonicToSeed = function(mnemonic, password) {
|
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 assert = require('assert')
|
||||||
|
var wordlist = require('../wordlists/en.json')
|
||||||
|
var vectors = require('./vectors.json').english
|
||||||
|
|
||||||
|
var BIP39 = require('../index.js')
|
||||||
var bip39 = new BIP39()
|
var bip39 = new BIP39()
|
||||||
|
|
||||||
describe('constructor', function(){
|
describe('constructor', function(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user