助记符
生成助记词
const mnemonic = generateMnemonic()
通过助记词生成钱包
const wallet_EVM = genBIP44WalletFromMnemonic(BLOCKCHAIN.EVM, mnemonic)
const wallet_TRON = genBIP44WalletFromMnemonic(BLOCKCHAIN.TRON, mnemonic)
通过助记词获取钱包
const accountId = 82707355
const indexId = 91770953
const wallet_EVM = getBIP44WalletFromMnemonic(BLOCKCHAIN.EVM, mnemonic, accountId, indexId)
const wallet_TRON = getBIP44WalletFromMnemonic(BLOCKCHAIN.TRON, mnemonic, accountId, indexId)
熵
产生熵
const entropy = generateEntropy()
通过熵生成钱包
const wallet_EVM = genBIP44WalletFromEntropy(BLOCKCHAIN.EVM, entropy)
const wallet_TRON = genBIP44WalletFromEntropy(BLOCKCHAIN.TRON, entropy)
通过熵获取钱包
const accountId = 82707355
const indexId = 91770953
const wallet_EVM_entropy = getBIP44WalletFromEntropy(BLOCKCHAIN.EVM, entropy, accountId, indexId)
const wallet_TRON_entropy = getBIP44WalletFromEntropy(BLOCKCHAIN.TRON, entropy, accountId, indexId)
转换器
熵到助记符
const mnemonic = entropyToMnemonic(entropy)
熵的助记符
const entropy = mnemonicToEntropy(mnemonic)
原文来自:TokenPocket社区