2.4 KiB
+++ title = "Olm 3.0.0 released!" path = "/blog/2018/10/25/olm-3-0-0-released"
[taxonomies] author = ["Hubert Chathi"] category = ["Tech"] +++
Olm 3.0.0 has been released, which features several big changes. It can be downloaded from https://git.matrix.org/git/olm/. The npm package for JavaScript can be downloaded from https://matrix.org/packages/npm/olm/olm-3.0.0.tgz
Python
The biggest change is the merge of poljar's improved Python bindings. These bindings should be much easier to use for Python programmers, and are used by Zil0's E2E support in the Matrix Python SDK.
Since the binding API has changed, existing Python code will need to be rewritten in order to work with this release.
poljar has also included comprehensive documentation for the new API.
CMake
mujx contributed support for building olm using CMake. This should allow for easier building on different platforms. Currently the library can be built using either make or CMake. In the future, make support may be removed.
JavaScript
The JavaScript bindings now use WebAssembly by default. WebAssembly is much faster than the previous asm.js build, and is supported by recent versions of the most popular browsers. For compatibility with browsers that do not support WebAssembly, the asm.js version is still provided.
Due to adding support for WebAssembly, the API had to be changed slightly.
There is now an init
function that must be called before the library can be used. This function will return a promise that will resolve once the library is ready to be used. The matrix-js-sdk has not yet been updated to do this, so users of matrix-js-sdk should continue using olm 2.x until it has been updated.
Key backups
The public key API has been updated to support the proposal for server-side key backups. More details on how to use these functions will be published in the future.