nodedb-types 0.1.0

Portable type definitions shared between NodeDB Origin and NodeDB-Lite
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: Apache-2.0

pub mod crypto;
pub mod read;
pub mod types;
pub mod write;

pub use crypto::parse_encrypted;
pub use read::parse;
pub use types::{
    DEFAULT_MAX_SECTION_BYTES, DEFAULT_MAX_TOTAL_BYTES, HEADER_LEN, MAGIC,
    SECTION_ORIGIN_CATALOG_ROWS, SECTION_ORIGIN_SOURCE_TOMBSTONES, SECTION_OVERHEAD, TRAILER_LEN,
    VERSION,
};
pub use types::{
    Envelope, EnvelopeError, EnvelopeMeta, Section, SourceTombstoneEntry, StoredCollectionBlob,
};
pub use write::EnvelopeWriter;