Skip to main content

decode_check

Function decode_check 

Source
pub fn decode_check(data: &str) -> Result<Vec<u8>, Error>
Expand description

Decodes a base58check-encoded string into a byte vector verifying the checksum.

ยงErrors

  • The input contains an invalid base58 character.
  • The decoded data is less than 4 bytes (too short for checksum verification).
  • The checksum does not match the expected value.