Skip to content

Instantly share code, notes, and snippets.

@ilebedev
Last active October 8, 2018 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ilebedev/e0af309162c51e802f98ab6abe5fd4f8 to your computer and use it in GitHub Desktop.
Save ilebedev/e0af309162c51e802f98ab6abe5fd4f8 to your computer and use it in GitHub Desktop.
#include <ed25519/ed25519.h>
uint8_t pk[32];
uint8_t sk[64];
/* This seed is as valuable as the secret key! */
uint8_t secret_entropy[64];
/* NOTE: we assume some application-dependent source of trusted entropy */
get_trusted_entropy(secret_entropy, 64);
ed25519_create_keypair(pk, sk, secret_entropy);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment