1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// SPDX-License-Identifier: MIT OR Apache-2.0
//! Data-type agnostic interfaces for implementing sync protocols and managers which can be used
//! stand-alone or as part of the local-first stack provided by
//! [`p2panda-net`].
//!
//! Users can implement two-party sync protocols over a `Sink` / `Stream` pair with the `Protocol`
//! trait and a system for instantiating and orchestrating concurrent sync sessions with the
//! `Manager` trait.
//!
//! Concrete implementations for performing sync over p2panda append-only logs associated with a
//! generic topic can be found in the `manager` and `protocols` modules.
//!
//! For most high-level users [`p2panda-net`]
//! will be the entry point into local-first development with p2panda. Interfaces in this crate
//! are intended for cases where users want to integrate their own base convergent data-type and
//! sync protocols as a module in the
//! [`p2panda-net`] stack.
//!
//! [`p2panda-net`]: https://docs.rs/p2panda-net/latest/p2panda_net/
use VerifyingKey;
/// Configuration object for instantiating sync sessions.
/// Message sent to running sync sessions.
/// Events which are emitted from a manager.