Skip to content

Commit

Permalink
Merge pull request #3 from Certora/liav/property
Browse files Browse the repository at this point in the history
Proxy Immutability Property
  • Loading branch information
liav-certora authored May 20, 2024
2 parents 20f659b + 66b5fcb commit e5c5e70
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion certora/specs/SafeWebAuthnSignerProxy.spec
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,31 @@ use rule privilegedOperation filtered { f -> f.contract == currentContract }
use rule timeoutChecker filtered { f -> f.contract == currentContract }
use rule simpleFrontRunning filtered { f -> f.contract == currentContract }
use rule noRevert filtered { f -> f.contract == currentContract }
use rule alwaysRevert filtered { f -> f.contract == currentContract }
use rule alwaysRevert filtered { f -> f.contract == currentContract }


/*
Rule: Proxy Configuration Paramateres Never Change -- Passed
*/
rule configParametersImmutability {
env e;
method f;
calldataarg args;

address singletonBefore = currentContract._SINGLETON;
uint256 xBefore = currentContract._X;
uint256 yBefore = currentContract._Y;
P256.Verifiers verifiersBefore = currentContract._VERIFIERS;

f(e, args);

address singletonAfter = currentContract._SINGLETON;
uint256 xAfter = currentContract._X;
uint256 yAfter = currentContract._Y;
P256.Verifiers verifiersAfter = currentContract._VERIFIERS;

assert singletonBefore == singletonAfter &&
xBefore == xAfter &&
yBefore == yAfter &&
verifiersBefore == verifiersAfter;
}

0 comments on commit e5c5e70

Please sign in to comment.