validate_peer_id

Function validate_peer_id 

Source
pub fn validate_peer_id(peer_id: &str) -> Result<(), String>
Expand description

Validate peer ID format and return Result.

Returns Ok(()) if peer ID is valid, Err with description otherwise.