{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v0.6.1-preview","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package util\n\n## Functions\n\n```go\nfunc ArrayToChaincodeArgs(args []string) [][]byte\n```\n\n```go\nfunc ComputeCryptoHash(data []byte) (hash []byte)\n```\nComputeCryptoHash should be used in openchain code so that we can change the actual algo used for crypto-hash at one place\n\n```go\nfunc CreateUtcTimestamp() *timestamp.Timestamp\n```\nCreateUtcTimestamp returns a google/protobuf/Timestamp in UTC\n\n```go\nfunc FindMissingElements(all []string, some []string) (delta []string)\n```\nFindMissingElements 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\n\n```go\nfunc GenerateBytesUUID() []byte\n```\nGenerateBytesUUID returns a UUID based on RFC 4122 returning the generated bytes\n\n```go\nfunc GenerateHashFromSignature(path string, args []byte) []byte\n```\nGenerateHashFromSignature returns a hash of the combined parameters\n\n```go\nfunc GenerateIDWithAlg(customIDgenAlg string, payload []byte) (string, error)\n```\nGenerateIDWithAlg generates an ID using a custom algorithm\n\n```go\nfunc GenerateIDfromTxSHAHash(payload []byte) string\n```\nGenerateIDfromTxSHAHash generates SHA256 hash using Tx payload\n\n```go\nfunc GenerateIntUUID() *big.Int\n```\nGenerateIntUUID returns a UUID based on RFC 4122 returning a big.Int\n\n```go\nfunc GenerateUUID() string\n```\nGenerateUUID returns a UUID based on RFC 4122\n\n```go\nfunc ToChaincodeArgs(args ...string) [][]byte\n```\n\n","path":"github.com/eric-erki/https-hyperledger.org/core/util","name":"util","synopsis":"","isRedistributable":true}
