tchain 0.1.3

A blockchain using proof of selection for mining
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::crypto::gen_key::gen_key;
pub use openssl::pkcs12::Pkcs12;
pub use openssl::ssl::{SslAcceptorBuilder, SslMethod, SslStream};
use std::path::Path;

pub fn setup_tls_server() {
    // Create key if not already there
    let key_path = Path::new("./.keys");

    if !key_path.exists() {
        gen_key();
    }
}