summaryrefslogtreecommitdiff
path: root/crates/tor-hsclient/src/keys.rs
blob: bb0551435321786fa24290250cfd62cffb29d2a4 (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, HsId};

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