pub fn decode_version(b58: &str, expected: u8) -> Result<Vec<u8>, DecodeError>
Decode a base58check string and verify the version byte.
Returns an error if decoding fails or the version byte does not match expected.
expected