aztec-packages icon indicating copy to clipboard operation
aztec-packages copied to clipboard

refactor: check vk hash when verifying proof

Open LeilaWang opened this issue 8 months ago • 0 comments

Move VerificationKey.check_hash() to right before we call std::verify_proof_with_type(), where we pass the vk and vk hash. Eventually the hash will be checked in std::verify_proof_with_type() and check_hash can be removed.

Clean up the codebase a bit to use the same names and structs and reduce duplicated code.

LeilaWang avatar May 15 '25 21:05 LeilaWang