package
0.0.0-20190918032558-02f1fe41ded6
Repository: https://github.com/tangerine-network/tangerine-consensus.git
Documentation: pkg.go.dev

# Functions

CopyBytes copies byte slice.
GenerateRandomBytes generates bytes randomly.
NewCustomLogger creates a new custom logger.
NewEvent creates a new event instance.
NewRandomHash returns a random Hash-like value.
NewSortedHashes converts a slice of hashes to a sorted one.

# Constants

HashLength is the length of a hash in DEXON.

# Structs

CustomLogger logs everything.
Event implements the Observer pattern.
NullLogger logs nothing.
SimpleLogger logs everything.

# Interfaces

Logger define the way to receive logs from Consensus instance.

# Type aliases

ByTime implements sort.Interface for time.Time.
Hash is the basic hash type in DEXON.
Hashes is for sorting hashes.
SortedHashes is a slice of hashes sorted in ascending order.