sphinx_packet/
lib.rs

1// Copyright 2020 Nym Technologies SA
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#![warn(clippy::expect_used)]
16#![warn(clippy::unwrap_used)]
17#![warn(clippy::todo)]
18#![warn(clippy::dbg_macro)]
19
20pub mod constants;
21pub mod crypto;
22pub mod header;
23pub mod packet;
24pub mod payload;
25pub mod route;
26pub mod surb;
27mod utils;
28
29// cleaned-up modules + imports here:
30pub mod error;
31
32#[cfg(test)]
33pub mod test_utils;
34pub mod version;
35
36pub use crate::error::{Error, ErrorKind, Result};
37pub use crate::packet::{
38    builder::SphinxPacketBuilder, ProcessedPacket, ProcessedPacketData, SphinxPacket,
39};
40pub use crate::surb::{SURBMaterial, SURB};