Versions in this module Expand all Collapse all v0 v0.1.0 Jun 22, 2023 Changes in this version + type Address string + type PeerID [32]byte + func PeerIDFromPrivateKey(sk ed25519.PrivateKey) (PeerID, error) + func PeerIDFromPublicKey(pk ed25519.PublicKey) (PeerID, error) + func (p *PeerID) UnmarshalBinary(data []byte) error + func (p *PeerID) UnmarshalText(text []byte) error + func (p PeerID) MarshalBinary() (data []byte, err error) + func (p PeerID) MarshalText() (text []byte, err error) + func (p PeerID) String() string + type PeerInfo struct + Addrs []Address + ID PeerID