paas_api/
config.rs

1use crate::status::SystemId;
2use libpep::distributed::key_blinding::BlindedGlobalKeys;
3use libpep::high_level::keys::GlobalPublicKeys;
4use serde::{Deserialize, Serialize};
5
6#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
7/// The details of a single transcryptor
8pub struct TranscryptorConfig {
9    pub system_id: SystemId,
10    pub url: String,
11}
12#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
13/// The configuration of a PAAS system
14pub struct PAASConfig {
15    pub blinded_global_keys: BlindedGlobalKeys,
16    pub global_public_key: GlobalPublicKeys,
17    pub transcryptors: Vec<TranscryptorConfig>,
18}