util

package
v1.0.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DELIMITER = "."

Variables

This section is empty.

Functions

func ComputeSHA256

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

ComputeSHA256 returns SHA2-256 on data

func ConcatenateBytes

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

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

func CreateUtcTimestamp

func CreateUtcTimestamp() *timestamp.Timestamp

CreateUtcTimestamp returns a google/protobuf/Timestamp in UTC

func GenerateIDfromTxSHAHash

func GenerateIDfromTxSHAHash(payload []byte) string

GenerateIDfromTxSHAHash generates SHA256 hash using Tx payload

Types

This section is empty.

Jump to

Keyboard shortcuts

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