Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

is_valid_eddsa_signature

Verifies an Ed25519 signature according to RFC 8032.

Security

This implementation follows RFC 8032 Section 5.1.7 by explicitly rejecting small-order points. Both the signature point R and public key A are tested to ensure 8P ≠ 𝒪, preventing key-compromise and signature-malleability attacks that could arise from small-order components.

Parameters

  • signature: The signature with hints for point decompression and MSM
  • Py_twisted: Compressed form of Public Key y-coordinate (converted to integer from little endian bytes)

Returns

  • true if the signature is valid
  • false if the signature is invalid or contains small-order points

Fully qualified path: garaga::signatures::eddsa_25519::is_valid_eddsa_signature

pub fn is_valid_eddsa_signature(signature: EdDSASignatureWithHint, Py_twisted: u256) -> bool