-
Notifications
You must be signed in to change notification settings - Fork 9
Feat/sign based watcher auth #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| function resolveTimeout( | ||
| bytes32 timeoutId_, | ||
| uint256 signatureNonce_, | ||
| bytes calldata signature_ | ||
| ) external { | ||
| _isWatcherSignatureValid( | ||
| signatureNonce_, | ||
| keccak256(abi.encode(address(this), evmxChainSlug, signatureNonce_, timeoutId_)), | ||
| signature_ | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to add expected function call (resolveTimeout) to digest. This will help block signature reuse on other functions if they have similar params.
| function resolveTimeout( | ||
| bytes32 timeoutId_, | ||
| uint256 signatureNonce_, | ||
| bytes calldata signature_ | ||
| ) external { | ||
| _isWatcherSignatureValid( | ||
| signatureNonce_, | ||
| keccak256(abi.encode(address(this), evmxChainSlug, signatureNonce_, timeoutId_)), | ||
| signature_ | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The structure of digests is not enforced. i.e. there is no mechanism to make sure each digest has address, evmxSlug and nonce. lets enforce this somehow.
No description provided.