aboutsummaryrefslogblamecommitdiffstats
path: root/src/main.rs
blob: b45bdcf4d1041215a0ba68fa1489d55e93a86762 (plain) (tree)
1
2
3
4
5
6
7
8
9

                 
              
              
           
           

          
                   
 
                

                   


                                                         
 
                                            



                                     
 
#![feature(test)]

mod constants;
mod handshake;
mod router;
mod timers;
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 {}
}