1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use std::net::SocketAddr;

use anyhow::Result;
use clap::Parser;
use tracing_subscriber::EnvFilter;

use seec::mul_triple::boolean::trusted_seed_provider::TrustedMTProviderServer;

/// Example usage of the `TrustedMTProviderServer`.
#[derive(Parser, Debug)]
struct Args {
    /// <IP>:<Port> the trusted party MT provider should listen on
    #[clap(long)]
    address: SocketAddr,
}

#[tokio::main]
async fn main() -> Result<()> {
    tracing_subscriber::fmt()
        .with_env_filter(EnvFilter::from_default_env())
        .init();
    let args = Args::parse();

    TrustedMTProviderServer::start(args.address).await?;
    Ok(())
}