pull down to refresh

I'm probably overestimating how hard it'd be to build a e2ee PoC.

Assuming you're not going to build your own cryptography, it's easy to overestimate. Assuming you plan to roll your own, probably you're properly cautious.

100 sats \ 5 replies \ @k00b 5h

MLS in a browser. How hard can it be? lol

I found someone giving it a shot already at least: https://github.com/LukaJCB/ts-mls

reply
100 sats \ 4 replies \ @optimism 4h

It's even listed on the "official" MLS implementations page, great process on the PR /s, and the author of that ts lib opened a pull request for it despite writing in the readme:

This library has not undergone a formal security audit. While care has been taken to implement the MLS protocol correctly and securely, it may contain undiscovered vulnerabilities. If you plan to use this library in a production or security-critical context, proceed with caution and consider conducting an independent security review.

Make of that what you will. If I personally were to integrate a standard and there would be no audited, non-solo developed libs, I'd probably write and have audited my own lib. So in either case we're kind of back to "you're right to fear it", sorry, lol.

However: that implementation still isn't the hardest problem. The hardest problem, even if you write a ts mls lib yourself, is still key management.

reply
100 sats \ 3 replies \ @k00b 3h

I'd hope we can reuse the encrypted "vault" that we use for syncing send wallet creds, but there's a lot more state in these protocols and having one key to retrieve it all may defeat their purpose.

reply

Yeah I thought about that. I think that the distinction is that all the data in the vault can be reset and reconstructed but messages cannot.

reply
100 sats \ 1 reply \ @k00b 2h

It's perhaps naive but I was thinking we would hold the messaging keys in this vault as a backup of whatever we store on the device. Then there's at least some redundancy if the vault needs to be reset or the device gets wiped.

reply
100 sats \ 0 replies \ @k00b 2h

Maybe the reverse makes more sense. Wallet sync could be done by sending messages to other devices which only have on-device keys.

Anyway, I started out of my depth and went deeper. It should be a fun tab to keep open with Chat either way. Thanks for the motivation!

reply