libp2p
    Preparing search index...

    Interface IdentifyResult

    Data returned from a successful identify response

    interface IdentifyResult {
        agentVersion?: string;
        connection: Connection;
        listenAddrs: Multiaddr[];
        observedAddr?: Multiaddr;
        peerId: PeerId;
        protocols: string[];
        protocolVersion?: string;
        publicKey?: Uint8Array<ArrayBufferLike>;
        signedPeerRecord?: SignedPeerRecord;
    }
    Index

    Properties

    agentVersion?: string

    The remote agent version

    connection: Connection

    The connection that the identify protocol ran over

    listenAddrs: Multiaddr[]

    The unsigned addresses they are listening on. Note - any multiaddrs present in the signed peer record should be preferred to the value here.

    observedAddr?: Multiaddr

    If set this is the address that the remote peer saw the identify request originate from

    peerId: PeerId

    The remote Peer's PeerId

    protocols: string[]

    The protocols the remote peer supports

    protocolVersion?: string

    The remote protocol version

    publicKey?: Uint8Array<ArrayBufferLike>

    The public key part of the remote PeerId - this is only useful for older RSA-based PeerIds, the more modern Ed25519 and secp256k1 types have the public key embedded in them

    signedPeerRecord?: SignedPeerRecord

    If sent by the remote peer this is the deserialized signed peer record