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

Key Package Generation / Join API 1.x #226

Merged
merged 16 commits into from
Jan 7, 2025
Merged

Key Package Generation / Join API 1.x #226

merged 16 commits into from
Jan 7, 2025

Conversation

mulmarta
Copy link
Contributor

Issues:

Resolves #216
Addresses #207 #215

Description of changes:

  • Includes the commit from main fixing CI (clippy, bindgen version)
  • Addresses the key package storage aspect
  • Logic was just moved between files, no functional changes
  • Old API still exists in order to preserve tests and make review manageable
    • follow up remove old API, remove key package storage

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT license.

@mulmarta mulmarta requested a review from a team as a code owner December 16, 2024 12:54
@codecov-commenter
Copy link

codecov-commenter commented Dec 16, 2024

Codecov Report

Attention: Patch coverage is 96.60767% with 23 lines in your changes missing coverage. Please review.

Project coverage is 90.19%. Comparing base (cb25022) to head (a2d704b).
Report is 1 commits behind head on 1.x-main.

Files with missing lines Patch % Lines
mls-rs/src/group_joiner.rs 97.15% 7 Missing ⚠️
mls-rs/src/group/commit.rs 60.00% 4 Missing ⚠️
mls-rs/src/group/mod.rs 93.18% 3 Missing ⚠️
mls-rs/src/group/resumption.rs 75.00% 3 Missing ⚠️
mls-rs/src/key_package/builder.rs 98.48% 3 Missing ⚠️
mls-rs-core/src/identity.rs 0.00% 1 Missing ⚠️
mls-rs/src/client.rs 97.36% 1 Missing ⚠️
mls-rs/src/group/message_processor.rs 95.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           1.x-main     #226      +/-   ##
============================================
+ Coverage     90.17%   90.19%   +0.01%     
============================================
  Files           176      179       +3     
  Lines         31558    31929     +371     
============================================
+ Hits          28458    28798     +340     
- Misses         3100     3131      +31     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mulmarta mulmarta changed the title Kp strage Key Package Generation / Join API 1.x Dec 20, 2024
ManevilleF and others added 5 commits December 20, 2024 11:36
Somehow the DWARF info generated by the compiler for the
`hash`-replacement assignment is confusing to LLVM, which crashes.

By using a different form for the same operation, the compiler is happy.
[slice, slice].concat() creates an intermediate Vec, which can be
avoided by chaining updated_leaves and trailing_blanks before the first
Vec is created.
* Add API for deleting exporters

* Apply suggestions from code review

Co-authored-by: Stephane Raux <[email protected]>

---------

Co-authored-by: Marta Mularczyk <[email protected]>
Co-authored-by: Tom Leavy <[email protected]>
Co-authored-by: Stephane Raux <[email protected]>
Copy link
Contributor

@tomleavy tomleavy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Some minor comments

@tomleavy
Copy link
Contributor

tomleavy commented Jan 7, 2025

I think this is almost ready, but take a look at the top two code review notes posted in the codecov section above. It looks like we are missing a couple of tests in the new stuff

@tomleavy tomleavy merged commit 8da6828 into 1.x-main Jan 7, 2025
30 checks passed
@tomleavy tomleavy deleted the kp-strage branch January 7, 2025 18:35
mulmarta added a commit that referenced this pull request Jan 8, 2025
* Fix CI (#223)

* feat(mls-rs): Verify the update path even in case of a self removal (#224)

* Fix bug where double-hitting a ciphertext deleted the whole ratchet (#228)

Co-authored-by: Marta Mularczyk <[email protected]>

* Work around rust < 1.78 crash (#231)

Somehow the DWARF info generated by the compiler for the
`hash`-replacement assignment is confusing to LLVM, which crashes.

By using a different form for the same operation, the compiler is happy.

* Avoid intermediate Vec in TreeKemPublic::update_hashes (#230)

[slice, slice].concat() creates an intermediate Vec, which can be
avoided by chaining updated_leaves and trailing_blanks before the first
Vec is created.

* Add API for deleting exporters (#227)

* Add API for deleting exporters

* Apply suggestions from code review

Co-authored-by: Stephane Raux <[email protected]>

---------

Co-authored-by: Marta Mularczyk <[email protected]>
Co-authored-by: Tom Leavy <[email protected]>
Co-authored-by: Stephane Raux <[email protected]>

* Key package generation 1.x

* Fix clippy warnings

* Initial implementation of group join 1.x

* Add example for 1x API

* Apply suggestions from code review

* Add SigningData struct

* Fixup

* Add more tests

* Fixup

* Fixup

---------

Co-authored-by: Félix Lescaudey de Maneville <[email protected]>
Co-authored-by: Marta Mularczyk <[email protected]>
Co-authored-by: Mike Hommey <[email protected]>
Co-authored-by: Tom Leavy <[email protected]>
Co-authored-by: Stephane Raux <[email protected]>
mulmarta added a commit that referenced this pull request Jan 14, 2025
* Fix CI (#223)

* feat(mls-rs): Verify the update path even in case of a self removal (#224)

* Fix bug where double-hitting a ciphertext deleted the whole ratchet (#228)

Co-authored-by: Marta Mularczyk <[email protected]>

* Work around rust < 1.78 crash (#231)

Somehow the DWARF info generated by the compiler for the
`hash`-replacement assignment is confusing to LLVM, which crashes.

By using a different form for the same operation, the compiler is happy.

* Avoid intermediate Vec in TreeKemPublic::update_hashes (#230)

[slice, slice].concat() creates an intermediate Vec, which can be
avoided by chaining updated_leaves and trailing_blanks before the first
Vec is created.

* Add API for deleting exporters (#227)

* Add API for deleting exporters

* Apply suggestions from code review

Co-authored-by: Stephane Raux <[email protected]>

---------

Co-authored-by: Marta Mularczyk <[email protected]>
Co-authored-by: Tom Leavy <[email protected]>
Co-authored-by: Stephane Raux <[email protected]>

* Key package generation 1.x

* Fix clippy warnings

* Initial implementation of group join 1.x

* Add example for 1x API

* Apply suggestions from code review

* Add SigningData struct

* Fixup

* Add more tests

* Fixup

* Fixup

---------

Co-authored-by: Félix Lescaudey de Maneville <[email protected]>
Co-authored-by: Marta Mularczyk <[email protected]>
Co-authored-by: Mike Hommey <[email protected]>
Co-authored-by: Tom Leavy <[email protected]>
Co-authored-by: Stephane Raux <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants