#pragma once

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

int generate_mnemonic_12(char *out, size_t out_len);
int mnemonic_to_seed(const char *mnemonic, uint8_t seed[64]);
int mnemonic_validate(const char *mnemonic);
size_t mnemonic_words_for_letter(char letter, size_t *out_start);
size_t mnemonic_words_with_prefix(const char *prefix, uint16_t *out_indices, size_t max_out);
bool mnemonic_letter_extends_prefix(const char *prefix, size_t prefix_len, char next_letter);
const char *mnemonic_word_at(size_t index);
