We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I see in https://docs.zama.ai/fhevm/guides/smart-contracts/gas#boolean-operations-ebool that a Not cost
not 30,000
for an ebool.
I wonder if it's expected: if a ciphertext c encrypts 0 or 1, then not c could be computed at 1 - c which is purely linear so almost free. No?
c
not c
1 - c
The text was updated successfully, but these errors were encountered:
Maybe it's too be done directly at the TFHE-rs level, I don't know, but if I am not wrong, not should be almost free for booleans
not
Sorry, something went wrong.
No branches or pull requests
I see in https://docs.zama.ai/fhevm/guides/smart-contracts/gas#boolean-operations-ebool that a Not cost
for an ebool.
I wonder if it's expected: if a ciphertext
c
encrypts 0 or 1, thennot c
could be computed at1 - c
which is purely linear so almost free. No?The text was updated successfully, but these errors were encountered: