Function diem_types::network_address::parse_handshake

source ·
pub fn parse_handshake(protos: &[Protocol]) -> Option<(u8, &[Protocol])>
Expand description

parse the &[Protocol] into the "/ln-handshake/<version>" prefix and unparsed &[Protocol] suffix.