Skip to main content

encode_peer_profile

Function encode_peer_profile 

Source
pub fn encode_peer_profile(p: &PeerProfile) -> Vec<u8> 
Expand description

Serialize a PeerProfile for the handshake — a version byte (so a future layout is recognized, not mis-parsed) followed by the budget, epoch, and feature bits.