pub fn encode_ecdsa_signature(pk: &PublicKey, sig: &Signature) -> Vec<Felt>Expand description
Encodes the provided public key and signature into a vector of field elements in the format
expected by stdlib::crypto::dsa::ecdsa::secp256k1::verify_ecdsa_k256_keccak procedure.
- The compressed secp256k1 public key encoded as 9 packed-u32 felts (33 bytes total).
- The ECDSA signature encoded as 17 packed-u32 felts (66 bytes total).
The two chunks are concatenated as [PK[9] || SIG[17]] so they can be streamed straight to
the advice provider before invoking secp256k1::verify_ecdsa_k256_keccak.