Documentation ¶
Index ¶
- func GenerateBlockHash(previousHash, dataHash []byte, blockNumber uint64) string
- func IndexOfChaincode(array []fabricsetup.Chaincode, name string) int
- func ReturnCreatorOrgString(bytes []byte) string
- func ReturnCreatorString(bytes []byte) string
- func TypeCodeToInfo(typeCode int32) string
- type Readset
- type Writeset
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateBlockHash ¶
Generates block hash from previous hash, data hash and block number.
func IndexOfChaincode ¶
func IndexOfChaincode(array []fabricsetup.Chaincode, name string) int
func ReturnCreatorOrgString ¶
func ReturnCreatorString ¶
This function is borrowed from an opensource project: https://github.com/ale-aso/fabric-examples/blob/master/blockparser.go It returns the creator certificate for the specified transaction.
func TypeCodeToInfo ¶
Decodes the type of the transaction into string
Types ¶
Click to show internal directories.
Click to hide internal directories.