假设我正在创建一个密钥对 rahul,
我可以通过
const rahul = new BigchainDB.Ed25519Keypair()```
console.log('public key \n',rahul.publicKey);
console.log('private key \n',rahul.privateKey);```
apart from this, where can find the key pair of rahul in storage ?
假设我正在创建一个密钥对 rahul,
我可以通过
const rahul = new BigchainDB.Ed25519Keypair()```
console.log('public key \n',rahul.publicKey);
console.log('private key \n',rahul.privateKey);```
apart from this, where can find the key pair of rahul in storage ?
不,公钥被添加到交易中,而私钥用于签署由用户或实体发起的交易。您有责任管理/存储它们,(注意:私钥不应该由您处理,因为它意味着私有并由用户自己处理)
您可以阅读有关密钥管理的文章和书籍https://www.researchgate.net/publication/335325343_Key_management_for_blockchain_technology
https://www.sciencedirect.com/science/article/pii/S2405959519301894