Skip to content

Commit

Permalink
Skip keyless validation on simulation (#13441)
Browse files Browse the repository at this point in the history
  • Loading branch information
heliuchuan committed Jun 4, 2024
1 parent 8112578 commit 9439406
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions aptos-move/aptos-vm/src/aptos_vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1636,12 +1636,14 @@ impl AptosVM {
return Err(invalid_signature!("Groth16 VK has not been set on-chain"));
}

keyless_validation::validate_authenticators(
self.pvk.as_ref().unwrap(),
&keyless_authenticators,
self.features(),
resolver,
)?;
if !self.is_simulation {
keyless_validation::validate_authenticators(
self.pvk.as_ref().unwrap(),
&keyless_authenticators,
self.features(),
resolver,
)?;
}
}

// The prologue MUST be run AFTER any validation. Otherwise you may run prologue and hit
Expand Down

0 comments on commit 9439406

Please sign in to comment.