|
|
The messaging client is a [BSP client](BSP) that synchronises private messages between pairs of devices.
|
|
|
|
|
|
### Group identifiers
|
|
|
|
|
|
The client's identifier is `org.briarproject.briar.messaging`.
|
|
|
|
|
|
The client uses a separate group for each pair of contacts. The [group descriptor](BSP#group-identifiers) is a [BDF list](BDF) containing the unique IDs of the contacts' identities, sorted in ascending order as byte strings.
|
|
|
|
|
|
### Message types
|
|
|
|
|
|
**PRIVATE_MESSAGE** - The content is a BDF list with one: `content` (string).
|
|
|
|
|
|
### Validity policy
|
|
|
|
|
|
* A private message is valid if it is well-formed.
|
|
|
|
|
|
### Storage policy
|
|
|
|
|
|
* All messages are stored.
|
|
|
|
|
|
### Sharing policy
|
|
|
|
|
|
* All local messages are shared. |