Documentation ¶
Index ¶
- func ComputeCryptoHash(data []byte) (hash []byte)
- func CreateUtcTimestamp() *gp.Timestamp
- func FindMissingElements(all []string, some []string) (delta []string)
- func GenerateBytesUUID() []byte
- func GenerateHashFromSignature(path string, ctor string, args []string) []byte
- func GenerateIDWithAlg(customIDgenAlg string, encodedPayload string) (string, error)
- func GenerateIntUUID() *big.Int
- func GenerateUUID() string
- func GenerateUUIDfromTxSHAHash(txData []byte) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeCryptoHash ¶
ComputeCryptoHash should be used in openchain code so that we can change the actual algo used for crypto-hash at one place
func CreateUtcTimestamp ¶
CreateUtcTimestamp returns a google/protobuf/Timestamp in UTC
func FindMissingElements ¶
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
func GenerateBytesUUID ¶
func GenerateBytesUUID() []byte
GenerateBytesUUID returns a UUID based on RFC 4122 returning the generated bytes
func GenerateHashFromSignature ¶
GenerateHashFromSignature returns a hash of the combined parameters
func GenerateIDWithAlg ¶
GenerateIDWithAlg generates an ID using a custom algorithm
func GenerateIntUUID ¶
GenerateIntUUID returns a UUID based on RFC 4122 returning a big.Int
func GenerateUUIDfromTxSHAHash ¶
GenerateUUIDfromTxSHAHash generates SHA256 hash using Tx payload, and uses its first 128 bits as a UUID
Types ¶
This section is empty.