The Wayback Machine - https://web.archive.org/web/20200707025807/https://github.com/topics/ed25519
Skip to content
#

ed25519

Here are 175 public repositories matching this topic...

nic-hartley
nic-hartley commented Feb 23, 2020

I'm using ed25519-dalek for keygen, signing, and verification, and x25519 for ECDH. How do I convert secret public keys between them?

Take this naive attempt -- it seems like this works fine:

extern crate ed25519_dalek;
extern crate x25519_dalek;
extern crate rand;

use rand::prelude::*;

fn main() {
    let edkey1 = ed25519_dalek::Keypair::generate(&mut thread_rng()).public;

Improve this page

Add a description, image, and links to the ed25519 topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the ed25519 topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.