refactor!: move most of the E2EI related code from crypto to e2e-identity#1891
Open
istankovic wants to merge 23 commits intomainfrom
Open
refactor!: move most of the E2EI related code from crypto to e2e-identity#1891istankovic wants to merge 23 commits intomainfrom
crypto to e2e-identity#1891istankovic wants to merge 23 commits intomainfrom
Conversation
7bbc86c to
098191f
Compare
crypto to e2e-identity
Member
Member
Author
098191f to
edb7e9b
Compare
Member
Author
coriolinus
approved these changes
Feb 27, 2026
Contributor
coriolinus
left a comment
There was a problem hiding this comment.
I like this! Once CI is green, go for it.
Just like the crypto crate does.
They were only used for E2EI things, which has now been moved. Also make ed25519-dalek non-optional.
The function calls RustCrypto::normalize_p521_secret_key and RustCrypto::normalize_ed25519_key and the RustCrypto provider is not easily accessible from e2e-identity.
…:new PkiKeypair::new is supposed to be called immediately after having created a new signing key via signature_key_gen, and only with the private portion of the key pair. So instead of calling normalize, just make sure that the provided key has the right length. This also avoids the pointless copying.
Because MLS provider is defined in the crypto crate and we cannot depend on that crate in e2e-identity.
We're hitting the orphan rule here: Ciphersuite is defined in openmls, and JwsAlgorithm is defined in rusty-jwt-tools.
We're keeping E2eiConversationState for the time being.
We're going to need it.
It has been moved from crypto to e2e-identity.
edb7e9b to
afe06e0
Compare
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
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.
This moves most of the E2EI related code from
cryptotoe2e-identityand removes the old enrollment API fromcrypto-ffiand bindings. Tests using the old enrollment flow have been left incryptofor the time being, but will be revisited in a later PR.