add function to retrieve mnemonic wordlist

pull/25/head
Pavol Rusnak 10 years ago
parent b5ceb14f8d
commit 10c42633fc

@ -73,3 +73,8 @@ void mnemonic_to_seed(const char *mnemonic, const char *passphrase, uint8_t seed
saltlen += 8;
pbkdf2((const uint8_t *)mnemonic, strlen(mnemonic), salt, saltlen, PBKDF2_ROUNDS, seed, 512 / 8);
}
const char **mnemonic_wordlist(void)
{
return wordlist;
}

@ -9,4 +9,6 @@ const char *mnemonic_from_data(const uint8_t *data, int len);
void mnemonic_to_seed(const char *mnemonic, const char *passphrase, uint8_t seed[512 / 8]);
const char **mnemonic_wordlist(void);
#endif

Loading…
Cancel
Save