0e38126fc5
* remove old packettype + fix: apply routing filter BEFORE delaying * updated sphinx crate for allow usage of reply tags * full pipeline for placeholder checking of packet replay * replay protection with batched insertion * running background task for clearing/flushing the BF * allow disabling the replay detection + cleanup * allow unwrap in bench code
16 lines
546 B
Rust
16 lines
546 B
Rust
// Copyright 2021 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
use nym_sphinx_acknowledgements::surb_ack::SurbAckRecoveryError;
|
|
use nym_sphinx_framing::processing::PacketProcessingError;
|
|
use thiserror::Error;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum MixProcessingError {
|
|
#[error("failed to recover the expected SURB-Ack packet: {0}")]
|
|
MalformedSurbAck(#[from] SurbAckRecoveryError),
|
|
|
|
#[error("failed to process received Nym packet: {0}")]
|
|
NymPacketProcessingError(#[from] PacketProcessingError),
|
|
}
|