Skip to content

Conversation

@ameeshaagrawal
Copy link
Collaborator

No description provided.

Comment on lines 152 to 161
function resolveTimeout(
bytes32 timeoutId_,
uint256 signatureNonce_,
bytes calldata signature_
) external {
_isWatcherSignatureValid(
signatureNonce_,
keccak256(abi.encode(address(this), evmxChainSlug, signatureNonce_, timeoutId_)),
signature_
);
Copy link
Contributor

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.

Comment on lines 152 to 161
function resolveTimeout(
bytes32 timeoutId_,
uint256 signatureNonce_,
bytes calldata signature_
) external {
_isWatcherSignatureValid(
signatureNonce_,
keccak256(abi.encode(address(this), evmxChainSlug, signatureNonce_, timeoutId_)),
signature_
);
Copy link
Contributor

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.

Base automatically changed from renames to staging February 25, 2025 16:47
arthcp
arthcp previously approved these changes Feb 25, 2025
@arthcp arthcp merged commit 336cda6 into staging Feb 27, 2025
1 check passed
@arthcp arthcp deleted the feat/sign-based-watcher-auth branch February 27, 2025 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants