Compare commits

...
35 Commits
Author SHA1 Message Date
Mark Qvist 512a34e2c3 Updated log statement 2021-10-10 00:14:04 +02:00
Mark Qvist 934a208965 Implemented auto unpeering unreachable nodes 2021-10-09 23:24:35 +02:00
Mark Qvist d2bc7fc32e Cleanup 2021-10-08 17:59:33 +02:00
Mark Qvist ca18d067f2 Updated readme 2021-10-08 17:42:55 +02:00
Mark Qvist fbbda8153e Fixed invalid mutation in peer sync 2021-10-08 17:34:27 +02:00
Mark Qvist 831e91a87a Improved peer sync sequence 2021-10-08 17:05:11 +02:00
Mark Qvist 2a6c602e9b Updated logging 2021-10-08 15:25:24 +02:00
Mark Qvist f391b95597 Updated loglevels 2021-10-08 15:11:17 +02:00
Mark Qvist 71a9f16bde Fixed sync limit on path response re-trigger 2021-10-08 13:55:16 +02:00
Mark Qvist b2596bd561 Cleanup 2021-10-08 13:40:22 +02:00
Mark Qvist 0c34dae1af Implemented message store cleaning jobs 2021-10-08 13:03:14 +02:00
Mark Qvist 25bcba84d2 Added max messages per sync option 2021-10-08 11:57:52 +02:00
Mark Qvist 937ae70a85 Updated sync request handling 2021-10-08 09:13:02 +02:00
Mark Qvist 92b4aaaaee Updated storage configuration 2021-10-08 08:51:59 +02:00
Mark Qvist 156109bf0b Cleanup 2021-10-07 21:03:27 +02:00
Mark Qvist 9a75b9c1ec Implemented LXMF propagation peer sync and client downloads 2021-10-07 20:52:53 +02:00
Mark Qvist b675e1c47e Implemented LXMF propagation client request handlers 2021-10-07 18:12:54 +02:00
Mark Qvist f5cb49b46b Propagation node state save and restore 2021-10-03 21:00:28 +02:00
Mark Qvist 52dc086a26 Implemented propagation fundamentals 2021-10-03 18:49:40 +02:00
Mark Qvist 354e1932dc Sync sequence set up 2021-10-03 10:24:24 +02:00
Mark Qvist 093d4f1317 Implemented propagation node auto reverse peering 2021-10-03 10:15:29 +02:00
Mark Qvist 734305e9c7 General structure for LXMF propagation 2021-10-02 23:30:38 +02:00
Mark Qvist ad773dcbc5 General structure for LXMF propagation 2021-10-02 22:04:31 +02:00
Mark Qvist 1c5e879abd Updated version 2021-10-02 22:03:58 +02:00
Mark Qvist 7e34b201e1 Updated gitignore 2021-10-02 22:03:43 +02:00
Mark Qvist 335d9b1adf Updated size descriptions. 2021-09-04 11:03:00 +02:00
Mark Qvist 6cb3a23c9d Updated according to RNS API. 2021-09-03 23:27:21 +02:00
Mark Qvist 4d3e529e63 Updated according to RNS API. 2021-09-03 23:24:29 +02:00
Mark Qvist 3b0c2cac22 Updated versions. 2021-09-02 20:43:00 +02:00
Mark Qvist aa36f0ef6d Updated RNS API call. 2021-09-02 20:37:14 +02:00
Mark Qvist a1bdcdf7f1 Updated version. 2021-08-29 14:02:07 +02:00
Mark Qvist b7de273d16 Updated versions. 2021-08-28 20:10:31 +02:00
Mark Qvist 11a9ea989f Fixed indentation. 2021-08-28 15:57:22 +02:00
Mark Qvist 1ac9c3ad72 Added announce handler for faster initial link establishment. 2021-08-28 15:56:37 +02:00
Mark Qvist 1e8ef437b9 Implemented delivery as single packets over links. 2021-08-28 15:30:47 +02:00
4 changed files with 1668 additions and 642 deletions

No files matched your search

+1
View File
@@ -8,6 +8,7 @@ __pycache__/
*.so
# Distribution / packaging
RNS
.Python
build/
develop-eggs/
+1656 -633
View File
File diff suppressed because it is too large. Load diff
+8 -6
View File
@@ -1,7 +1,7 @@
Lightweight Extensible Message Format
==========
LXMF is a simple and flexible messaging format and delivery protocol that allows a wide variety of implementations, while using as little bandwidth as possible. It is built on top of [Reticulum](https://github.com/markqvist/reticulum) and offers zero-conf message routing, end-to-end encryption and Perfect Forward Secrecy by default.
LXMF is a simple and flexible messaging format and delivery protocol that allows a wide variety of implementations, while using as little bandwidth as possible. It is built on top of [Reticulum](https://github.com/markqvist/reticulum) and offers zero-conf message routing, end-to-end encryption and Forward Secrecy by default.
## Structure
@@ -20,14 +20,14 @@ LXMF messages are stored in a simple and efficient format, that's easy to parse
##### 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.
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 __Signature__ field is a Ed25519 signature of the __Destination__, __Source__, __Payload__ and __message-id__
- The __Payload__ part is a list containing four items:
- The __Destination__ and __Source__ fields are 10-byte Reticulum destination hashes
- The __Signature__ field is a 64-byte Ed25519 signature of the __Destination__, __Source__, __Payload__ and __message-id__
- 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.
2. The __Content__ is the optional content or body of the message
3. The __Title__ is an optional title for the message
@@ -53,6 +53,8 @@ LXMF offers flexibility to implement many different messaging schemes, ranging f
LXM Propagation Nodes offer a way to store and forward messages to users or endpoints that are not directly reachable at the time of message emission. Propagation Nodes can also provide infrastructure for distributed bulletin, news or discussion boards.
When Propagation Nodes exist on a Reticulum network, they will by default peer with each other and synchronise messages, automatically creating an encrypted, distributed message store. Users and other endpoints can retrieve messages destined for them from any available Propagation Nodes on the network.
## The LXM Router
The LXM Router handles transporting messages over a Reticulum network, managing delivery receipts, outbound and inbound queues, and is the point of API interaction for client programs. The LXM Router also implements functionality for acting as an LXMF Propagation Node.
@@ -95,7 +97,7 @@ The complete message overhead for LXMF is only 99 bytes, which in return gives y
## Caveat Emptor
LXMF is alpha software, and should be considered experimental. While it has been built with cryptography best-practices very foremost in mind, it _has not_ been externally security audited, and there could very well be privacy-breaking bugs. If you want to help out, or help sponsor an audit, please do get in touch.
LXMF is beta software, and should be considered experimental. While it has been built with cryptography best-practices very foremost in mind, it _has not_ been externally security audited, and there could very well be privacy-breaking bugs. If you want to help out, or help sponsor an audit, please do get in touch.
## Installation
+3 -3
View File
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setuptools.setup(
name="lxmf",
version="0.0.7",
version="0.1.1",
author="Mark Qvist",
author_email="mark@unsigned.io",
description="Lightweight Extensible Message Format for Reticulum",
@@ -18,6 +18,6 @@ setuptools.setup(
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=['rns>=0.2.1'],
python_requires='>=3.5',
install_requires=['rns>=0.2.8'],
python_requires='>=3.6',
)