matrix-org / matrix-org/matrix-js-sdk
Unable to verify signature on one-time key for device ... Error: OLM.BAD_MESSAGE_MAC
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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