vault-hfc-kvstore
v0.0.2
Published
This module provides KeyValueStore implementation for hfc backed by hashicorp vault
Downloads
9
Maintainers
Readme
Vault HFC KeyValueStore
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.
How to use it
- 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);