This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate rand; | |
extern crate ed25519_dalek; | |
use rand::rngs::OsRng; | |
use sha2::Sha512; | |
use ed25519_dalek::KEYPAIR_LENGTH; | |
#[derive(Debug)] | |
pub struct PublicKey { | |
pub inner: ed25519_dalek::PublicKey, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate rand; | |
extern crate ed25519_dalek; | |
extern crate base64; | |
use rand::rngs::OsRng; | |
use sha2::Sha512; | |
use uuid::Uuid; | |
#[derive(Debug)] | |
pub struct PublicKey { | |
pub inner: ed25519_dalek::PublicKey, |