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

statetrie: nibbles #5759

Merged
merged 10 commits into from
Nov 16, 2023
Merged

statetrie: nibbles #5759

merged 10 commits into from
Nov 16, 2023

Conversation

bbroder-uji
Copy link
Contributor

This PR adds types and utility functions for manipulating nibbles (4-bit value arrays). It is specifically to support a new package, statetrie, which will use Nibbles and their associated utility functions.

The statetrie is designed to have keys with sequences of 4-bit bytes. A statetrie with 16-ary branch nodes has smaller proofs than a full byte (256-ary).

@CLAassistant
Copy link

CLAassistant commented Sep 27, 2023

CLA assistant check
All committers have signed the CLA.

algorandskiy
algorandskiy previously approved these changes Sep 28, 2023
@algorandskiy
Copy link
Contributor

This is the same as #5719

@codecov
Copy link

codecov bot commented Sep 29, 2023

Codecov Report

Merging #5759 (615552d) into master (3605084) will increase coverage by 0.03%.
Report is 3 commits behind head on master.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5759      +/-   ##
==========================================
+ Coverage   55.61%   55.64%   +0.03%     
==========================================
  Files         475      476       +1     
  Lines       66946    67003      +57     
==========================================
+ Hits        37230    37284      +54     
- Misses      27194    27203       +9     
+ Partials     2522     2516       -6     
Files Coverage Δ
crypto/statetrie/nibbles/nibbles.go 100.00% <100.00%> (ø)

... and 15 files with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

algorandskiy
algorandskiy previously approved these changes Sep 29, 2023
@bbroder-uji
Copy link
Contributor Author

@ohill thank you for reviewing nibbles!

@ohill
Copy link
Contributor

ohill commented Oct 11, 2023

@bbroder-uji Looks like you need to run go fmt or make fmt to fix the failing check.

@bbroder-uji
Copy link
Contributor Author

bbroder-uji commented Nov 9, 2023

sorry was away from my laptop for awhile. I think I got everything, have a look.

winder
winder previously approved these changes Nov 9, 2023
algorandskiy
algorandskiy previously approved these changes Nov 9, 2023
@algorandskiy algorandskiy mentioned this pull request Nov 9, 2023
@bbroder-uji bbroder-uji dismissed stale reviews from algorandskiy and winder via 615552d November 9, 2023 21:20
@algorandskiy algorandskiy merged commit ff0ee44 into algorand:master Nov 16, 2023
18 checks passed
@bbroder-uji bbroder-uji deleted the nibbles_2 branch November 16, 2023 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants