Skip to content

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

Merged
typfel merged 4 commits into
mainfrom
jacob/feat/serialise-aquisition-flow
May 18, 2026
Merged

feat: serialise / deserialise acquisition flow [WPB-25018]#2118
typfel merged 4 commits into
mainfrom
jacob/feat/serialise-aquisition-flow

Conversation

@typfel

@typfel typfel commented May 7, 2026

Copy link
Copy Markdown
Member

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

@coriolinus coriolinus left a comment

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.

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
@typfel typfel force-pushed the jacob/feat/serialise-aquisition-flow branch 4 times, most recently from 1136646 to 22ca0c8 Compare May 13, 2026 15:35
@typfel typfel force-pushed the jacob/feat/serialise-aquisition-flow branch from 22ca0c8 to 9ff3765 Compare May 18, 2026 08:24
@typfel typfel merged commit 9ff3765 into main May 18, 2026
25 of 26 checks passed
@typfel typfel deleted the jacob/feat/serialise-aquisition-flow branch May 18, 2026 08:24
};

#[derive(Debug)]
struct UnusedPkiEnvironmentHooks;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@typfel Is there a reason we're not using DummyPkiEnvironmentHooks that we already have?

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