-
Notifications
You must be signed in to change notification settings - Fork 10
feat: implement new keypackage api [WPB-19574] #1598
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
Merged
Merged
Conversation
This file contains hidden or 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
Contributor
Author
|
How to handle the migration:
|
f6e27a8 to
c223af1
Compare
|
| Branch | prgn/feat/19574-new-keypackage-api |
| Testbed | ubuntu-latest |
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the--ci-only-thresholdsflag.
Click to view all benchmark results
| Benchmark | Latency | milliseconds (ms) |
|---|---|---|
| decrypt1000MessagesWeb | 📈 view plot | 251.10 ms |
27cbc33 to
fb05227
Compare
These methods will be particularly useful later on, when we want to implement the trait on a fatter ref type.
The new CC API involves minimizing transfer of biggish data across the FFI boundary, and using smaller typesafe references instead wherever possible. These references should know enough about their referenced struct to cheaply do relevant sorting and filtering operations. We'd previously been exposing the raw OpenMLS `KeyPackage` and `KeyPackageRef` types. However, `KeyPackageRef` doesn't know enough about its referenced Keypackage to be useful. So we fatten it in this commit so that we can remove obsolete methods without losing functionality.
Mostly this is about making `KeypackageRef` a fat ref not just a pointer, and reexporting its data methods so clients can see them.
Somehow it used to be that going through an e2ei enrollment would just automatically clear out all keypackages created with a basic credential, despite comments in the code mentioning that this could potentially lead to orphan keypackages. We've removed the method which did that, so now those keypackages are no longer removed, which meant we needed to adjust this test.
This test assumed that e2ei rotation implicitly cleared out all existing keypackages and also generated an equal number of new ones. That behavior cannot remain with the new keypackage API, so we needed to adjust this test to test the actual behavior.
524fde3 to
326ba95
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's new in this PR
add the Keypackage typejust straight using the OpenMLS onejust straight using the OpenMLS oneactually we needed a fat ref after allPR Submission Checklist for internal contributors
SQPIT-764feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.