pub fn parse_num<T: FromStr>(s: &str) -> Result<T, Error>
Parse a string as a u32, for timelocks or thresholds