Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@paco0x
Copy link

@paco0x paco0x commented Feb 1, 2024

In verifyProof function, it uses yul functions like calldataload & return, which will be interpreted to CALLDATALOAD and RETURN opcodes, and these opcodes only make sense when the calling context is an external call.

Currently, the visibility of the generated contract functions are public and may be used unexpected as an internal call by inherit the generated contract, like:

contract MisusingVerifier is FflonkVerifier {
    function verify(...) {
        verifyProof(...)     // this will be an internal call and unexpected results may occur
    }
}

This PR changes public to external to avoid unexpected usage of the verifier contracts.

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.

1 participant