Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
4102dea
commit e01c380
Showing
4 changed files
with
73 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters