pub fn parse_sui_address(s: &str) -> Result<SuiAddress>
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, sui, sui_system, deepbook.

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.