Created
September 17, 2018 07:43
-
-
Save ilebedev/1221bf50c41ccd8d10e01774ffd83c2d 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
uint8_t secret_entropy[64]; | |
uint8_t pk[32]; | |
uint8_t sk[64]; | |
#include <ed25519/ed25519.h> | |
/* This seed is as valuable as the secret key, | |
so make sure it comes from a trustworthy source | |
and will remian private. */ | |
// Read/generate the secret seed from which keys are created | |
// TODO: get_trusted_entropy(secret_entropy); | |
// generate manufacturer's keys | |
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