Skip to content

Commit

Permalink
WebAuthnHarness to WebAuthnHarnessWithMunge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hristo-grigorov committed Sep 12, 2024
1 parent 0862df2 commit a1eab8a
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 16 deletions.
3 changes: 1 addition & 2 deletions certora/confs/ProxySimulator.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"modules/passkey/contracts/SafeWebAuthnSignerProxy.sol",
"modules/passkey/contracts/SafeWebAuthnSignerSingleton.sol",
"modules/passkey/contracts/libraries/P256.sol",
"modules/passkey/contracts/libraries/WebAuthn.sol",
"certora/harnesses/WebAuthnHarness.sol"
"certora/harnesses/WebAuthnHarnessWithMunge.sol"
],
"hashing_length_bound": "2048",
"link": [
Expand Down
3 changes: 1 addition & 2 deletions certora/confs/SafeWebAuthnSignerSingleton.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
"files": [
"modules/passkey/contracts/SafeWebAuthnSignerFactory.sol",
"modules/passkey/contracts/SafeWebAuthnSignerSingleton.sol",
"modules/passkey/contracts/libraries/WebAuthn.sol",
"modules/passkey/contracts/libraries/P256.sol",
"certora/harnesses/WebAuthnHarness.sol"
"certora/harnesses/WebAuthnHarnessWithMunge.sol"
],
"link": [
"SafeWebAuthnSignerFactory:SINGLETON=SafeWebAuthnSignerSingleton"
Expand Down
3 changes: 1 addition & 2 deletions certora/confs/SignerCreationCantOverride.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
"certora/harnesses/SafeWebAuthnSignerFactoryHarness.sol",
"modules/passkey/contracts/SafeWebAuthnSignerSingleton.sol",
"modules/passkey/contracts/SafeWebAuthnSignerProxy.sol",
"modules/passkey/contracts/libraries/WebAuthn.sol",
"modules/passkey/contracts/libraries/P256.sol",
"certora/harnesses/WebAuthnHarness.sol"
"certora/harnesses/WebAuthnHarnessWithMunge.sol"
],
"hashing_length_bound": "912",
"link": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
"files": [
"modules/passkey/contracts/SafeWebAuthnSignerFactory.sol",
"modules/passkey/contracts/SafeWebAuthnSignerSingleton.sol",
"modules/passkey/contracts/libraries/WebAuthn.sol",
"modules/passkey/contracts/libraries/P256.sol",
"certora/harnesses/WebAuthnHarness.sol"
"certora/harnesses/WebAuthnHarnessWithMunge.sol"
],
"loop_iter": "6",
"optimistic_hashing": true,
Expand Down
2 changes: 1 addition & 1 deletion certora/confs/ValidSignatureForSignerIntegrity.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"assert_autofinder_success": true,
"files": [
"certora/harnesses/SafeWebAuthnSignerFactoryHarness.sol",
"certora/harnesses/WebAuthnHarness.sol",
"certora/harnesses/WebAuthnHarnessWithMunge.sol",
"modules/passkey/contracts/SafeWebAuthnSignerSingleton.sol",
"modules/passkey/contracts/SafeWebAuthnSignerProxy.sol"
],
Expand Down
4 changes: 2 additions & 2 deletions certora/confs/WebAuthn.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"assert_autofinder_success": true,
"files": [
"certora/harnesses/WebAuthnHarness.sol"
"certora/harnesses/WebAuthnHarnessWithMunge.sol"
],
"loop_iter": "6",
"optimistic_hashing": true,
Expand All @@ -13,5 +13,5 @@
"process": "emv",
"rule_sanity": "basic",
"solc": "solc8.23",
"verify": "WebAuthnHarness:certora/specs/WebAuthn.spec"
"verify": "WebAuthnHarnessWithMunge:certora/specs/WebAuthn.spec"
}
2 changes: 1 addition & 1 deletion certora/specs/ProxySimulator.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using SafeWebAuthnSignerProxy as SafeWebAuthnSignerProxy;
using WebAuthnHarness as WebAuthnHarness;
using WebAuthnHarnessWithMunge as WebAuthnHarness;

methods {
function P256.verifySignatureAllowMalleability(P256.Verifiers a, bytes32 b, uint256 c, uint256 d, uint256 e, uint256 f) internal returns (bool) =>
Expand Down
2 changes: 1 addition & 1 deletion certora/specs/SafeWebAuthnSignerFactory.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using SafeWebAuthnSignerProxy as proxy;
using SafeWebAuthnSignerSingleton as singleton;
using WebAuthnHarness as WebAuthnHarness;
using WebAuthnHarnessWithMunge as WebAuthnHarness;


methods{
Expand Down
2 changes: 1 addition & 1 deletion certora/specs/SafeWebAuthnSignerSingleton.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using WebAuthnHarness as WebAuthnHarness;
using WebAuthnHarnessWithMunge as WebAuthnHarness;

methods {
function P256.verifySignatureAllowMalleability(P256.Verifiers a, bytes32 b, uint256 c, uint256 d, uint256 e, uint256 f) internal returns (bool) =>
Expand Down
4 changes: 2 additions & 2 deletions certora/specs/WebAuthn.spec
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ rule castSignatureDeterministicDecoding(){
CastSignature Length Check Validity (Proved) |
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
*/

/* note: the rule requires specific features still not available on a stable certora-cli
rule castSignatureLengthCheckValidity(){
env e;

Expand All @@ -213,7 +213,7 @@ rule castSignatureLengthCheckValidity(){

assert isValid <=> length_is_correct;
}

*/
/*
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
castSignature Reverting Conditions |
Expand Down

0 comments on commit a1eab8a

Please sign in to comment.