mirror of
https://github.com/status-im/bip39.git
synced 2025-01-21 01:49:17 +00:00
Expose Japanese wordlist for use
This commit is contained in:
parent
99e8cfcdbe
commit
54cb2370fd
4
index.js
4
index.js
@ -5,6 +5,7 @@ var randomBytes = require('randombytes')
|
||||
var unorm = require('unorm')
|
||||
|
||||
var DEFAULT_WORDLIST = require('./wordlists/en.json')
|
||||
var JAPANESE_WORDLIST = require('./wordlists/ja.json')
|
||||
|
||||
function mnemonicToSeed(mnemonic, password) {
|
||||
var mnemonicBuffer = new Buffer(mnemonic, 'utf8')
|
||||
@ -124,6 +125,7 @@ module.exports = {
|
||||
generateMnemonic: generateMnemonic,
|
||||
validateMnemonic: validateMnemonic,
|
||||
wordlists: {
|
||||
EN: DEFAULT_WORDLIST
|
||||
EN: DEFAULT_WORDLIST,
|
||||
JA: JAPANESE_WORDLIST
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user