Skip to content

zhigui-projects/fabric-connector

Repository files navigation

Hyperledger Fabric Connector

Prerequisites

  • Go 1.14+ installation or later

Getting started

Download fabric images

./scripts/bootstrap.sh -s -b

Start the fabric network

./scripts/network.sh up

Clean the fabric network

./scripts/network.sh down

Running the test suite

go test -test.run TestFabSdkProvider_CreateChannel
go test -test.run TestFabSdkProvider_JoinChannel
go test -test.run TestFabSdkProvider_InstallCC
go test -test.run TestFabSdkProvider_InstantiateCC
go test -test.run TestFabSdkProvider_InvokeCC
go test -test.run TestFabSdkProvider_QueryCC

Testing on Terminal command line

go build -o fabric-connector run/main.go
./fabric-connector chaincode invoke -C mychannel -n mycc -c '{"Args":["move","a","b","10","test1"]}'
./fabric-connector chaincode query -C mychannel -n mycc -c '{"Args":["query","a"]}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published