aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
blob: eab4b616a401e89489db7eda925643b74efd3108 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#![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 router = router::Device::new(8);
    {
        let peer = router.new_peer();
    }
    loop {}
}