Closed skaunov closed 1 year ago
bigint
: remove excessive conversions, closer to the Rust implementation which initiated this issue, interface isn't stable anyway, but I'd double check this switch doesn't introduce potential exploitationIt's entirely possible this is a great bug you've found, I hadn't considered that. Is the bug in all of the implementations or just the rust one?
Right. C is described in both the plume blog post and the slides, both of which are linked from the repo readme! Blog post will be easiest to understand.
Closing this in favor of solution from the other end (taking Rust implementations to be consistent with TS).
This one could do #23 in TS part. I really need some approve that I got things correctly before moving on to Circom part.
Also pay attention to the note in the initial commit for this issue, pls. I suspect that Rust implementation actually should
panic
when SEC1 decoding gives number greq then the field order. So the inconsistency might be much deeper.