Thinktecture Hyperledger Fabric Chaincode .NET Adapter
With this package you are able to build chaincode (aka "Smart Contracts") for Hyperledger Fabric using .NET Core.
The following instructions are meant for developers of the Chaincode.NET package.
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 folder contains the code for the NuGet package.
In order to build the source folder, please follow the steps:
- Open a terminal within the
Chaincode.NETfolder and run
dotnet restoreto restore all the packages
- Make sure, you have Golang and the proto files for Hyperledger Fabric installed:
go get github.com/hyperledger/fabric/protos
srcfolder. It will generate the C# classes for Hyperledger Fabric's Protofiles.
- Open the Project with JetBrains Rider (preferred) or Visual Studio
- Build Chaincode.NET