P2PStatus is the P2P status of a node.

interface ConsensusP2PStatus {
    addresses: NodeConsensusAddress[];
    peer_id: string;
    peers: string[];
    pub_key: Uint8Array;
}

Properties

Addresses is a list of configured P2P addresses used when registering the node.

peer_id: string

PeerID is the peer ID derived by hashing peer's public key.

peers: string[]

Peers is a list of node's peers.

pub_key: Uint8Array

PubKey is the public key used for consensus P2P communication.