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.
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.luais 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.