Versions in this module Expand all Collapse all v0 v0.2.1 Sep 24, 2025 v0.2.0 Jan 8, 2025 Changes in this version + var ErrInvalidConfig = fmt.Errorf("invalid network configuration") + type Config struct + Peer string + Port int + type Node interface + Close func() error + Connect func(ctx context.Context, addr multiaddr.Multiaddr) error + Host func() host.Host + Peers func() []peer.ID + func NewNode(ctx context.Context, cfg Config) (Node, error)