-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: VID take iterator instead of slice (#381)
* derive common bounds for VidDisperse * more downstream-friendly derivations for VidDisperse * make itertools a workspace dep * WIP can't use itertools because rust-itertools/itertools#499 * BytesToField and FieldToBytes iterators pass tests, lots of cleanup todo * add large test length 5000, separate test for bytes_field_elems2, remove println * make bytes_to_field2 generic over Borrow<u8> * rename bytes_to_field2 -> bytes_to_field, etc * cargo fmt, cargo clippy * comments * test for zero-length input * 0-length input -> 0-length output * refactor elem_to_usize * refactor elem_to_bytes_iter * make bytes_from_field generic over Borrow<F> * test for iterators over both (u8, F) and (&u8, &F) * fix infallibility test for bytes_from_field * WIP disperse() take iterator, tests fail because commit() still does not * WIP commit() take iterator, tests fail because recover() still does not * WIP recover_payload() use bytes_from_field, tests fail due to a bug * rename: add 'invertible' * new alternate simpler bytes_to_field * fix: add elems_len to common so as to discard excess elements returned by RS decoding * remove simpler bytes_to_field (boo) * rename: remove invertible from bytes_to_field name * update CHANGELOG * update flake.lock, fix flake.nix * clippy appeasement * iterate elems directly into polynomials in commit_only * iterate elems directly into polynomials in disperse_from_elems
- Loading branch information
Showing
13 changed files
with
464 additions
and
78 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,7 @@ | |
buildInputs = [ | ||
argbash | ||
openssl | ||
pkgconfig | ||
pkg-config | ||
git | ||
|
||
stableToolchain | ||
|
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
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.