You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, how I can write annotations that specify that this function returns the recovered address if the signature components are valid and otherwise reverts?
The ecrecover function is currently treated as uninterpreted so there is no meaning attached to it's computation (see, e.g., example).
It is unlikely that we will ever be able to reason about very specific properties such as "signature components are valid" in a generic way. Automated reasoning tools have serious limitations when it comes to reasoning efficiently about cryptographic functions.
To properly support ecrecover property like this, we'd have to extend our spec language with a dedicated predicate ecvalid(...) and manually encode its properties. This is something we are thinking about but it might take a while.
Can solc-verify handle the ecrecover function?
For example, how I can write annotations that specify that this function returns the recovered address if the signature components are valid and otherwise reverts?
The text was updated successfully, but these errors were encountered: