chore: replace instances of tree with trie #31
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Human Summary
This PR replaces references to
tree
withtrie
as this is technically atrie
and not atree
AI Summary
Summary generated by Reviewpad on 06 Dec 23 17:02 UTC
This pull request includes multiple file diffs. Here is a summary of the changes:
The
smst_proofs_test.go
file has changes related to replacingsmst
variables fromNewSparseMerkleSumTree
toNewSparseMerkleSumTrie
in multiple line ranges. Comments referring to the tree have also been updated to refer to the trie.The
smt_proofs_test.go
file has changes related to replacingsmt
variables fromNewSparseMerkleTree
toNewSparseMerkleTrie
in multiple line ranges. Comments referring to the tree have also been updated to refer to the trie.The
utils.go
file has changes related to importing the "encoding/binary" package, updating struct field names, function names, and parameter types related to the trie, renaming variables, and updating logic and function calls related to the trie.The
README.md
file has changes related to updating terminology from "Merkle tree" to "Merkle Trie", updating references to whitepapers, clarifying definitions, fixing typos, and correcting links.The
proof_sizes_test.go
file has changes related to organizing import statements, renaming variables, and updating logging statements to use correct variable names.The
smt_utils_test.go
file has changes related to updating comments to reflect the use of trie instead of tree and updating parameter types for consistency.The
smst.go
file has changes related to replacing the usage of theSparseMerkleSumTree
withSparseMerkleSumTrie
, updating comments and function names fromTree
toTrie
, renaming struct and function names, and updating logic related to the trie.The
fuzz_test.go
file has changes related to replacing the word "tree" with "trie" for more descriptive naming.The
utils.go
file has changes related to function and variable renaming for the data structure used, updating comments, and changing the type of a function parameter to match the updated data structure.The
Makefile
file has changes related to adding targets for documentation generation, testing, and benchmarking, renaming targets and benchmark commands, and updating some occurrences of "Tree" and "SumTree" to "Trie" and "SumTrie".The
bench_leaf_test.go
file has changes related to reorganizing package imports, renaming variables, and updating function names and calls to match the changes in the package.The
bench_utils_test.go
file has changes related to importing and renaming packages, updating variable and function names, and updating function calls.These changes involve various updates such as replacing variables and functions related to the tree with those related to the trie, updating comments, renaming variables, updating import statements, and reordering code.
Issue
Fixes N/A
Type of change
Please mark the relevant option(s):
Testing
make test_all
make benchmark_{all | suite name}
Required Checklist
godoc
format comments see: tip.golang.org/doc/comment)If Applicable Checklist