DDB

Results 39 issues of DDB

Currently, for many crypto primitives/gadgets, we have as many tests/benches as concrete instantiations; however, the code for them is exactly the same. We should write generic tests/benches, templatizing them with...

enhancement

Would be nice to have, for this trait: - Derive macros, calling `is_valid()` on each of the members of a given struct; - An additional function that allows checking for...

enhancement
nice to have

Would be nice, maybe by exploiting also the Flags trait, when serializing, to serialize a bit too telling whether the serialized struct is in compressed form or not, removing the...

enhancement
nice to have

The current Merkle tree implementations don't differentiate between internal nodes and leaf nodes when hashing them. Such Merkle trees lack _second preimage resistance_: given a root **R** and tree **T**,...

security issue

Generation scripts of Poseidon parameters at https://extgit.iaik.tugraz.at/krypto/hadeshash/-/tree/master have been recently updated. We should re-execute the scripts for our curves and check if any of the parameters we currently have in...

security issue

Like it has been done in upstream, we should introduce a macro (where it may be convenient to parallelize) that selects an iterator or a parallel iterator depending on the...

enhancement
sw design
optimization

We can optimize divide_by_vanishing_poly(): the actual algorithm uses generic textbook division, but the vanishing polynomial has a special form (X^N - 1)

optimization

Based on the following timings (taken on my CPU 6x2.2GHz (turbo 4.1GHz), 8GB RAM): ``` process_leaves_mnt4_comp --Add 1000 leaves in a tree of height 23: ---Non-Lazy: 91.6s ---Lazy: 0.423s --Remove...

enhancement
optimization