feat: add ExecutionBoundEnforcer — exact execution commitment at redemption#173
feat: add ExecutionBoundEnforcer — exact execution commitment at redemption#173terriclaw wants to merge 1 commit intoMetaMask:mainfrom
Conversation
47cd4ea to
b898af3
Compare
|
addressed both issues:
10/10 tests passing. |
b898af3 to
118ead0
Compare
|
good catch — switching to OZ |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Reviewed by Cursor Bugbot for commit 118ead0. Configure here.
118ead0 to
8e76363
Compare
|
good catch — moved nonce consumption before signature verification to follow CEI. also removed the incorrect NatDoc justification; the ordering is for CEI compliance, not griefing prevention (revert rolls back state regardless). |
8e76363 to
b20a18f
Compare
|
tightening pass: fixed stale NatDoc comment — nonce is consumed before signature verification (CEI), not after. the previous wording was left over from an earlier iteration and incorrectly described the ordering. |

What?
ExecutionBoundEnforcer, aCaveatEnforcerthat binds execution to an EIP-712 signed commitment at redemptionWhy?
How?
CaveatEnforcerterms: unusedargs:abi.encode(ExecutionIntent intent, address signer, bytes signature)ExecutionIntent:(account, target, value, dataHash, nonce, deadline)dataHash = keccak256(execution.callData)(delegationManager, account, nonce)SignatureCheckerCloses #172