Skip to content

bugfix: "Invalid public key" when establishing a new OMEMO2 session#32

Merged
jcbrand merged 2 commits into
masterfrom
fix/omemo2-wire-form-prekey
Jun 22, 2026
Merged

bugfix: "Invalid public key" when establishing a new OMEMO2 session#32
jcbrand merged 2 commits into
masterfrom
fix/omemo2-wire-form-prekey

Conversation

@jcbrand

@jcbrand jcbrand commented Jun 22, 2026

Copy link
Copy Markdown
Member

No description provided.

jcbrand added 2 commits June 22, 2026 10:18
`processPreKey` fed the bundle's signed prekey and prekey public
keys straight to ECDHE. omemo:2 transfers these as raw 32-byte
curve keys, which the version 2.0.1 DH hardening rejects with
"Invalid public key".

Normalize them to the internal 33-byte 0x05-prefixed form via a new
`normalizeRemotePreKey` protocol-profile hook.
Now that protobufs are pre-generated, the functions to load them are
sync. Remove unnecessary async from functions calling them.
@jcbrand jcbrand merged commit 53fbc76 into master Jun 22, 2026
3 checks passed
@jcbrand jcbrand deleted the fix/omemo2-wire-form-prekey branch June 22, 2026 10:30
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.

1 participant