Versions in this module Expand all Collapse all v1 v1.4.1 Mar 1, 2023 Changes in this version + const BmtBranches + const Branches + const ChunkSize + const ChunkWithSpanSize + const EncryptedBranches + const ExtendedPO + const HashSize + const MaxBins + const MaxPO + const SectionSize + const SpanSize + var ErrInvalidChunk = errors.New("invalid chunk") + var NewHasher = sha3.NewLegacyKeccak256 + var ZeroAddress = NewAddress(nil) + func Distance(x, y []byte) (*big.Int, error) + func DistanceCmp(a, x, y []byte) (int, error) + func DistanceRaw(x, y []byte) ([]byte, error) + func ExtendedProximity(one, other []byte) (ret uint8) + func Proximity(one, other []byte) (ret uint8) + type Address struct + func MustParseHexAddress(s string) Address + func NewAddress(b []byte) Address + func ParseHexAddress(s string) (a Address, err error) + func (a *Address) UnmarshalJSON(b []byte) (err error) + func (a Address) ByteString() string + func (a Address) Bytes() []byte + func (a Address) Closer(x Address, y Address) (bool, error) + func (a Address) Equal(b Address) bool + func (a Address) IsZero() bool + func (a Address) MarshalJSON() ([]byte, error) + func (a Address) MemberOf(addrs []Address) bool + func (a Address) String() string + type AddressIterFunc func(address Address) error + type Chunk interface + Address func() Address + Data func() []byte + Equal func(Chunk) bool + TagID func() uint32 + WithTagID func(t uint32) Chunk + func NewChunk(addr Address, data []byte) Chunk