dynamodb-hfc-kvs

1.0.3 • Public • Published

DynamoDB HFC KeyValueStore

This node module provides KeyValueStore implementation backed by DynamoDB for Hyperledger Fabric Client SDK. This allows the nodejs clients of hyperledger to store the ECerts in DynamoDB.

Installation

$ npm install --save dynamodb-hfc-kvs

Code Example

const DynamoDBKeyValueStore = require('dynamodb-hfc-kvs');

// Default
const DKVS = new DynamoDBKeyValueStore({tablename: 'ECertTable'});

// Use Amazon DynamoDB Accelerator(DAX)
const DKVS = new DynamoDBKeyValueStore({tablename: 'ECertTable', daxEndpoint: 'https://DAXHostName:PortNumber'});

// Use DynamoDB Local
const DKVS = new DynamoDBKeyValueStore({tablename: 'ECertTable', localEndpoint: 'http://DynamoDBLocalHostName:PortNumber', region: 'us-east-1'});

Package Sidebar

Install

npm i dynamodb-hfc-kvs

Weekly Downloads

0

Version

1.0.3

License

Apache-2.0

Unpacked Size

15.1 kB

Total Files

4

Last publish

Collaborators

  • nakao