-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
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
Address circomspect
warnings
#11
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
I can't comment on the circom code, never written any...
About the remaining warnings: https://github.com/privacy-scaling-explorations/zk-kit.circom/security/code-scanning?query=pr%3A11+is%3Aopen
@0xjei I'd say go ahead and dismiss/close them
tysm, do you happen to know how to disable them? didn't find anything useful on their docs |
you can disable them yes, see #7 (comment) |
|
Let's merge this.
Maybe I can try hacking this "someday" (not sure this is urgent): |
awesome, I was reading the SARIF file standard stuff and this seems more than a possible workaround. You the best! |
Description
This PR addresses the
circomspect
warnings for theposeidon-cipher
,poseidon-proof
,utils(float, safe-comparators)
packages.There are still some warnings but we can safely ignore them:
poseidon-cipher
:decryptedLast
defined by the templatePoseidonDecryptIterations
is not constrained inPoseidonDecryptWithoutCheck
: yes, that's why is calledPoseidonDecryptWITHOUTCHECK
because there's no checks there.LessThan
need to be constrained to ensure that they are non-negative: added an assert to avoid potentially unsecure negative inputs to LessThan.float
: warning: UsingNum2Bits
to convert field elements to bits may lead to aliasing issues.: added an assert to check that the input is always under the BN254 curve. May @sripwoud or @cedoor or @ctrlc03 can countercheck this?Related Issue(s)
PR #7
Other information
none
Checklist
yarn format
andyarn compile
without getting any errors