Skip to content

sgns::crypto::bip39::Dictionary

Stores the BIP-39 word list and maps words to entropy tokens. More...

#include <dictionary.hpp>

Public Functions

Name
void initialize()
initializes dictionary
outcome::result< EntropyToken > findValue(std::string_view word)
looks for word in dictionary

Detailed Description

class sgns::crypto::bip39::Dictionary;

Stores the BIP-39 word list and maps words to entropy tokens.

Currently only the English word list is supported.

Public Functions Documentation

function initialize

void initialize()

initializes dictionary

function findValue

outcome::result< EntropyToken > findValue(
    std::string_view word
)

looks for word in dictionary

Parameters:

  • word word to look for

Return: entropy value or error if not found


Updated on 2026-03-04 at 13:10:43 -0800