{"id":64953,"library":"polkadot-node-network-protocol","title":"Polkadot Node Network Protocol","description":"Primitives types for the Polkadot node-side network protocol.","status":"active","version":"29.0.0","language":"rust","source_language":null,"source_url":"https://github.com/paritytech/polkadot-sdk","tags":["polkadot","network","protocol","peer-id"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\npolkadot-node-network-protocol = \"29.0.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add polkadot-node-network-protocol","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"PeerId","correct":"use polkadot_node_network_protocol::PeerId;"}],"quickstart":{"code":"use polkadot_node_network_protocol::PeerId;\n\nfn main() {\n    let peer = PeerId::random();\n    println!(\"{}\", peer);\n}","lang":"rust","description":"Generate a random PeerId."},"warnings":[],"env_vars":null,"search_vec":"'id':20 'network':3,13,16 'node':2,11 'node-sid':10 'peer':19 'peer-id':18 'polkadot':1,9,15 'primit':5 'protocol':4,14,17 'side':12 'type':6","created_at":"2026-06-17T17:02:32.626395+00:00","updated_at":"2026-06-17T17:02:32.626395+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://paritytech.github.io/polkadot-sdk/","github":"https://github.com/paritytech/polkadot-sdk","docs":"https://docs.rs/polkadot-node-network-protocol/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}