fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/common/util Index | Files

package util

import "github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/common/util"

Index

Package Files

utils.go

func ComputeSHA256 Uses

func ComputeSHA256(data []byte) (hash []byte)

ComputeSHA256 returns SHA2-256 on data

func ComputeSHA3256 Uses

func ComputeSHA3256(data []byte) (hash []byte)

ComputeSHA3256 returns SHA3-256 on data

func ConcatenateBytes Uses

func ConcatenateBytes(data ...[]byte) []byte

ConcatenateBytes is useful for combining multiple arrays of bytes, especially for signatures or digests over multiple fields

func CreateUtcTimestamp Uses

func CreateUtcTimestamp() *timestamp.Timestamp

CreateUtcTimestamp returns a google/protobuf/Timestamp in UTC

func GenerateBytesUUID Uses

func GenerateBytesUUID() []byte

GenerateBytesUUID returns a UUID based on RFC 4122 returning the generated bytes

func GenerateUUID Uses

func GenerateUUID() string

GenerateUUID returns a UUID based on RFC 4122

Package util imports 7 packages (graph) and is imported by 6 packages. Updated 2019-09-03. Refresh now. Tools for package owners.