-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sign: Allow serde to deserialize tagged values (#12)
Add the capability to use plain serde_cbor::from_slice to read tagged COSESign1 objects. This manually implements Deserialize so that if we hit the Tagged value (a newtype struct), it doesn't crash, and just returns the inner value. Signed-off-by: Patrick Uiterwijk <[email protected]> Co-authored-by: Petre Eftime <[email protected]>
- Loading branch information
1 parent
0557c16
commit 3d16c91
Showing
1 changed file
with
81 additions
and
2 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