Skip to content

feat: serialise / deserialise acquisition flow [WPB-25018]#2118

Open
typfel wants to merge 4 commits intomainfrom
jacob/feat/serialise-aquisition-flow
Open

feat: serialise / deserialise acquisition flow [WPB-25018]#2118
typfel wants to merge 4 commits intomainfrom
jacob/feat/serialise-aquisition-flow

Conversation

@typfel
Copy link
Copy Markdown
Member

@typfel typfel commented May 7, 2026

What's new in this PR


PR Submission Checklist for internal contributors
  • The PR Title
    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@typfel typfel force-pushed the jacob/feat/serialise-aquisition-flow branch from 67bdc07 to ace9a89 Compare May 7, 2026 14:15
Copy link
Copy Markdown
Contributor

@coriolinus coriolinus left a comment

Choose a reason for hiding this comment

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

The approach seems reasonable. IIRC it's basically what we talked about earlier, discussing this topic.

Comment thread crypto-ffi/src/e2ei/mod.rs Outdated
Comment on lines +186 to +187
let snapshot = wire_e2e_identity::X509CredentialAcquisition::<states::DpopChallengeCompleted>::deserialize(Arc::new(pki_environment.as_ref().clone().into()), bytes)
.map_err(CoreCryptoError::generic())?;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As long as we know that we'll only ever deserialize this from states::DpopChallengeCompleted then this is fine. But if we ever try to deserialize it from another state, this will fail in a confusing way.

Comment thread e2e-identity/src/acquisition/serialization.rs Outdated
@typfel typfel force-pushed the jacob/feat/serialise-aquisition-flow branch from ace9a89 to 0febefd Compare May 8, 2026 07:23
@typfel typfel changed the title feat: serialise / deserialise acquisition flow feat: serialise / deserialise acquisition flow [WPB-25018] May 8, 2026
@typfel typfel force-pushed the jacob/feat/serialise-aquisition-flow branch from bb74889 to 92ab233 Compare May 8, 2026 08:31
@typfel typfel marked this pull request as ready for review May 8, 2026 14:14
@typfel typfel requested a review from a team May 8, 2026 14:14
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.

3 participants