vault-hfc-kvstore

0.0.2 • Public • Published

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);
    

Dependencies (3)

Dev Dependencies (3)

Package Sidebar

Install

npm i vault-hfc-kvstore

Weekly Downloads

1

Version

0.0.2

License

Apache-2.0

Last publish

Collaborators

  • predix-guardians