12 lines
312 B
Text
Executable file
12 lines
312 B
Text
Executable file
const fs = require('fs')
|
|
const bip39 = require('bip39')
|
|
|
|
const options = require('../lib/options')
|
|
|
|
const seed = fs.readFileSync(options.seedPath, 'utf8').trim()
|
|
|
|
const words = bip39.entropyToMnemonic(seed).split(' ')
|
|
|
|
for (let i = 0; i < words.length; i += 6) {
|
|
console.log(words.slice(i, i + 6).join(' '))
|
|
}
|