我正在使用这个BIP32 实现来派生密钥。如何导出 Base64 格式的派生公钥?
var node = bip32js.bip32.fromBase58('<some private key>');
var child = node.derivePath('m/0/0');
var publicKey = child.publicKey(); // This gets the public key for the child
console.log(btoa(publicKey)) // This gives an error since the returned public key is not a string
喵喵时光机
相关分类