mirror of
https://github.com/markqvist/LXMF
synced 2026-11-27 13:52:19 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1bdcdf7f1 | ||
|
|
b7de273d16 | ||
|
|
11a9ea989f | ||
|
|
1ac9c3ad72 | ||
|
|
1e8ef437b9 |
No files matched your search
+670
-632
File diff suppressed because it is too large.
Load diff
@@ -20,14 +20,14 @@ LXMF messages are stored in a simple and efficient format, that's easy to parse
|
|||||||
|
|
||||||
##### And these rules:
|
##### And these rules:
|
||||||
|
|
||||||
1. A LXMF message is identified by it's __message-id__, which is a SHA-256 hash of the __Destination__, __Source__ and __Payload__. The message-id is never included directly in the message, since it can always be inferred from the message itself.
|
1. A LXMF message is identified by its __message-id__, which is a SHA-256 hash of the __Destination__, __Source__ and __Payload__. The message-id is never included directly in the message, since it can always be inferred from the message itself.
|
||||||
|
|
||||||
In some cases the actual message-id cannot be inferred, for example when a Propagation Node is storing an encrypted message for an offline user. In theses cases a _transient-id_ is used to identify the message while in storage or transit.
|
In some cases the actual message-id cannot be inferred, for example when a Propagation Node is storing an encrypted message for an offline user. In theses cases a _transient-id_ is used to identify the message while in storage or transit.
|
||||||
|
|
||||||
2. __Destination__, __Source__, __Signature__ and __Payload__ parts are mandatory, as is the __Timestamp__ part of the payload.
|
2. __Destination__, __Source__, __Signature__ and __Payload__ parts are mandatory, as is the __Timestamp__ part of the payload.
|
||||||
- The __Destination__ and __Source__ fields are Reticulum destination hashes
|
- The __Destination__ and __Source__ fields are 10-byte Reticulum destination hashes
|
||||||
- The __Signature__ field is a Ed25519 signature of the __Destination__, __Source__, __Payload__ and __message-id__
|
- The __Signature__ field is a 64-byte Ed25519 signature of the __Destination__, __Source__, __Payload__ and __message-id__
|
||||||
- The __Payload__ part is a list containing four items:
|
- The __Payload__ part is a [msgpacked](https://msgpack.org) list containing four items:
|
||||||
1. The __Timestamp__ is a double-precision floating point number representing the number of seconds since the UNIX epoch.
|
1. The __Timestamp__ is a double-precision floating point number representing the number of seconds since the UNIX epoch.
|
||||||
2. The __Content__ is the optional content or body of the message
|
2. The __Content__ is the optional content or body of the message
|
||||||
3. The __Title__ is an optional title for the message
|
3. The __Title__ is an optional title for the message
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="lxmf",
|
name="lxmf",
|
||||||
version="0.0.7",
|
version="0.0.8",
|
||||||
author="Mark Qvist",
|
author="Mark Qvist",
|
||||||
author_email="mark@unsigned.io",
|
author_email="mark@unsigned.io",
|
||||||
description="Lightweight Extensible Message Format for Reticulum",
|
description="Lightweight Extensible Message Format for Reticulum",
|
||||||
@@ -18,6 +18,6 @@ setuptools.setup(
|
|||||||
"License :: OSI Approved :: MIT License",
|
"License :: OSI Approved :: MIT License",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
],
|
],
|
||||||
install_requires=['rns>=0.2.1'],
|
install_requires=['rns>=0.2.3'],
|
||||||
python_requires='>=3.5',
|
python_requires='>=3.6',
|
||||||
)
|
)
|
||||||
Reference in new issue
Block a user