Last active
October 8, 2018 20:37
-
-
Save ilebedev/e0af309162c51e802f98ab6abe5fd4f8 to your computer and use it in GitHub Desktop.
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
#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