solana-ed25519-secp256k1-sig-verification icon indicating copy to clipboard operation
solana-ed25519-secp256k1-sig-verification copied to clipboard

[SOLVED]: Why can't we verify through a CPI?

Open code-brewer opened this issue 1 year ago • 8 comments

  1. After read your check_ed25519_data function, I wonder, Isn't it suffice to do verify {msg, signature, pubkey} without IX data ? To my expecience on Ethereum, we can recover public key from signature, and compare it agaist pubkey

  2. Your Tx compose from 2 instructions, first one is sig verification IX. I think this first IX do verification also, then, why do we need to check sig again in second IX ?

code-brewer avatar Feb 20 '24 03:02 code-brewer