如何在比特币核心钱包中设置HDSeed

时间:2021-03-04 13:36:43

标签: bitcoin cryptocurrency bitcoin-testnet bitcoinjs-lib

我已经在节点中实现了 bip32 和 bip39,我正在从助记词中获取种子,并且我想在从 rpc(0.21.0) createWallet 生成的钱包中设置这个种子,以便我可以从派生中获得相同的地址集BIP32 中的子键和 getNewAddress rpc, 当我尝试 setHDSeed rpc 将 BIP32 种子放入参数时,它给出了私钥无效错误。

下面是错误

{ RpcError: 无效的私钥 1|服务器|在 getRpcResult (/home/ubuntu/bitcoin-api/node_modules/bitcoin-core/dist/src/parser.js:39:11) 1|服务器|在 Parser.rpc (/home/ubuntu/bitcoin-api/node_modules/bitcoin-core/dist/src/parser.js:82:14) 1|服务器|在 Client.command (/home/ubuntu/bitcoin-api/node_modules/bitcoin-core/dist/src/index.js:169:24) 1|服务器|在 process._tickCallback (internal/process/next_tick.js:68:7) 消息:'无效的私钥',代码:-5,名称:'RpcError' }

请帮助我,非常感谢任何建议。

0 个答案:

没有答案
相关问题