Data stored in the peer store about peers

interface Peer {
    addresses: Address[];
    id: PeerId;
    metadata: Map<string, Uint8Array>;
    peerRecordEnvelope?: Uint8Array;
    protocols: string[];
    tags: Map<string, Tag>;
}

Properties

addresses: Address[]

Peer's addresses containing a list of multiaddrs and a isCertified field indicating if the address was loaded from a signed peer record or not

id: PeerId

Peer's peer-id instance

metadata: Map<string, Uint8Array>

Peer's metadata map

peerRecordEnvelope?: Uint8Array

The last peer record envelope received

protocols: string[]

Peer's supported protocols

tags: Map<string, Tag>

Tags a peer has