Versions in this module Expand all Collapse all v1 v1.9.6 Oct 3, 2019 Changes in this version + func ParseURL(url string) (domain string, pubkey *ecdsa.PublicKey, err error) + type Client struct + func NewClient(cfg Config, urls ...string) (*Client, error) + func (c *Client) AddTree(url string) error + func (c *Client) RandomNode(ctx context.Context) *enode.Node + func (c *Client) SyncTree(url string) (*Tree, error) + type Config struct + CacheLimit int + Logger log.Logger + RecheckInterval time.Duration + Resolver Resolver + Timeout time.Duration + ValidSchemes enr.IdentityScheme + type Resolver interface + LookupTXT func(ctx context.Context, domain string) ([]string, error) + type Tree struct + func MakeTree(seq uint, nodes []*enode.Node, links []string) (*Tree, error) + func (t *Tree) Links() []string + func (t *Tree) Nodes() []*enode.Node + func (t *Tree) Seq() uint + func (t *Tree) SetSignature(pubkey *ecdsa.PublicKey, signature string) error + func (t *Tree) Sign(key *ecdsa.PrivateKey, domain string) (url string, err error) + func (t *Tree) Signature() string + func (t *Tree) ToTXT(domain string) map[string]string