Documentation
¶
Index ¶
- func ArrayToChaincodeArgs(args []string) [][]byte
- func CanonicalizeFilePath(filepath string) string
- func CanonicalizePath(path string) string
- func ComputeCryptoHash(data []byte) (hash []byte)
- func CreateUtcTimestamp() *timestamp.Timestamp
- func CryptoHashByAlg(alg string) hash.Hash
- func DecodeToUint64(bytes []byte) uint64
- func DefaultCryptoHash() hash.Hash
- func EncodeStatehash(statehash []byte) string
- func EncodeUint64(number uint64) []byte
- func FindMissingElements(all []string, some []string) (delta []string)
- func GenerateBytesUUID() []byte
- func GenerateHashFromSignature(path string, args []byte) []byte
- func GenerateIDWithAlg(customIDgenAlg string, payload []byte) (string, error)
- func GenerateIDfromDigest(d []byte) string
- func GenerateIDfromTxSHA256Hash(payload []byte) string
- func GenerateIDfromTxSHAHash(payload []byte) stringdeprecated
- func GenerateIntUUID() *big.Int
- func GenerateUUID() string
- func Min(v1, v2 uint64) uint64
- func MkdirIfNotExist(targetDir string) bool
- func ToChaincodeArgs(args ...string) [][]byte
- type ConWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayToChaincodeArgs ¶
func CanonicalizeFilePath ¶
func CanonicalizePath ¶
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 (DEPRECATED, moved to protos)
func CryptoHashByAlg ¶
func DecodeToUint64 ¶
func DefaultCryptoHash ¶
func EncodeStatehash ¶
func EncodeUint64 ¶
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 GenerateIDfromDigest ¶
GenerateIDfromTxSHAHash generates SHA256 hash using Tx payload
func GenerateIDfromTxSHAHash
deprecated
func GenerateIntUUID ¶
GenerateIntUUID returns a UUID based on RFC 4122 returning a big.Int