Skip to content

Libraries with general helper functions that are often needed and used in the development of Hyperledger Fabric Chaincode in Go. By using these packages you can keep underlying Chaincode boilerplate code out of your contracts and focus on your business logic.

Notifications You must be signed in to change notification settings

peikiuar/fabric-chaincode-go-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fabric-chaincode-go-helpers

Lint Code Base Test Code Base

Introduction

Libraries with general helper functions that are often needed and used in the development of Hyperledger Fabric Chaincode in Go. By using these packages you can focus on your smart contract's business logic and forget about underlying Chaincode boilerplate code.

How to use

Since this is a private repository, we need two extra steps to use these packages in other projects.

The first step is telling Go that the repo it needs to get is private:

go env -w GOPRIVATE=github.com/peikiuar/fabric-chaincode-go-helpers

And since Go with Go modules uses git to get the imported packages in a project, the second step is to make sure that our local git configurations have our credentials to access this repository. This can be set with the following command:

git config \
  --global \
  url."https://${user}:${personal_access_token}@github.com".insteadOf \
  "https://github.com"

After that the this module or packages can be imported normally in any project that uses Go modules. For example, to use the state package:

import "github.com/peikiuar/fabric-chaincode-go-helpers/state"

About

Libraries with general helper functions that are often needed and used in the development of Hyperledger Fabric Chaincode in Go. By using these packages you can keep underlying Chaincode boilerplate code out of your contracts and focus on your business logic.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages