Documentation ¶ Index ¶ func NewHost(self *p2p.Peer, key libp2p_crypto.PrivKey) (p2p.Host, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewHost ¶ func NewHost(self *p2p.Peer, key libp2p_crypto.PrivKey) (p2p.Host, error) NewHost starts the host for p2p for hostv2, it generates multiaddress, keypair and add PeerID to peer, add priKey to host TODO (leo) The peerstore has to be persisted on disk. Types ¶ This section is empty. Source Files ¶ View all Source files p2pimpl.go Click to show internal directories. Click to hide internal directories.