-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use try_from on recon keys (#263)
* fix: use try_from on recon keys This changes the recon::Key trait to use TryFrom<Vec<u8>> instead of simply From<_> in order to allow for validation of the bytes. Now its _should_ be impossible to construct either an Interest or an EventId that is not valid. Remembering that a fencepost is considered valid. * fix: fix bug in decoding event id The initial change had a bug in how the event id was decoded as it required an event height which was not always present in fenceposts
- Loading branch information
1 parent
9a99a14
commit 22eab7e
Showing
8 changed files
with
459 additions
and
271 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
Oops, something went wrong.