mratsim / constantine

Constantine: modular, high-performance, zero-dependency cryptography stack for verifiable computation, proof systems and blockchain protocols.
Other
413 stars 44 forks source link

Tests for Scalar Deserialize by Ignacio #343

Closed agnxsh closed 10 months ago

agnxsh commented 10 months ago

The idea is to try to deserialize test proof scalars of INVALID lengths, either they are null values, or they are bigger than the field size than that of Fr[Banderwagon]. Let's say we have a 32 length byte array, now this can store upto a 256 bit value, however the field size restricts us to store only upto 253 bit values. In that case deserializing the scalar MUST FAIL. Test vectors are found here