This node module provides KeyValueStore implementation backed by hashicorp vault for Hyperledger Fabric Client SDK. This allows the nodejs clients of hyperledger to store the ECerts in vault instead of on file system thereby making it more secure and cloud friendly.
- Install the node module
npm install vault-hfc-kvstore
- Import the module
var vaultkv = require('vault-hfc-kvstore');
- Create an instance of vault KeyValueStore
var vault = vaultkv.newVaultKeyValStore(vaultUrl, vaultToken);
- Set the keyValueStore on chain instance
var chain = hfc.newChain(chainName); // Other initializations for chain chain.setKeyValStore(vault);