Currently the doc is explaining a sort of encoding with key values pairs
The keys are encoded as a variable length integer tag where the 3 lowest bits indicates the type of the value: 0 for integers, 2 for strings....
And talking about tags 0x0A
, 0x10
, 0x22
Given that it is just plain protobuf, like 0xA
is 0| 0001 | 010
that is tag 1
and type 2
(bytes).
Probably we could just simplify and put the proto definitions:
package messages;
syntax = "proto3";
message PreKey {
bytes one_time_key = 1;
bytes base_key = 2;
bytes identity_key = 3;
bytes message = 4;
}
message Normal {
bytes ratchet_key = 1;
uint64 chain_index = 2;
bytes cipher_text = 4;
}
Hubert Chathi (98647448) at 23 Nov 20:08
release 3.2.16
Hubert Chathi (7e0c8277) at 23 Nov 20:08
release 3.2.16
Hubert Chathi (972faaad) at 22 Nov 02:26
use pypa/build instead of setup.py when building sdist
... and 1 more commit
Hubert Chathi (bbdac404) at 22 Nov 02:23
Hubert Chathi (bbdac404) at 22 Nov 02:23
Fix breakage in setuptools-69.0.0 by cleaning up setup.py
Patch received via email:
Hello,
Setuptools 69.0.0 deprecated a bunch stuff leading to a nasty errors during install.
File "/tmp/pip-build-env-w815o5v3/overlay/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py", line 183, in _license _set_config(dist, "license", val["text"]) ~~~^^^^^^^^ KeyError: 'text' [end of output]
version.py wasn't used anywhere except setup.py so removing and setting it all pyproject.toml is safe.
During this decided to move as much as I could out of setup.py, zip-safe has been obsolete for modern setuptools installation methods so dropped it.
Fixes the installation issue. The CI failure seems to be some infrastructure issue -- unrelated to this change, since it's failing in the JavaScript build. Builds wheels work fine, except with Python 3.6 from the manylinux images, which fails to understand the package name and version, and calls it UNKNOWN-0.0.0
. But this is probably OK, considering Python 3.6 is EOL for about 2 years already, and even Debian oldoldstable has Python 3.7. Will just need to tweak my build scripts to ignore the UNKNOWN-0.0.0
wheels.
Patch received via email:
Hello,
Setuptools 69.0.0 deprecated a bunch stuff leading to a nasty errors during install.
File "/tmp/pip-build-env-w815o5v3/overlay/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py", line 183, in _license _set_config(dist, "license", val["text"]) ~~~^^^^^^^^ KeyError: 'text' [end of output]
version.py wasn't used anywhere except setup.py so removing and setting it all pyproject.toml is safe.
During this decided to move as much as I could out of setup.py, zip-safe has been obsolete for modern setuptools installation methods so dropped it.
Hubert Chathi (4beb2487) at 21 Nov 21:12
JS packages are now uploaded to npmjs.com rather than gitlab.matrix...
... and 1 more commit
Hubert Chathi (bbdac404) at 21 Nov 21:09
Fix breakage in setuptools-69.0.0 by cleaning up setup.py
... and 2 more commits
Hubert Chathi (c2ccf54d) at 01 May 17:25
release 3.2.15
Hubert Chathi (66294cf7) at 01 May 17:25
release 3.2.15
Hubert Chathi (366520eb) at 27 Apr 23:53
aha, it's lowercase
Hubert Chathi (d27f1623) at 27 Apr 23:48
attempt to fix js build
Hubert Chathi (4b69958c) at 27 Apr 22:52
improve compatibility with Windows (though it still doesn't work)
Hubert Chathi (5cfe6c3d) at 27 Apr 21:20
more packaging improvements
Hubert Chathi (bbdc12c5) at 26 Apr 14:02
Merge branch 'master' of https://gitlab.matrix.org/matrix-org/olm
... and 4 more commits
Hubert Chathi (08804611) at 29 Mar 17:48
Correct message_index
type in return signature of `InboundGroupSe...
Thanks to Bruno for spotting this