Commit graph

806 commits

Author SHA1 Message Date
32e1fc4552 convert test_singlethreaded_subtree to use SubtreeLeavesIter 2024-11-13 13:34:28 -07:00
e8684b67c8 smt: make with_entries() a trait method 2024-11-13 13:34:28 -07:00
6e7a6caf17 SubtreeLeaf::from_smt_leaf() was only used in tests 2024-11-13 13:34:28 -07:00
525cbf930a cleanup test_singlethreaded_subtrees a bit 2024-11-13 13:34:28 -07:00
905a3856f7 add SubtreeLeavesIter 2024-11-13 13:34:28 -07:00
be53dd317a factor out subtree-append logic 2024-11-13 13:34:28 -07:00
bfa4bb493b rename PrecomputedSubtrees -> PairComputations 2024-11-13 13:34:28 -07:00
3ba8ba9bba make PrecomputedSubtrees more generic 2024-11-13 13:34:28 -07:00
be028fa0f5 working test_singlethreaded_subtrees() 2024-11-13 13:34:28 -07:00
7b5da91b82 refactor sorted_pairs_to_leaves() to also group subtrees 2024-11-13 13:34:28 -07:00
3abb959048 add test_two_subtrees() test 2024-11-13 13:34:28 -07:00
10be4141e8 merkle: add a benchmark for constructing 256-leaf balanced trees 2024-11-13 13:34:28 -07:00
053b77ab26 refactor test_build_subtree_from_leaves() 2024-11-13 13:34:28 -07:00
2dc6de41fb WIP(smt): impl simple subtree8 hashing and benchmarks for it
bench(smt-subtree): add a benchmark for single-leaf subtrees

make build_subtree also return the next leaf row

convert (col, hash) tuples to a dedicated struct
2024-11-13 13:34:28 -07:00
491affdc69 add sorted_pairs_to_leaves() and test for it 2024-11-13 13:34:23 -07:00
47fe32778b move pairs to leaf commit below sorted pairs to leaves commit 2024-11-13 13:30:22 -07:00
b954bb5287 smt: add pairs_to_leaf() to trait 2024-11-13 13:29:48 -07:00
9e14b1b99b add a parallel subtree criterion benchmark 2024-11-13 13:29:48 -07:00
f843cb609c smt: add build_subtrees() to coordinate subtree building 2024-11-13 13:29:48 -07:00
fb5d1f435c add a parallel construction benchmark to src/main.rs 2024-11-13 13:29:48 -07:00
8ae5a90107 improve docs for build_subtree() 2024-11-13 13:29:48 -07:00
847d52015f smt: add from_raw_parts() to trait interface 2024-11-13 13:29:48 -07:00
52ccdfcde1 implement test_multithreaded_subtree 2024-11-13 13:29:48 -07:00
7c7ec187e8 convert test_singlethreaded_subtree to use SubtreeLeavesIter 2024-11-13 13:29:48 -07:00
c8841ef9fc smt: make with_entries() a trait method 2024-11-13 13:29:48 -07:00
e9177cc07e SubtreeLeaf::from_smt_leaf() was only used in tests 2024-11-13 13:29:48 -07:00
cd313c9810 cleanup test_singlethreaded_subtrees a bit 2024-11-13 13:29:48 -07:00
123a5e4297 add SubtreeLeavesIter 2024-11-13 13:29:48 -07:00
7ff9ab9314 factor out subtree-append logic 2024-11-13 13:29:48 -07:00
bc944707dc rename PrecomputedSubtrees -> PairComputations 2024-11-13 13:29:48 -07:00
e908f69d30 make PrecomputedSubtrees more generic 2024-11-13 13:29:48 -07:00
7ab736b8fc working test_singlethreaded_subtrees() 2024-11-13 13:29:48 -07:00
4706c53db4 refactor sorted_pairs_to_leaves() to also group subtrees 2024-11-13 13:29:48 -07:00
2ad28cacbb add test_two_subtrees() test 2024-11-13 13:29:48 -07:00
3675825d59 merkle: add a benchmark for constructing 256-leaf balanced trees 2024-11-13 13:29:48 -07:00
9debd6e442 refactor test_build_subtree_from_leaves() 2024-11-13 13:29:48 -07:00
e569bfa9c1 WIP(smt): impl simple subtree8 hashing and benchmarks for it
bench(smt-subtree): add a benchmark for single-leaf subtrees

make build_subtree also return the next leaf row

convert (col, hash) tuples to a dedicated struct
2024-11-13 13:29:48 -07:00
ecf358a19e add sorted_pairs_to_leaves() and test for it 2024-11-13 13:29:48 -07:00
70aaee0dc2 supposedly successful 2024-11-13 13:10:27 -07:00
64e7d0bb79 add a parallel subtree criterion benchmark 2024-11-13 12:38:31 -07:00
c90d0078ff smt: add build_subtrees() to coordinate subtree building 2024-11-13 12:38:31 -07:00
bad50366f5 add a parallel construction benchmark to src/main.rs 2024-11-13 12:38:31 -07:00
f247978d68 improve docs for build_subtree() 2024-11-13 12:38:31 -07:00
e4206ff9ea smt: add from_raw_parts() to trait interface 2024-11-13 12:38:31 -07:00
8bea45ad29 implement test_multithreaded_subtree 2024-11-13 12:38:31 -07:00
3e8b1f3306 convert test_singlethreaded_subtree to use SubtreeLeavesIter 2024-11-13 12:38:31 -07:00
c8be322ad6 smt: make with_entries() a trait method 2024-11-13 12:38:31 -07:00
4b63dbd7d6 SubtreeLeaf::from_smt_leaf() was only used in tests 2024-11-13 12:38:31 -07:00
dcef173f45 cleanup test_singlethreaded_subtrees a bit 2024-11-13 12:38:31 -07:00
ca1865ab23 add SubtreeLeavesIter 2024-11-13 12:38:31 -07:00