The PeerRecord is used for distributing peer routing records across the network. It contains the peer's reachable listen addresses.

Constructors

Properties

codec: Uint8Array = PeerRecord.CODEC
domain: string = PeerRecord.DOMAIN
marshaled?: Uint8Array
multiaddrs: Multiaddr[]
peerId: PeerId
seqNumber: bigint
CODEC: Uint8Array = ENVELOPE_PAYLOAD_TYPE_PEER_RECORD
DOMAIN: string = ENVELOPE_DOMAIN_PEER_RECORD

Methods

  • Returns true if this record equals the other

    Parameters

    • other: unknown

    Returns boolean