Versions in this module Expand all Collapse all v1 v1.8.21 Jan 21, 2019 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 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) 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 UDP uint16 + func (v UDP) ENRKey() string