arkworks-rs / curves

Implementations of popular elliptic curves
https://www.arkworks.rs
Apache License 2.0
303 stars 103 forks source link

Non-canonical infinity point & bad flags in BLS12-381 serialization should fail #176

Closed mmagician closed 1 year ago

mmagician commented 1 year ago

Description

Follow-up to https://github.com/arkworks-rs/curves/pull/157, the original is stale.

Thanks @ArnaudBrousseau for providing a test for bad flags (lmk if you'd like me to add you as co-author on the commit here)

closes: #157


Before we can merge this PR, please make sure that all the following items have been checked off. If any of the checklist items are not applicable, please leave them but write a little note why.

Pratyush commented 1 year ago

Thanks for the great PR @mmagician! Could you add a CHANGELOG entry as this is an important fix? Thanks!

mmagician commented 1 year ago

@Pratyush It's actually a breaking change no?

Pratyush commented 1 year ago

In Rust breaking changes are only when the API changes, not necessarily behaviour

mmagician commented 1 year ago

@Pratyush Thanks, I moved it to Bugfixes.