summaryrefslogtreecommitdiff
path: root/crates/tor-hsclient/src/keys.rs
blob: f189b3f6e2ea7873ff5cffe7b4f31998034ac3d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
//! Manage a set of private keys for a client to authenticate to one or more
//! onion services.

use std::{collections::HashMap, sync::Mutex};

use tor_hscrypto::pk::{ClientSecretKeys, OnionId};

pub(crate) struct Keys {
    /// The
    keys: Mutex<HashMap<OnionId, ClientSecretKeys>>,
}