summaryrefslogtreecommitdiffstats
path: root/src/main.rs
blob: 22e1585104efdbc14424bf01e80f00947dfc80dc (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 handshake;
mod platform;
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.add();
}