-
Notifications
You must be signed in to change notification settings - Fork 479
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
statetrie: nibbles #5759
Conversation
This is the same as #5719 |
Codecov Report
@@ 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
... 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! |
@ohill thank you for reviewing nibbles! |
@bbroder-uji Looks like you need to run go fmt or |
086f8cb
to
1a0fd52
Compare
sorry was away from my laptop for awhile. I think I got everything, have a look. |
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).