Search code examples
hyperledger-fabrichyperledger-fabric-ca

Retrieval of lost Hyperledger wallet user details


We use MongoDB as a wallet to store wallet identities, but we lost (deleted) data from MongoDB collection. Now we have to retrieve those identities. What functionality is available to retrieve those identities?

Network components:

  • Hyperledger Fabric version 2.3
  • Fabric-CA version: latest

Network configuration:

  • 3 organization setup with Couch DB as state database
  • 5 orderer setup with RAFT consensus

The Hyperledger code is running in a Kubernetes cluster with NFS server.

Your pointers will be greatly appreciated!


Solution

  • The user private keys contained in the wallet are, well... private. They don't exist anywhere else so unless you can recover the deleted MongoDB data, they are gone. You could re-enrol the lost user identities with the CA to issue new certificates for those users based on new private keys.