Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: FieldMerkleTree tree with arbitrary hasher #22

Closed
wants to merge 19 commits into from

Conversation

tamirhemo
Copy link
Contributor

@tamirhemo tamirhemo commented Feb 23, 2024

This PR allows FieldMerkleTree to have a digest word that is different than a field element, while keeping the packing API in place by introducing PackedValue trait as a super trait to PackedField.

This saves the need to convert to field elements in each level of the tree.

SyxtonPrime and others added 19 commits February 21, 2024 17:46
* Cleaning up Benchmarks

Added some functions into field-testing\src\bench_func.rs which allows us to simplify the benchmarking code for BabyBear, Mersenne31 and Goldilocks.

* fmt and clippy

* Minor typos

Good to keep benchmarks for add_throughput, sub_throughput comparable but using the save number of repetitions.

* Comments

Adding a few comments and adding in a simple constant controlling the number of repations.
Clippy gets slightly unhappy when compiled with AVX targeted. No meaningful changes here but should stop clippy complaining.
@tamirhemo
Copy link
Contributor Author

Replaced with updated version #23

@tamirhemo tamirhemo closed this Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants