Versions in this module Expand all Collapse all v1 v1.10.1 Jul 4, 2021 v1.9.10 Feb 4, 2020 Changes in this version + const IDv4 + const SizeLimit + var ErrInvalidSig = errors.New("invalid signature on node record") + func IsNotFound(err error) bool + type Entry interface + ENRKey func() string + func WithEntry(k string, v interface{}) Entry + type ID string + func (v ID) ENRKey() string + type IP net.IP + func (v *IP) DecodeRLP(s *rlp.Stream) error + func (v IP) ENRKey() string + func (v IP) EncodeRLP(w io.Writer) error + type IPv4 net.IP + func (v *IPv4) DecodeRLP(s *rlp.Stream) error + func (v IPv4) ENRKey() string + func (v IPv4) EncodeRLP(w io.Writer) error + type IPv6 net.IP + func (v *IPv6) DecodeRLP(s *rlp.Stream) error + func (v IPv6) ENRKey() string + func (v IPv6) EncodeRLP(w io.Writer) error + type IdentityScheme interface + NodeAddr func(r *Record) []byte + Verify func(r *Record, sig []byte) error + type KeyError struct + Err error + Key string + func (err *KeyError) Error() string + type Record struct + func (r *Record) AppendElements(list []interface{}) []interface{} + func (r *Record) DecodeRLP(s *rlp.Stream) error + func (r *Record) IdentityScheme() string + func (r *Record) Load(e Entry) error + func (r *Record) Seq() uint64 + func (r *Record) Set(e Entry) + func (r *Record) SetSeq(s uint64) + func (r *Record) SetSig(s IdentityScheme, sig []byte) error + func (r *Record) Signature() []byte + func (r *Record) VerifySignature(s IdentityScheme) error + func (r Record) EncodeRLP(w io.Writer) error + type SchemeMap map[string]IdentityScheme + func (m SchemeMap) NodeAddr(r *Record) []byte + func (m SchemeMap) Verify(r *Record, sig []byte) error + type TCP uint16 + func (v TCP) ENRKey() string + type TCP6 uint16 + func (v TCP6) ENRKey() string + type UDP uint16 + func (v UDP) ENRKey() string + type UDP6 uint16 + func (v UDP6) ENRKey() string