You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extended commitment generators are currently
[produced](https://github.com/tari-project/bulletproofs-plus/blob/502ae9fa35a39afc5793210e4301023a7ca7ea60/src/ristretto.rs#L154-L179)
using the `lazy_static` macro. Unfortunately, `lazy_static` is [no
longer actively maintained](https://crates.io/crates/lazy_static). Other
repositories in the ecosystem are moving to `once_cell`, which is
[actively maintained](https://crates.io/crates/once_cell).
This PR migrates from `lazy_static` to `once_cell`. In the process, it
cleans up the construction. Specifically, it moves from using word-based
numbering (_e.g._ `ONE`, `TWO`) in hash inputs to numerals, which
simplifies the design. It also adds a useful test that asserts the
number of generators matches the size of `ExtensionDegree` to avoid
panics.
Closes#67.
BREAKING CHANGE: Modifies the construction of commitment generators.
Then use as
use once_cell::sync::Lazy;
We have moved away from
lazy_static
is it is unmaintainedThe text was updated successfully, but these errors were encountered: