matrix-org / matrix-org/matrix-js-sdk

Unable to verify signature on one-time key for device ... Error: OLM.BAD_MESSAGE_MAC

Open
#1,301 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.2k
Forks
704
Avg merge
1d 20h
Merged PRs (30d)
40

Description

I am getting the following error (Synapse: v1.12.2, JS SDK v4.0.0);
...
device is already verified: sharing keys
...
```
Unable to verify signature on one-time key for device ...:GSERJXCMEZ: Error: OLM.BAD_MESSAGE_MAC
at olm.js?v=b5b8814b642a8367260dd607a2d81eed:100
at fb. (olm.js?v=b5b8814b642a8367260dd607a2d81eed:101)
at fb.ed25519_verify (olm.js?v=b5b8814b642a8367260dd607a2d81eed:88)
at browser-matrix.min.js?v=b5b8814b642a8367260dd607a2d81eed:14
at d._getUtility (browser-matrix.min.js?v=b5b8814b642a8367260dd607a2d81eed:14)
at d.verifySignature (browser-matrix.min.js?v=b5b8814b642a8367260dd607a2d81eed:14)
at browser-matrix.min.js?v=b5b8814b642a8367260dd607a2d81eed:14
at c (browser-matrix.min.js?v=b5b8814b642a8367260dd607a2d81eed:14)
at Generator._invoke (browser-matrix.min.js?v=b5b8814b642a8367260dd607a2d81eed:14)
at Generator.forEach.e. [as next] (browser-matrix.min.js?v=b5b8814b642a8367260dd607a2d81eed:14)
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported olm.js stack trace and the browser-matrix.min.js calls through verifySignature and ed25519_verify. Compare the stated Synapse v1.12.2 and JS SDK v4.0.0 versions while investigating the OLM.BAD_MESSAGE_MAC failure. Done means identifying a reproducible cause and documenting the verified resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
cryptography, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.