-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: update aggregation capabilitites to use height instead of size …
…together with client and api (#831) Renames `size` to `height` for `piece`/`aggregate` based on described in storacha/data-segment#13 Note that: - took the opportunity to update this to finally rely on `data-segment` lib as it is now ready to be used (both in tests, and to validate aggregate) - given `piece` and `aggregate` are both perfect binary trees, leaf count of can be derived as `2 ** height`, and the size of the tree can be derived by `leafCount * Node.Size` (32). Needs storacha/specs#66
- Loading branch information
1 parent
338615b
commit 31730f0
Showing
16 changed files
with
1,163 additions
and
1,104 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
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
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
Oops, something went wrong.