-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: simplify commitment trait (#55)
# Rationale for this change The `Commitment` trait has a `fold_commitments` which is only used internally to the `CommitmentEvaluationProof`, and as a result, is somewhat superfluous, making adding new commitment schemes more complex. # What changes are included in this PR? * `Commitment::fold_commitments` is removed. * `CommitmentEvaluationProof::verify_batched_proof` is no longer a provided method. Instead, `CommitmentEvaluationProof::verify_proof` is a provided method, and implementers must implement `verify_batched_proof` instead. # Are these changes tested? By existing tests.
- Loading branch information
1 parent
bc404ae
commit ac8aeef
Showing
4 changed files
with
31 additions
and
63 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