tlsn_core/config/
tls_commit.rs1pub mod mpc;
4pub mod proxy;
5
6use crate::config::tls_commit::{mpc::MpcTlsConfig, proxy::ProxyTlsConfig};
7use serde::{Deserialize, Serialize};
8
9#[derive(Debug, Clone, Serialize, Deserialize)]
11#[non_exhaustive]
12pub enum TlsCommitConfig {
13 Mpc(MpcTlsConfig),
15 Proxy(ProxyTlsConfig),
17}
18
19impl From<MpcTlsConfig> for TlsCommitConfig {
20 fn from(value: MpcTlsConfig) -> Self {
21 Self::Mpc(value)
22 }
23}
24
25impl From<ProxyTlsConfig> for TlsCommitConfig {
26 fn from(value: ProxyTlsConfig) -> Self {
27 Self::Proxy(value)
28 }
29}