package
0.0.0-20191031084037-5104f13225ed
Repository: https://github.com/coschain/gobft.git
Documentation: pkg.go.dev

# Functions

Canonical returns UTC time with no monotonic component.
No description provided by the author
Fingerprint returns the first 6 bytes of a byte slice.
Returns true if it has zero length.
Go lacks a simple and safe way to see if something is a typed nil.
New Error with formatted message.
New Error with specified data.
NewWeightedTime with time and weight.
Now returns the current time in UTC with no monotonic component.
Indicates a failure of consensus.
A panic here means something has gone horribly wrong, in the form of data corruption or failure of the operating system.
For those times when we're not sure if we should panic XXX DEPRECATED.
A panic resulting from a sanity check means there is a programmer error and some guarantee is not satisfied.
WeightedMedian computes weighted median time for a given array of WeightedTime and the total voting power.

# Constants

No description provided by the author

# Structs

FmtError is the data type for NewError() (e.g.
WeightedTime for computing a median.

# Interfaces

Usage with arbitrary error data: ```go // Error construction type MyError struct{} var err1 error = NewErrorWithData(MyError{}, "my message") ..