Posts  / #POST-212694
REDDIT

Signal Protocol in Javascript

A
Nov 3, 2025 · 09:40

following a previous post i made about [looking for the signal protocol in javascript](https://www.reddit.com/r/crypto/comments/1mi4ooa/looking_for_the_signal_protocol_in_javascript/)

IMPORTANT: My project is not professionally audited or production ready. the signal protocol in my project is entirely redundent. this approach is to investigate encryption redundency in my app.

---

edit:

- Demo: https://signal.positive-intentions.com
- Github: https://github.com/positive-intentions/signal-protocol

---

for my p2p messaging project (a webapp) i wanted to explore an usage of the Signal protocol.... the investigation is still in progress and far from finished. its clear that the Signal protocol is not intended for a p2p architecture with it needing things like pre-keys stored on servers. so it [seems nessesary to adapt it](https://positive-intentions.com/blog/p2p-signal-protocol).

i looked around for a suitable implementation i could use. compiling the implementation in lib-signal-go to a wasm seemed like an option that worked... but given AI is everywhere, i decided to see if it could put something better together. i started off creating something using browser-based cryptograpy primitives. i would have like to keep it that way, but an ealier AI audit disagreed to using those primitives and so here is an attempt in rust that compiles to wasm.

[https://github.com/positive-intentions/cryptography/tree/staging/src/rust](https://github.com/positive-intentions/cryptography/tree/staging/src/rust)

i added several unit tests and and got AI to try create better securty audits, and i think its working well. (or at least well enough). [AI's security audit](https://positive-intentions.com/docs/research/signal-protocol-security-audit) points me to many things i can improve throughout (so i will when i can).

this is fairly complicated stuff and i know better to ask people to spend their own time to review my experimental project... im not sharing for you to review my code; im sharing this here if this is interesting for anyone to take a look.

---

(note: the repo is getting a bit too "full" and i will be splitting it into a separate repo for just the signal implementation.) (edit: i split it and is linked above)

rule 8: im using AI in my project (duh!). the project is big and complicated. im not storing some big document of all the prompts i used.

Post image