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