Closed TalDerei closed 8 months ago
We should avoid editing the generated code, and only write wrappers around it. Otherwise, if we ever need to regenerate, we won't be able to apply the changes cleanly. This is kind of annoying to work around, considering that the generated code generates C-style APIs, but it's important for long-term maintainability and verifiability.
We should avoid editing the generated code
agreed, fixed!
Per the recent indexing changes (packing two u32s
into a single u64
) in #67, we effectively consume and implement the inversion functionality. Proposing to close this PR in favor of those changes? cc @redshiftzero @hdevalence.
@cronokirby let's carry over the inversion proptest to Arkworks-Compatibility
.
References #65.
Referenced BLS12-377 curve construction parameters from ZEXE paper (
p.44
). Retrieved BLS12-377 twisted edwards curve construction parameters from here.Note: I slightly modified the input bounds of the fiat-generated
divstep
to make the output bounds explicitly return. This is merely a semantic change that simplifies the iterations in theinverse
function. Update: This change has been reverted.