-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sealable-trie: don’t use varint for tag
Using varints for the length of proof isn’t worth it in the end. The proof will never be longer than 8192 elements (longest possible key is 512 bytes long) and even with the additional bit for distinguishing membership from non-membership proofs 16-bits is enough to encode it. Using varint to encode the tag saves us at most only one byte at the cost of having bunch of convoluted code.
- Loading branch information
Showing
3 changed files
with
31 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,3 @@ extern crate std; | |
pub mod hash; | ||
#[cfg(any(feature = "test_utils", test))] | ||
pub mod test_utils; | ||
pub mod varint; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters