cat_gateway::utils::ed25519

Function verifying_key_from_vec

source
pub(crate) fn verifying_key_from_vec(
    bytes: &[u8],
) -> Result<VerifyingKey, Error>
Expand description

Convert a Vector of bytes into an ED25519 verifying key.

ยงErrors

  • The vector is not exactly 32 bytes
  • the bytes do not encode a valid key