# Functions
ContainsAddress reports whether a is present in addrs.
ContainsChunkWithAddress reports whether Chunk with Address a is present in chunks.
ContainsChunkWithAddress reports whether Chunk with data d is present in chunks.
Distance returns the distance between address x and address y as a (comparable) big integer using the distance metric defined in the swarm specification.
DistanceCmp compares x and y to a in terms of the distance metric defined in the swarm specification.
DistanceRaw returns the distance between address x and address y in big-endian binary format using the distance metric defined in the swarm specification.
No description provided by the author
FindStampWithBatchID returns the first occurrence of Stamp having the same batchID.
IndexOfAddress returns the index of the first occurrence of a in addrs, or -1 if not present.
IndexOfChunkWithAddress returns the index of the first occurrence of Chunk with Address a in chunks, or -1 if not present.
MustParseHexAddress returns an Address from a hex-encoded string representation, and panics if there is a parse error.
NewAddress constructs Address from a byte slice.
No description provided by the author
NewHasher returns new Keccak-256 hasher.
NewPrefixHasher returns new hasher which is Keccak-256 hasher with prefix value added as initial data.
ParseBitStrAddress parses overlay addresses in binary format (eg: 111101101) to it's corresponding overlay address.
ParseHexAddress returns an Address from a hex-encoded string representation.
Proximity returns the proximity order of the MSB distance between x and y
The distance metric MSB(x, y) of two equal length byte sequences x an y is the value of the binary integer cast of the x^y, ie., x and y bitwise xor-ed.
RandAddress generates a random address.
RandAddressAt generates a random address at proximity order prox relative to address.
RandAddresses generates slice with a random address.
RandBatchID generates a random BatchID.
RemoveAddress removes first occurrence of a in addrs, returning the modified slice.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TODO: use this size in related code.
TODO: use this size in related code.
# Variables
EmptyAddress is the address that is all zeroes.
No description provided by the author
ZeroAddress is the address that has no value.
# Structs
Address represents an address in Swarm metric space of Node and Chunk addresses.
No description provided by the author
# Type aliases
AddressIterFunc is a callback on every address that is found by the iterator.
ChunkType indicates different categories of chunks.