-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce solo machine signature type uniqueness (#7394)
* update solo machine proto types to use enum for uniqueness * move data type to SignatureAndData Adjusts SignatureAndData proto definition to take in a DataType. Updates misbehaviour basic validation to do checks on the data type. Adds unmarshaling tests. * split signature bytes creation to allow for function reusing. Stuck on strange error on testing codec.go * fix test bug * update UnmarshalByType and refactor misbehaviour handle Rename CanUnmarshalDataByType -> UnmarshalDataByType. Return a new interface and error. Refactor tests to work. Refactor misbehaviour_handle.go to check unmarshaling of the data and DRY code by separating signature and data checks into its own function. Update godoc. * add tests to codec_test.go * self review + lint * update spec * fix lint * Update x/ibc/light-clients/solomachine/spec/01_concepts.md Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com> * increase code cov, update spec apply most of @fedekunze comments. * format spec * make proto * fix merge conflicts * make proto * fix conflicts Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
- Loading branch information
1 parent
dcf3b54
commit a32e2a0
Showing
16 changed files
with
989 additions
and
233 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
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.