AddressBook containing a map of peerIdStr to Address.
KeyBook containing a map of peerIdStr to their PeerId with public keys.
MetadataBook containing a map of peerIdStr to their metadata Map.
ProtoBook containing a map of peerIdStr to supported protocols.
Delete the information of the given peer in every book.
true if found and removed
Start the PeerStore.
Stop the PeerStore.
PeerStore#peer Emitted when a new peer is added.
PeerStore#change:protocols Emitted when a known peer supports a different set of protocols.
PeerStore#change:multiaddrs Emitted when a known peer has a different set of multiaddrs.
PeerStore#change:pubkey Emitted emitted when a peer's public key is known.
PeerStore#change:metadata Emitted when the known metadata of a peer change.