Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

thinktecture/fabric-chaincode-netcore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thinktecture Hyperledger Fabric Chaincode .NET Adapter

With this package you are able to build chaincode (aka "Smart Contracts") for Hyperledger Fabric using .NET Core.

Usage

Development

The following instructions are meant for developers of the Chaincode.NET package.

Folder structure

fabric-ccenv-netcore

The fabric-ccenv-netcore folder contains an adoption of the original fabric-ccenv which additionally installs .NET Core to run the chaincode within a Docker environment.

src

The src folder contains the code for the NuGet package.

Building

Requirements

Build Steps

In order to build the source folder, please follow the steps:

  1. Open a terminal within the Chaincode.NET folder and run dotnet restore to restore all the packages
  2. Make sure, you have Golang and the proto files for Hyperledger Fabric installed: go get github.com/hyperledger/fabric/protos
  3. Run generate_protos.sh within the src folder. It will generate the C# classes for Hyperledger Fabric's Protofiles.
  4. Open the Project with JetBrains Rider (preferred) or Visual Studio
  5. Build Chaincode.NET

Testing

TODO

About

This repo allows using .NET Core to implement chaincode for Hyperledger Fabric

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages