use std::sync::Arc;
use nym_sphinx_types::PrivateKey;
#[derive(Clone)]
pub struct SphinxPacketProcessor {
sphinx_key: Arc<PrivateKey>,
}
impl SphinxPacketProcessor {
pub fn new(sphinx_key: PrivateKey) -> Self {
SphinxPacketProcessor {
sphinx_key: Arc::new(sphinx_key),
}
}
pub fn sphinx_key(&self) -> &PrivateKey {
&self.sphinx_key
}
}