Bip85 Functions
-
int bip85_get_languages(char **output)
Get the list of default supported languages.
Note
The string returned should be freed using
wally_free_string
.- Returns:
See Error Codes
-
int bip85_get_bip39_entropy(const struct ext_key *hdkey, const char *lang, uint32_t num_words, uint32_t index, unsigned char *bytes_out, size_t len, size_t *written)
Generate bip39 mnemonic entropy according to bip85.
- Parameters:
hdkey – The parent extended key to derive entropy from.
lang – The intended language. Pass NULL to use the default English value.
num_words – The intended number of words. Must be 12, 18 or 24.
index – The index used to create the entropy. Must be less than
BIP32_INITIAL_HARDENED_CHILD
.bytes_out – Where to store the resulting entropy.
len – Size of
bytes_out
. PassingHMAC_SHA512_LEN
will ensure the buffer is large enough.written – Number of bytes in
bytes_out
to be used as entropy.
- Returns: