Both signature schemes follow a similar pattern with a Cairo struct containing the signature data and a hint for efficient verification. Garaga provide tooling in Python/Rust/Javascript to generate the full expected Cairo struct given signature information.
Both are working with all in Garaga, using the corresponding curve identifier.
Simply pass your signature information to the class/function to obtain the calldata that you can deserialize inside Cairo into the ECDSASignatureWithHint struct. This is the input needed for the is_valid_ecdsa_signature function. Do not forget to use the correct curve identifier (see ). All three implementations (Python/Rust/JavaScript) are strictly equivalent and take an ECDSA signature data and return the serialized Cairo array as a list of integers
Simply pass your signature information to the class or function and obtain the calldata that you can deserialize inside Cairo into the SchnorrSignatureWithHint struct. This is the input needed for the is_valid_schnorr_signature function. Do not forget to use the correct curve identifier (see ). All three implementations (Python, Rust, JavaScript) are strictly equivalent and take Schnorr signature data, returning the serialized Cairo array as a list of integers.