Skip to content

[Decompose] why can't use mod or >> in circuit? #56

Answered by dajuguan
Demian101 asked this question in Q&A
Discussion options

You must be logged in to vote

Because << is not overloaded in Finite Field, actually only Add, AddAssign, Mul, MulAssign, Neg, Sub, SubAssign are overloaded in the Field trait. Ref: https://github.com/zkcrypto/ff/blob/e853770f4843e47cd5e07330140b5bd1cdfc9f11/src/lib.rs#L41

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Demian101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants