storm/
lib.rs

1// Storm Core library: distributed storage & messaging for lightning network.
2//
3// Written in 2022 by
4//     Dr. Maxim Orlovsky <orlovsky@lnp-bp.org>
5//
6// Copyright (C) 2022 by LNP/BP Standards Association, Switzerland.
7//
8// You should have received a copy of the MIT License along with this software.
9// If not, see <https://opensource.org/licenses/MIT>.
10
11#[macro_use]
12extern crate amplify;
13#[macro_use]
14extern crate strict_encoding;
15#[cfg(feature = "serde")]
16#[macro_use]
17extern crate serde_crate as serde;
18#[macro_use]
19extern crate internet2;
20
21pub mod chunk;
22pub mod p2p;
23mod container;
24mod mesg;
25mod app;
26
27pub use app::{
28    StormApp, STORM_APP_CHAT, STORM_APP_RGB_CONTRACTS, STORM_APP_RGB_TRANSFERS,
29    STORM_APP_SEARCH, STORM_APP_STORAGE, STORM_APP_SYSTEM,
30    STORM_APP_VENDOR_MASK,
31};
32pub use chunk::{
33    Chunk, ChunkFullId, ChunkId, ChunkIdExt, TryFromChunk, TryToChunk,
34};
35pub use container::{
36    Container, ContainerFullId, ContainerHeader, ContainerId, ContainerInfo,
37    STORM_CONTAINER_ID_HRP,
38};
39pub use mesg::{Mesg, MesgId, Topic};