Versions in this module Expand all Collapse all v1 v1.0.1 May 4, 2023 Changes in this version + const HashLength + var Zero = Hash + var ZeroEvent = Event + func FakeEpoch() idx.Epoch + func FakeHash(seed ...int64) (h common.Hash) + func FakePeer(seed ...int64) idx.ValidatorID + func GetEventName(e Event) string + func GetNodeName(n idx.ValidatorID) string + func SetEventName(e Event, name string) + func SetNodeName(n idx.ValidatorID, name string) + type Event Hash + func BytesToEvent(b []byte) Event + func FakeEvent() (h Event) + func HexToEventHash(s string) Event + func (h *Event) Big() *big.Int + func (h *Event) IsZero() bool + func (h *Event) SetBytes(raw []byte) + func (h Event) Bytes() []byte + func (h Event) Epoch() idx.Epoch + func (h Event) FullID() string + func (h Event) Hex() string + func (h Event) Lamport() idx.Lamport + func (h Event) ShortID(precision int) string + func (h Event) String() string + type Events []Event + func FakeEvents(n int) Events + func NewEvents(h ...Event) Events + func (hh *Events) Add(hash ...Event) + func (hh Events) Copy() Events + func (hh Events) Set() EventsSet + func (hh Events) String() string + type EventsSet map[Event]struct + func NewEventsSet(h ...Event) EventsSet + func (hh EventsSet) Add(hash ...Event) + func (hh EventsSet) Contains(hash Event) bool + func (hh EventsSet) Copy() EventsSet + func (hh EventsSet) Erase(hash ...Event) + func (hh EventsSet) Slice() Events + func (hh EventsSet) String() string + type EventsStack []Event + func (s *EventsStack) Pop() *Event + func (s *EventsStack) Push(v Event) + func (s *EventsStack) PushAll(vv Events) + type Hash [HashLength]byte + func BigToHash(b *big.Int) Hash + func BytesToHash(b []byte) Hash + func FromBytes(b []byte) Hash + func HexToHash(s string) Hash + func Of(data ...[]byte) (hash Hash) + func (h *Hash) SetBytes(b []byte) + func (h *Hash) UnmarshalJSON(input []byte) error + func (h *Hash) UnmarshalText(input []byte) error + func (h Hash) Big() *big.Int + func (h Hash) Bytes() []byte + func (h Hash) Format(s fmt.State, c rune) + func (h Hash) Hex() string + func (h Hash) MarshalText() ([]byte, error) + func (h Hash) String() string + func (h Hash) TerminalString() string + type Hashes []Hash + func NewHashes(h ...Hash) Hashes + func (hh *Hashes) Add(hash ...Hash) + func (hh Hashes) Copy() Hashes + func (hh Hashes) Set() HashesSet + func (hh Hashes) String() string + type HashesSet map[Hash]struct + func NewHashesSet(h ...Hash) HashesSet + func (hh HashesSet) Add(hash ...Hash) + func (hh HashesSet) Contains(hash Hash) bool + func (hh HashesSet) Copy() HashesSet + func (hh HashesSet) Erase(hash ...Hash) + func (hh HashesSet) Slice() Hashes + func (hh HashesSet) String() string + type OrderedEvents []Event + func (hh OrderedEvents) ByEpochAndLamport() + func (hh OrderedEvents) Len() int + func (hh OrderedEvents) Less(i, j int) bool + func (hh OrderedEvents) String() string + func (hh OrderedEvents) Swap(i, j int)