-
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.
Merge branch 'main' of github.com:safe-global/safe-modules into deps/…
…bump
- Loading branch information
Showing
41 changed files
with
2,836 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,66 @@ | ||
name: certora | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- modules/passkey/** | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- modules/passkey/** | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
verify: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
rule: | ||
[ | ||
'GetConfigurationConf', | ||
'GetSigner', | ||
'ProxySimulator', | ||
'SafeWebAuthnSignerFactory', | ||
'SafeWebAuthnSignerProxy', | ||
'SafeWebAuthnSignerSingleton', | ||
'SignerCreationCantOverride', | ||
'SingletonIsValidSignatureRevertingConditions', | ||
'ValidSignatureForSignerIntegrity', | ||
'VerifyEQtoIsValidSignatureForSigner', | ||
'WebAuthn', | ||
] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: Install python | ||
uses: actions/setup-python@v4 | ||
with: { python-version: 3.11 } | ||
|
||
- name: Install certora cli | ||
run: pip install -r modules/passkey/certora/requirements.txt | ||
|
||
- name: Install solc | ||
run: | | ||
wget https://github.com/ethereum/solidity/releases/download/v0.8.26/solc-static-linux | ||
chmod +x solc-static-linux | ||
sudo mv solc-static-linux /usr/local/bin/solc8.26 | ||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Verify rule ${{ matrix.rule }} | ||
working-directory: ./modules/passkey | ||
run: | | ||
echo "Certora key length" ${#CERTORAKEY} | ||
certoraRun certora/conf/${{ matrix.rule }}.conf --wait_for_results=all | ||
env: | ||
CERTORAKEY: ${{ secrets.CERTORA_KEY }} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
MNEMONIC= | ||
INFURA_KEY= | ||
ETHERSCAN_API_KEY= | ||
CUSTOM_NODE_URL= |
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
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,25 @@ | ||
{ | ||
"assert_autofinder_success": true, | ||
"files": [ | ||
"certora/munged/SafeWebAuthnSignerSingleton.sol", | ||
"certora/harnesses/GetConfigurationProxyHarness.sol", | ||
"contracts/SafeWebAuthnSignerFactory.sol" | ||
], | ||
"link": [ | ||
"GetConfigurationProxyHarness:_SINGLETON=SafeWebAuthnSignerSingleton" | ||
], | ||
"loop_iter": "6", | ||
"optimistic_hashing": true, | ||
"optimistic_loop": true, | ||
"packages": [ | ||
"@safe-global=node_modules/@safe-global", | ||
"@account-abstraction=node_modules/@account-abstraction" | ||
], | ||
"process": "emv", | ||
"prover_args": [ | ||
" -split false" | ||
], | ||
"rule_sanity": "basic", | ||
"solc": "solc8.26", | ||
"verify": "GetConfigurationProxyHarness: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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"assert_autofinder_success": true, | ||
"files": [ | ||
"certora/harnesses/GetSignerHarness.sol", | ||
"contracts/SafeWebAuthnSignerSingleton.sol", | ||
"contracts/SafeWebAuthnSignerProxy.sol" | ||
], | ||
"hashing_length_bound": "4694", | ||
"link": [ | ||
"GetSignerHarness:SINGLETON=SafeWebAuthnSignerSingleton" | ||
], | ||
"loop_iter": "144", | ||
"optimistic_hashing": true, | ||
"optimistic_loop": true, | ||
"packages": [ | ||
"@safe-global=node_modules/@safe-global", | ||
"@account-abstraction=node_modules/@account-abstraction" | ||
], | ||
"process": "emv", | ||
"rule_sanity": "basic", | ||
"solc": "solc8.26", | ||
"verify": "GetSignerHarness:certora/specs/GetSigner.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"assert_autofinder_success": true, | ||
"files": [ | ||
"certora/harnesses/ProxySimulator.sol", | ||
"contracts/SafeWebAuthnSignerProxy.sol", | ||
"contracts/SafeWebAuthnSignerSingleton.sol", | ||
"contracts/libraries/P256.sol", | ||
"certora/harnesses/WebAuthnHarnessWithMunge.sol" | ||
], | ||
"hashing_length_bound": "2048", | ||
"link": [ | ||
"ProxySimulator:_proxy=SafeWebAuthnSignerProxy", | ||
"SafeWebAuthnSignerProxy:_VERIFIERS=P256", | ||
"SafeWebAuthnSignerProxy:_SINGLETON=SafeWebAuthnSignerSingleton" | ||
], | ||
"loop_iter": "6", | ||
"optimistic_hashing": true, | ||
"optimistic_loop": true, | ||
"packages": [ | ||
"@safe-global=node_modules/@safe-global", | ||
"@account-abstraction=node_modules/@account-abstraction" | ||
], | ||
"process": "emv", | ||
"rule_sanity": "basic", | ||
"solc": "solc8.26", | ||
"verify": "ProxySimulator:certora/specs/ProxySimulator.spec" | ||
} |
30 changes: 30 additions & 0 deletions
30
modules/passkey/certora/conf/SafeWebAuthnSignerFactory.conf
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,30 @@ | ||
{ | ||
"assert_autofinder_success": true, | ||
"files": [ | ||
"certora/harnesses/FactoryHarnessForSignerConsistency.sol", | ||
"certora/harnesses/WebAuthnHarnessWithMunge.sol", | ||
"contracts/SafeWebAuthnSignerSingleton.sol", | ||
"contracts/SafeWebAuthnSignerProxy.sol" | ||
], | ||
"link": [ | ||
"FactoryHarnessForSignerConsistency:SINGLETON=SafeWebAuthnSignerSingleton" | ||
], | ||
"loop_iter": "6", | ||
"optimistic_hashing": true, | ||
"optimistic_loop": true, | ||
"packages": [ | ||
"@safe-global=node_modules/@safe-global", | ||
"@account-abstraction=node_modules/@account-abstraction" | ||
], | ||
"rule": [ | ||
"createAndGetSignerEquivalence", | ||
"getSignerRevertingConditions", | ||
"hasNoCodeIntegrity", | ||
"isValidSignatureForSignerConsistency", | ||
"singletonNeverChanges" | ||
], | ||
"process": "emv", | ||
"rule_sanity": "basic", | ||
"solc": "solc8.26", | ||
"verify": "FactoryHarnessForSignerConsistency:certora/specs/SafeWebAuthnSignerFactoryWithMunge.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"assert_autofinder_success": true, | ||
"files": [ | ||
"contracts/SafeWebAuthnSignerProxy.sol", | ||
"contracts/SafeWebAuthnSignerSingleton.sol", | ||
"contracts/libraries/P256.sol" | ||
], | ||
"link": [ | ||
"SafeWebAuthnSignerProxy:_VERIFIERS=P256", | ||
"SafeWebAuthnSignerProxy:_SINGLETON=SafeWebAuthnSignerSingleton" | ||
], | ||
"loop_iter": "6", | ||
"optimistic_hashing": true, | ||
"optimistic_loop": true, | ||
"packages": [ | ||
"@safe-global=node_modules/@safe-global", | ||
"@account-abstraction=node_modules/@account-abstraction" | ||
], | ||
"process": "emv", | ||
"rule_sanity": "basic", | ||
"solc": "solc8.26", | ||
"verify": "SafeWebAuthnSignerProxy:certora/specs/SafeWebAuthnSignerProxy.spec" | ||
} |
23 changes: 23 additions & 0 deletions
23
modules/passkey/certora/conf/SafeWebAuthnSignerSingleton.conf
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,23 @@ | ||
{ | ||
"assert_autofinder_success": true, | ||
"files": [ | ||
"contracts/SafeWebAuthnSignerFactory.sol", | ||
"contracts/SafeWebAuthnSignerSingleton.sol", | ||
"contracts/libraries/P256.sol", | ||
"certora/harnesses/WebAuthnHarnessWithMunge.sol" | ||
], | ||
"link": [ | ||
"SafeWebAuthnSignerFactory:SINGLETON=SafeWebAuthnSignerSingleton" | ||
], | ||
"loop_iter": "6", | ||
"optimistic_hashing": true, | ||
"optimistic_loop": true, | ||
"packages": [ | ||
"@safe-global=node_modules/@safe-global", | ||
"@account-abstraction=node_modules/@account-abstraction" | ||
], | ||
"process": "emv", | ||
"rule_sanity": "basic", | ||
"solc": "solc8.26", | ||
"verify": "SafeWebAuthnSignerSingleton:certora/specs/SafeWebAuthnSignerSingleton.spec" | ||
} |
31 changes: 31 additions & 0 deletions
31
modules/passkey/certora/conf/SignerCreationCantOverride.conf
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,31 @@ | ||
{ | ||
"assert_autofinder_success": true, | ||
"exclude_rule": [ | ||
"createAndVerifyEQtoIsValidSignatureForSigner" | ||
], | ||
"files": [ | ||
"certora/harnesses/SafeWebAuthnSignerFactoryHarness.sol", | ||
"contracts/SafeWebAuthnSignerSingleton.sol", | ||
"contracts/SafeWebAuthnSignerProxy.sol", | ||
"contracts/libraries/P256.sol", | ||
"certora/harnesses/WebAuthnHarnessWithMunge.sol" | ||
], | ||
"hashing_length_bound": "912", | ||
"link": [ | ||
"SafeWebAuthnSignerFactoryHarness:SINGLETON=SafeWebAuthnSignerSingleton" | ||
], | ||
"loop_iter": "6", | ||
"optimistic_hashing": true, | ||
"optimistic_loop": true, | ||
"packages": [ | ||
"@safe-global=node_modules/@safe-global", | ||
"@account-abstraction=node_modules/@account-abstraction" | ||
], | ||
"process": "emv", | ||
"rule": [ | ||
"SignerCreationCantOverride" | ||
], | ||
"rule_sanity": "basic", | ||
"solc": "solc8.26", | ||
"verify": "SafeWebAuthnSignerFactoryHarness:certora/specs/SafeWebAuthnSignerFactory.spec" | ||
} |
23 changes: 23 additions & 0 deletions
23
modules/passkey/certora/conf/SingletonIsValidSignatureRevertingConditions.conf
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,23 @@ | ||
{ | ||
"assert_autofinder_success": true, | ||
"files": [ | ||
"contracts/SafeWebAuthnSignerFactory.sol", | ||
"contracts/SafeWebAuthnSignerSingleton.sol", | ||
"contracts/libraries/P256.sol", | ||
"certora/harnesses/WebAuthnHarnessWithMunge.sol" | ||
], | ||
"loop_iter": "6", | ||
"optimistic_hashing": true, | ||
"optimistic_loop": true, | ||
"packages": [ | ||
"@safe-global=node_modules/@safe-global", | ||
"@account-abstraction=node_modules/@account-abstraction" | ||
], | ||
"process": "emv", | ||
"rule": [ | ||
"isValidSignatureRevertingConditions" | ||
], | ||
"rule_sanity": "basic", | ||
"solc": "solc8.26", | ||
"verify": "SafeWebAuthnSignerSingleton:certora/specs/SafeWebAuthnSignerSingleton.spec" | ||
} |
26 changes: 26 additions & 0 deletions
26
modules/passkey/certora/conf/ValidSignatureForSignerIntegrity.conf
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": [ | ||
"certora/harnesses/SafeWebAuthnSignerFactoryHarness.sol", | ||
"certora/harnesses/WebAuthnHarnessWithMunge.sol", | ||
"contracts/SafeWebAuthnSignerSingleton.sol", | ||
"contracts/SafeWebAuthnSignerProxy.sol" | ||
], | ||
"link": [ | ||
"SafeWebAuthnSignerFactoryHarness:SINGLETON=SafeWebAuthnSignerSingleton" | ||
], | ||
"loop_iter": "6", | ||
"optimistic_hashing": true, | ||
"optimistic_loop": true, | ||
"packages": [ | ||
"@safe-global=node_modules/@safe-global", | ||
"@account-abstraction=node_modules/@account-abstraction" | ||
], | ||
"process": "emv", | ||
"rule": [ | ||
"isValidSignatureForSignerIntegrity" | ||
], | ||
"rule_sanity": "basic", | ||
"solc": "solc8.26", | ||
"verify": "SafeWebAuthnSignerFactoryHarness:certora/specs/SafeWebAuthnSignerFactory.spec" | ||
} |
Oops, something went wrong.