-1
var Mnemonic = require('bitcore-mnemonic');
var entropy  = "11111111111111111111111111111111";

bitcore-mnemonic 命令是:

mnemonic = Mnemonic._entropy2mnemonic(new Buffer(entropy, 'hex'), Mnemonic.Words.FRENCH);

https://bitcore.io/api/mnemonic/

但如果语言来自我的数据库:

var language = "FRENCH";

如何为 Mnemonic.words 指定语言?就像是:

Mnemonic.Words.language
4

1 回答 1

0

试试这个: Mnemonic.Words[语言]

于 2016-05-01T04:11:10.167 回答