Function iota_types::parse_iota_address

source ·
pub fn parse_iota_address(s: &str) -> Result<IotaAddress>
Expand description

Parses s as an address. Valid formats for addresses are:

  • A 256bit number, encoded in decimal, or hexadecimal with a leading “0x” prefix.
  • One of a number of pre-defined named addresses: std, iota, iota_system, stardust.

Parsing succeeds if and only if s matches one of these formats exactly, with no remaining suffix. This function is intended for use within the authority codebases.