Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

is_valid_eth_signature

This function assumes the s component of the signature to be positive for efficiency reasons. It is not recommended to use it other than for validating account signatures over transaction hashes since otherwise it’s not protected against signature malleability. See https://github.com/OpenZeppelin/cairo-contracts/issues/889.

Fully qualified path: openzeppelin_account::utils::signature::is_valid_eth_signature

pub fn is_valid_eth_signature(
    msg_hash: felt252, public_key: Secp256k1Point, signature: Span<felt252>,
) -> bool