Skip to content

Instantly share code, notes, and snippets.

View abhigit-saha's full-sized avatar
💭
building

Abhijit Saha abhigit-saha

💭
building
View GitHub Profile
@abhigit-saha
abhigit-saha / utils.py
Created July 26, 2025 14:10
Saving the BIP39 wordlists in a separate submodule and loading it on demand.
## Reference: https://github.com/SeedSigner/seedsigner/pull/714
## Note: the wordlists files will be stored at the seedsigner-translations submodule
## the path would be : /src/resources/seedsigner-translations/[lang-code]/wordlists/[lang-name]_list.py
import os
import ast
from seedsigner.models.settings_definition import SettingsConstants
def _load_wordlist_from_file(language_code: str) -> list:
"""
Load wordlist from file system path in seedsigner-translations submodule.