aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
blob: 272c5e2f2094fdadc301ad375536a56d1cadf24c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#![feature(test)]

mod constants;
mod handshake;
mod router;
mod types;

use std::sync::Arc;

use sodiumoxide;
use types::KeyPair;

fn main() {
    // choose optimal crypto implementations for platform
    sodiumoxide::init().unwrap();

    let mut rdev = router::Device::new(8);

    let pref = rdev.new_peer();
}