-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor pedersen hash standard (#2592)
This PR is a follow up to #1945 and our Pedersen hash refactor project https://hackmd.io/XYBiWhHPT9C1bo4nrtoo0A?view The PR updates all existing usage of Pedersen commitments and Pedersen hashes to use the new, more straightforward definition in the hackmd and implemented in #1945 This requires wide changes to the codebase as the barretenberg interface used for the Pedersen hash has changed. The large static generator lists that were computed for every barretenberg process have been removed, and replaced with a streamlined generator_data class All uses of `pedersen::compress` have been removed and replaced with `pedersen::hash` We should no longer ever take the x-coordinate of `pedersen::commit` outside of pedersen::hash`. The Schnorr signature stdlib method now uses `cycle_group` instead of its own independent scalar multiplication method The ACIR fixed-base scalar mul opcode now actually evaluates a fixed-base scalar mul All of the code that implemented the old Pedersen functionality has been deleted The stdlib class `point` has been deleted. All code instances that used `point` now use `cycle_group` (don't want two independent types in the stdlib that both represent embedded elliptic curve points) --------- Co-authored-by: Charlie Lye <[email protected]> Co-authored-by: kevaundray <[email protected]> Co-authored-by: Leila Wang <[email protected]> Co-authored-by: sirasistant <[email protected]> Co-authored-by: ludamad <[email protected]>
- Loading branch information
Showing
157 changed files
with
2,013 additions
and
6,489 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
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 was deleted.
Oops, something went wrong.
48 changes: 0 additions & 48 deletions
48
cpp/src/barretenberg/crypto/generators/fixed_base_scalar_mul.hpp
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.