0.0.2 • Published 7 years ago

vault-hfc-kvstore v0.0.2

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
7 years ago

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

  1. Install the node module
    npm install vault-hfc-kvstore
  2. Import the module
    var vaultkv = require('vault-hfc-kvstore');
  3. Create an instance of vault KeyValueStore
    var vault = vaultkv.newVaultKeyValStore(vaultUrl, vaultToken);
  4. Set the keyValueStore on chain instance
    var chain = hfc.newChain(chainName);
    // Other initializations for chain
    chain.setKeyValStore(vault);