-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e81f28b
commit 99c9c6c
Showing
4 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"assert_autofinder_success": true, | ||
"files": [ | ||
"modules/passkey/contracts/SafeWebAuthnSignerProxy.sol", | ||
"modules/passkey/contracts/SafeWebAuthnSignerSingleton.sol", | ||
"certora/harnesses/Utilities.sol", | ||
"modules/passkey/contracts/libraries/P256.sol" | ||
], | ||
"link": [ | ||
"SafeWebAuthnSignerProxy:_VERIFIERS=P256", | ||
"SafeWebAuthnSignerProxy:_SINGLETON=SafeWebAuthnSignerSingleton" | ||
], | ||
"packages":[ | ||
"@safe-global=node_modules/@safe-global", | ||
"@account-abstraction=node_modules/@account-abstraction" | ||
], | ||
"solc": "solc8.23", | ||
"rule_sanity": "basic", | ||
"solc_via_ir": false, | ||
"optimistic_loop": true, | ||
"loop_iter": "6", | ||
"optimistic_hashing": true, | ||
"prover_version": "jtoman/CERT-6221", | ||
"server": "production", | ||
"verify": "SafeWebAuthnSignerProxy:certora/specs/GetConfigurationSpec.spec" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using Utilities as utilities; | ||
using SafeWebAuthnSignerProxy as proxy; | ||
|
||
methods { | ||
function _._ external => DISPATCH [ SafeWebAuthnSignerProxy._, SafeWebAuthnSignerSingleton._ ] default HAVOC_ALL; | ||
} | ||
|
||
/* | ||
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ | ||
│ getConfiguration Function (Integrity) │ | ||
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ | ||
*/ | ||
|
||
rule configGetConfiguration { | ||
env e; | ||
|
||
uint256 xBefore = currentContract._X; | ||
uint256 yBefore = currentContract._Y; | ||
P256.Verifiers verifiersBefore = currentContract._VERIFIERS; | ||
|
||
uint256 xAfter; | ||
uint256 yAfter; | ||
P256.Verifiers verifiersAfter; | ||
|
||
xAfter, yAfter, verifiersAfter = utilities.getConfiguration(e, proxy); | ||
|
||
|
||
assert xBefore == xAfter && | ||
yBefore == yAfter && | ||
verifiersBefore == verifiersAfter; | ||
satisfy true; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters