Skip to main content

parse_public_key_hex

Function parse_public_key_hex 

Source
pub fn parse_public_key_hex(public_key_hex: &str) -> Result<PublicKey, Error>
Expand description

Parses a hex-encoded Ed25519 public key (32 bytes) into a PublicKey.

ยงErrors

Returns Error::Token if the hex is invalid or the key length is not 32 bytes.