Skip to content

predix/vault-hfc-kvstore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Key value store for hfc sdk using hashicorp vault

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published