Hyperledger Chaincode Best Practices

Smart contract or chaincode developers should adhere to strict development guidelines and rules.

With Turing complete languages like GoLang becoming the defacto standard for chaincode development and high interest from developers to get into this exciting space.

I am writing down some of the Don'ts and best practices to consider while developing your chaincode.

Use simple and clear statements to write the flow logic of the contracts

Read After Write

func addToAccount(stub shim.ChaincodeStubInterface, account *string, amount int){
balance,_ := stub.GetState(*account)
stub.PutState(*account, balance + amount)

Continue reading "Hyperledger Chaincode Best Practices"