decode_account_id

Function decode_account_id 

Source
pub fn decode_account_id(account_id: &str) -> Result<[u8; 20]>
Expand description

Decode a classic address (starting with r…) to its raw bytes

§Examples

use ripple_address_codec::decode_account_id;

assert_eq!(decode_account_id("rrrrrrrrrrrrrrrrrrrrrhoLvTp"), Ok([0; 20]));

§Errors

Returns DecodeError if account id string is invalid.