forked from openmls/openmls
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor VerifiedStruct and Verifiable (openmls#1472)
The current version of the two traits is the way it is because it attempted to prevent the caller from being able to convert to the Type implementing VerifiedStruct without checking the signature. However, the approach that was taken does not work. This commit refactors the two traits and performs the conversion in the same method as the verification. Unfortunately, this means that the verify method has to be defined per impl instead of being able to rely on a default one. There probably is no straightforward way around that, so this simple solution is preferred. Co-authored-by: Konrad Kohbrok <[email protected]>
- Loading branch information
Showing
6 changed files
with
129 additions
and
148 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
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.