Versions in this module Expand all Collapse all v0 v0.1.20 Jul 19, 2023 Changes in this version + const Len v0.1.19 Jul 6, 2023 Changes in this version + const AddrLen + const Magic + func Gen() codec.Codec + func Splice(s *splice.Splice, id nonce.ID, key *crypto.Pub, addrs []*netip.AddrPort, ...) + type Ad struct + Addresses []*netip.AddrPort + func New(id nonce.ID, key *crypto.Prv, addrs []*netip.AddrPort, expiry time.Time) (sv *Ad) + func (x *Ad) Decode(s *splice.Splice) (e error) + func (x *Ad) Encode(s *splice.Splice) (e error) + func (x *Ad) Len() int + func (x *Ad) Magic() string + func (x *Ad) Sign(prv *crypto.Prv) (e error) + func (x *Ad) Splice(s *splice.Splice) + func (x *Ad) SpliceNoSig(s *splice.Splice) + func (x *Ad) Unwrap() interface{} + func (x *Ad) Validate() (valid bool)