gent-daemon 0.2.1

Local daemon, storage and synchronization for Gent chat clusters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! An enrolled malicious writer can encrypt arbitrary bytes. Tests must prove
//! that authentic MLS transport alone cannot authorize a journal import.
use super::*;

pub(crate) fn publish(
    endpoint: &mut OrderedEndpoint<'_>,
    group: &[u8],
    body: &[u8],
    now: u64,
) -> Result<Packet> {
    endpoint.inner.transact_mode(now, true, |session| {
        let request = requests::allocate(session.db, group, body, None)?;
        publish_in(session, group, Purpose::Configuration, |session| {
            session.send(group, request, body)
        })
    })
}