fedimint-cli 0.10.0-rc.0

Fedimint client CLI interface
Documentation
1
2
3
4
5
6
7
use std::num::ParseIntError;

use fedimint_core::PeerId;

pub fn parse_peer_id(s: &str) -> Result<PeerId, ParseIntError> {
    Ok(PeerId::from(s.parse::<u16>()?))
}