Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cdk-hyperledger-fabric-network

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdk-hyperledger-fabric-network

CDK construct to deploy a production-ready Hyperledger Fabric network running on Amazon Managed Blockchain

  • 0.0.0
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Hyperledger Fabric on Amazon Managed Blockchain

This repository contains an L2 CDK construct to deploy a Hyperledger Fabric network running on Amazon Managed Blockchain. It currently builds out a member and its nodes, but the following enhanced functionality is planned for future releases:

  • Support for other languages (e.g. Python)
  • Enable CA, node, and chaincode logging
  • Enroll users, storing their credentials in Secrets Manager
  • Create channels on nodes
  • Instantiate chaincode on nodes
  • Set up a VPC and associated endpoint for accessing the network

Installation

The construct can be installed in a CDK project with the following:

npm install --save cdk-hyperledger-fabric-network

Note that this construct requires AWS CDK v2.

Usage

A minimally complete deployment is shown below. By default, a standard network will be created running Hyperledger Fabric 1.4 with a single bc.t3.small node.

import * as cdk from 'aws-cdk-lib';
import * as constructs from 'constructs';
import * as hyperledger from 'cdk-hyperledger-fabric-network';

class MyStack extends cdk.Stack {
  constructor(scope: constructs.Construct, id: string, props?: cdk.StackProps) {
    super(scope, id, props);
    new hyperledger.HyperledgerFabricNetwork(this, 'MyNetwork', {
      networkName: 'MyNetwork',
      memberName: 'MyMember',
    });
  });
}

The following is a more complex instantiation illustrating some of the options available.

new hyperledger.HyperledgerFabricNetwork(this, 'MyNetwork', {
  networkName: 'MyNetwork',
  networkDescription: 'This is my Hyperledger Fabric network',
  memberName: 'MyMember',
  networkDescription: 'This is my Hyperledger Fabric member',
  frameworkVersion: hyperledger.FrameworkVersion.VERSION_1_2,
  proposalDurationInHours: 48,
  thresholdPercentage: 75,
  nodes: [
    {
      availabilityZone: 'us-east-1a',
      instanceType: hyperledger.InstanceType.STANDARD5_LARGE,
    },
    {
      availabilityZone: 'us-east-1b',
      instanceType: hyperledger.InstanceType.STANDARD5_LARGE,
    },
  ],
});

See the API Documentation for details on all available input and output parameters.

References

Contributing

Pull requests are welcomed. Please review the Contributing Guidelines and the Code of Conduct.

Security

See CONTRIBUTING for more information.

Authors

License

This project is licensed under the MIT-0 License. See the LICENSE file for details.

Keywords

FAQs

Package last updated on 04 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc