Skip to content

Instantly share code, notes, and snippets.

View Alex8Efremov's full-sized avatar

Александр Alex8Efremov

View GitHub Profile
@Alex8Efremov
Alex8Efremov / worked_rust
Last active October 3, 2022 20:40
for vlad
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,
@Alex8Efremov
Alex8Efremov / rust_keys
Created October 3, 2022 09:36
for rust community
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,
}