func (p *Peer) Addr() net.Addr {
	return p.addr
}
Addr returns the network addres of the node.
package node
import (
	"net"
)
type Peer struct {
	id   string
	addr net.Addr
}
func NewPeer(id string, addr net.Addr) *Peer {
	return &Peer{
		id:   id,
		addr: addr,
	}
}
func (p *Peer) ID() string {
	return p.id
}