torhve / weechat-matrix-protocol-script

A WeeChat script in Lua that implements the matrix.org chat protocol
349 stars 52 forks source link

Enabling Matrix encryption support #124

Open darnir opened 6 years ago

darnir commented 6 years ago

As the README mentions, this script currently implements only the old Olm encryption, while the matrix protocol has moved on to Megolm.

Now, I'm not a Lua programmer, but I have dabbled in it for writing scripts and extensions. My question is, what exactly is required to port this script to use the new encryption routines? From a brief glance, it looks like olm.lua is just a FFI wrapper to a C library. Is that all that is required for porting it to Megolm? If you could give me some pointers about this, I can probably try and implement the encryption support.

tulsileathers commented 6 years ago

Just bumping this to say I could also pitch in if needed

RX4NT9UP commented 6 years ago

I read the e2e support guide at https://matrix.org/docs/guides/e2e_implementation.html and it starts out:

End-to-end encryption in Matrix is based on the Olm and Megolm cryptographic ratchets. The recommended starting point for any client authors is with the libolm library, which contains implementations of all of the cryptographic primitives required. The library itself is written in C/C++, but is architected in a way which makes it easy to write wrappers for higher-level languages.

The libolm library is what olm.lua is already wrapping so it does seem to be a matter of updating the e2e implementation using the existing library. I'm not certain of the difficulty however.

gordon-quad commented 5 years ago

any news?

sachaz commented 5 years ago

ping ?

DO1JLR commented 5 years ago

I really hope there is progress here. I am not a expert in this topic but I realy whish this feature is comming. @torhve is there anything you can tell us about the matrix encryption?

@danir and @tulsileathers did you do anything?

GTNT-Github commented 1 year ago

super late and unlikely but anything?