Skip to content

Derive TlsSerialize for MlsMessageIn unconditionally - #2071

Merged
keks merged 1 commit into
mainfrom
keks/impl-TlsSerialize-for-MlsMessageIn
Jun 23, 2026
Merged

keks merged 1 commit into
mainfrom
keks/impl-TlsSerialize-for-MlsMessageIn

Conversation

@keks

@keks keks commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

So far it was only derived if the test-utils feature is set. The main point of the In packages is not to prevent us from serializing received messages, but from derializing into types we assume are verified.

When using these types in APIs in other projects, it's a little annoying having to propagate or work around this In/Out split on the higher layer as well. For example, when submitting an MlsMessage as an HTTP POST body to a relay, if we only impl one of Serialize and Deserialize, then the request type would have to be different on client on server, which reduces code reuse.

@keks keks self-assigned this Jun 23, 2026
@keks
keks requested a review from a team as a code owner June 23, 2026 07:48
So far it was only derived if the test-utils feature is set. The main
point of the In packages is not to prevent us from serializing received
messages, but from derializing into types we assume are verified.

When using these types in APIs in other projects, it's a little annoying
having to propagate or work around this In/Out split on the higher layer
as well. For example, when submitting an MlsMessage as an HTTP POST body
to a relay, if we only impl one of Serialize and Deserialize, then the
request type would have to be different on client on server, which
reduces code reuse.
@keks
keks force-pushed the keks/impl-TlsSerialize-for-MlsMessageIn branch from 0d17dc1 to 543dbc7 Compare June 23, 2026 08:04
@keks
keks merged commit af96f68 into main Jun 23, 2026
40 checks passed
@keks
keks deleted the keks/impl-TlsSerialize-for-MlsMessageIn branch June 23, 2026 08:11
keks added a commit that referenced this pull request Jun 23, 2026
Meant to do this in #2071, but didn't actually. Do it now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants