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.
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
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.