package
1.4.7
Repository: https://github.com/hyperledger-labs/fabric.git
Documentation: pkg.go.dev

# Functions

ArrayToChaincodeArgs converts array of string args to array of []byte args.
ComputeSHA256 returns SHA2-256 on data.
ComputeSHA3256 returns SHA3-256 on data.
ConcatenateBytes is useful for combining multiple arrays of bytes, especially for signatures or digests over multiple fields.
CreateUtcTimestamp returns a google/protobuf/Timestamp in UTC.
No description provided by the author
FindMissingElements identifies the elements of the first slice that are not present in the second The second slice is expected to be a subset of the first slice.
`flatten` recursively retrieves every leaf node in a struct in depth-first fashion and aggregate the results into given string slice with format: "path.to.leaf = value" in the order of definition.
GenerateBytesUUID returns a UUID based on RFC 4122 returning the generated bytes.
GenerateHashFromSignature returns a hash of the combined parameters.
GenerateIDfromTxSHAHash generates SHA256 hash using Tx payload.
GenerateIDWithAlg generates an ID using a custom algorithm.
GenerateIntUUID returns a UUID based on RFC 4122 returning a big.Int.
GenerateUUID returns a UUID based on RFC 4122.
GetSysCCVersion returns the version of all system chaincodesThis needs to be revisited on policies around system chaincode"upgrades" from user and relationship with "fabric" upgrade.
GetTestChainID returns the CHAINID constant in use by orderer.
GetTestOrgID returns the ORGID constant in use by gossip join message.
ToChaincodeArgs converts string args to []byte args.

# Constants

No description provided by the author