Skip to content

Conversation

@pmerkleplant
Copy link
Contributor

@pmerkleplant pmerkleplant commented Feb 26, 2025

Adds a zero address check on the ecrecover return value. Zero address is returned if either no address could be recovered or the precompile ran out of gas.

At the current state, if owner accidentally adds zero address as notary the contract is effectively broken. Note that you could also globally enforce isNotary[address(0)] = false to move the check from hot to cold path.

@lonerapier
Copy link
Contributor

thanks @pmerkleplant. merging this.

@lonerapier lonerapier merged commit 35d4c4b into pluto:main Jul 3, 2025
1 check passed
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.

2 participants