nym-mixnode-common 1.20.4

Common crate for Nym Mix Nodes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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),
}