util

package
v0.0.0-...-1d5e6b2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2016 License: Apache-2.0 Imports: 7 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeCryptoHash

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

ComputeCryptoHash should be used in openchain code so that we can change the actual algo used for crypto-hash at one place

func CreateUtcTimestamp

func CreateUtcTimestamp() *gp.Timestamp

CreateUtcTimestamp returns a google/protobuf/Timestamp in UTC

func GenerateBytesUUID

func GenerateBytesUUID() []byte

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

func GenerateHashFromSignature

func GenerateHashFromSignature(path string, ctor string, args []string) []byte

GenerateHashFromSignature returns a hash of the combined parameters

func GenerateIntUUID

func GenerateIntUUID() *big.Int

GenerateIntUUID returns a UUID based on RFC 4122 returning a big.Int

func GenerateUUID

func GenerateUUID() string

GenerateUUID returns a UUID based on RFC 4122

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL