Skip to content

Instantly share code, notes, and snippets.

@vitiko
Last active May 20, 2018 14:15
Show Gist options
  • Save vitiko/c3ebff842565348ef988850f6577cf39 to your computer and use it in GitHub Desktop.
Save vitiko/c3ebff842565348ef988850f6577cf39 to your computer and use it in GitHub Desktop.
Golang chaincode interface
type Chaincode interface {
// Init is called during Instantiate transaction
Init(stub ChaincodeStubInterface) pb.Response
// Invoke is called to update or query the ledger
Invoke(stub ChaincodeStubInterface) pb.Response
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment