Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Deserialize for Quote3<Vec<u8>> #379

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

nick-mobilecoin
Copy link
Collaborator

@nick-mobilecoin nick-mobilecoin commented Jul 26, 2023

Previously Deserialize was only implemented for Quote3<&[u8]>. Now
it's also implemented for the Quote3<Vec<u8>> type.

Motivation

The main MobileCoin repo passes quotes into and out of the enclave. This requires the owned Quote3<Vec<u8>> version to be serializable as well as the borrowed Quote<&[u8]> version.

@nick-mobilecoin
Copy link
Collaborator Author

nick-mobilecoin commented Jul 26, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@meowblecoinbot meowblecoinbot requested a review from a team July 26, 2023 21:36
@github-actions github-actions bot added the size/S PRs with less than 100 lines of changes label Jul 26, 2023
Previously `Deserialize` was only implemented for `Quote3<&[u8]>`. Now
it's also implemented for the `Quote3<Vec<u8>>` type.
@nick-mobilecoin nick-mobilecoin requested review from eranrund and dolanbernard and removed request for a team July 26, 2023 21:39
@nick-mobilecoin
Copy link
Collaborator Author

The test failures are due to, mobilecoinfoundation/actions#5

@codecov
Copy link

codecov bot commented Jul 27, 2023

Codecov Report

Merging #379 (f3be30c) into main (62912f6) will increase coverage by 0.14%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #379      +/-   ##
==========================================
+ Coverage   87.99%   88.14%   +0.14%     
==========================================
  Files          40       40              
  Lines        5508     5527      +19     
==========================================
+ Hits         4847     4872      +25     
+ Misses        661      655       -6     
Files Changed Coverage Δ
dcap/types/src/quote3.rs 97.90% <100.00%> (+0.85%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@nick-mobilecoin nick-mobilecoin merged commit bbb7534 into main Jul 27, 2023
23 of 24 checks passed
@nick-mobilecoin nick-mobilecoin deleted the nick/deserialize-vec-quote branch July 27, 2023 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/S PRs with less than 100 lines of changes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants