Convert between raw bytes and BIP39 Word list. See: https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki.
◆ tf_bip39_bytes_to_words()
bool tf_bip39_bytes_to_words |
( |
const uint8_t * |
bytes, |
|
|
size_t |
bytes_size, |
|
|
char * |
out_words, |
|
|
size_t |
words_size |
|
) |
| |
Convert a key from bytes to words.
- Parameters
-
| bytes | A raw binary representation of a key. |
| bytes_size | The size of bytes. |
[out] | out_words | A human-readable English word representation of a key. |
| words_size | The size of the out_words buffer. |
- Returns
- True if the key was successfully converted.
◆ tf_bip39_words_to_bytes()
bool tf_bip39_words_to_bytes |
( |
const char * |
words, |
|
|
uint8_t * |
out_bytes, |
|
|
size_t |
bytes_size |
|
) |
| |
Convert a key from words to bytes.
- Parameters
-
| words | A space-separated list of English words forming a key. |
[out] | out_bytes | A buffer to receive the raw binary form of the key. |
| bytes_size | The size of the out_bytes buffer. |
- Returns
- True if the key was successfully converted.