package
1.12.3-warp-verify6
Repository: https://github.com/ava-labs/avalanchego.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package codectest provides a test suite for testing functionality related to IDs.

# Functions

BuildTestNodeID is an utility to build NodeID from bytes in UTs It must not be used in production code.
EqualSubset takes in two indices and two ids and returns if the ids are equal from bit start to bit end (non-inclusive).
FirstDifferenceSubset takes in two indices and two ids and returns the index of the first difference between the ids inside bit start to bit end (non-inclusive).
FromString is the inverse of ID.String().
FromStringOrPanic is the same as FromString, but will panic on error.
GenerateTestID returns a new ID that should only be used for testing.
GenerateTestNodeID returns a new ID that should only be used for testing.
GenerateTestShortID returns a new ID that should only be used for testing.
GetRelevantAliases returns the aliases with the redundant identity alias removed (each id is aliased to at least itself).
No description provided by the author
No description provided by the author
NodeIDFromString is the inverse of NodeID.String().
ShortFromPrefixedString returns a ShortID assuming the cb58 format is prefixed.
ShortFromString is the inverse of ShortID.String().
ShortIDsToStrings converts an array of shortIDs to an array of their string representations.
ToID attempt to convert a byte slice into an id.
ToNodeID attempt to convert a byte slice into a node id.
ToShortID attempt to convert a byte slice into an id.

# Constants

BitsPerByte is the number of bits per byte.
No description provided by the author
No description provided by the author
No description provided by the author
NumBits is the number of bits this patricia tree manages.
No description provided by the author

# Variables

Empty is a useful all zero value.
No description provided by the author
No description provided by the author
ShortEmpty is a useful all zero value.

# Structs

RequestID is a unique identifier for an in-flight request pending a response.

# Interfaces

Aliaser allows one to give an ID aliases and lookup the aliases given to an ID.
AliaserReader allows one to lookup the aliases given to an ID.
AliaserWriter allows one to give an ID aliases.

# Type aliases

ID wraps a 32 byte hash used as an identifier.
No description provided by the author
ShortID wraps a 20 byte hash as an identifier.