MCPcopy Create free account
hub / github.com/ElementsProject/lightning / read_mnemonic

Function read_mnemonic

tools/hsmtool.c:475–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473}
474
475static void read_mnemonic(char *mnemonic) {
476 /* Get words for the mnemonic language */
477 struct words *words;
478 get_words(&words);
479
480 /* Get mnemonic */
481 get_mnemonic(mnemonic);
482
483 if (bip39_mnemonic_validate(words, mnemonic) != 0) {
484 errx(ERROR_USAGE, "Invalid mnemonic: \"%s\"", mnemonic);
485 }
486}
487
488static int generate_hsm(const char *hsm_secret_path)
489{

Callers 2

generate_hsmFunction · 0.85
check_hsmFunction · 0.85

Calls 3

get_wordsFunction · 0.85
get_mnemonicFunction · 0.85
errxFunction · 0.85

Tested by

no test coverage detected