Implement add_keypair semantics

This commit is contained in:
Mathias Hall-Andersen
2019-08-13 19:42:05 +02:00
parent 723a1b8e85
commit 657a1ccb44
5 changed files with 141 additions and 28 deletions

View File

@@ -4,12 +4,16 @@ mod handshake;
mod router;
mod types;
use sodiumoxide;
use std::sync::Arc;
use handshake::Device;
use sodiumoxide;
use types::KeyPair;
fn main() {
// choose optimal crypto implementations for platform
sodiumoxide::init().unwrap();
let mut rdev = router::Device::new();
let pref = rdev.add();
}