zkcrypto / bellman

zk-SNARK library.
Other
988 stars 534 forks source link

Fix error display which would cause a stack overflow #77

Closed conradoplg closed 2 years ago

conradoplg commented 2 years ago

The fmt::Display implementation called itself, which would cause a stack overflow when formatting errors.

This removes the description implementation (which is deprecated) and moves it to the Display implementation. Also adds tests.