{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.1.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Functions\n\n```go\nfunc MakeChaincodeStore(stub shim.ChaincodeStubInterface) util.Store\n```\nMakeChaincodeStore returns a store for storing keys in the state\n\n## Types\n\n```go\ntype SimpleChaincode struct {\n}\n```\nSimpleChaincode example simple Chaincode implementation\n\n```go\nfunc (t *SimpleChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit does nothing in the UTXO chaincode\n\n```go\nfunc (t *SimpleChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke callback representing the invocation of a chaincode\n\n```go\ntype Store struct {\n\t// contains filtered or unexported fields\n}\n```\nStore struct uses a chaincode stub for state access\n\n```go\nfunc (s *Store) DelState(key util.Key) error\n```\nDelState deletes the transaction for the given key\n\n```go\nfunc (s *Store) GetState(key util.Key) (*util.TX_TXOUT, bool, error)\n```\nGetState returns the transaction for a given key\n\n```go\nfunc (s *Store) GetTran(key string) ([]byte, bool, error)\n```\nGetTran returns a transaction for the given hash\n\n```go\nfunc (s *Store) PutState(key util.Key, value *util.TX_TXOUT) error\n```\nPutState stores the given transaction and key\n\n```go\nfunc (s *Store) PutTran(key string, value []byte) error\n```\nPutTran adds a transaction to the state with the hash as a key\n\n","path":"github.com/eric-erki/https-hyperledger.org/examples/chaincode/go/utxo","name":"main","synopsis":"","isRedistributable":true}
