Kagome
Polkadot Runtime Engine in C++17
kagome::crypto::bip39::Mnemonic Struct Reference

#include <mnemonic.hpp>

Collaboration diagram for kagome::crypto::bip39::Mnemonic:

Static Public Member Functions

static outcome::result< Mnemonicparse (std::string_view phrase)
 parse mnemonic from phrase More...
 

Public Attributes

std::vector< std::string > words
 
std::string password
 

Detailed Description

Definition at line 19 of file mnemonic.hpp.

Member Function Documentation

outcome::result< Mnemonic > kagome::crypto::bip39::Mnemonic::parse ( std::string_view  phrase)
static

parse mnemonic from phrase

Parameters
phrasevalid utf8 list of words from bip-39 word list
Returns
Mnemonic instance

Definition at line 34 of file mnemonic.cpp.

Member Data Documentation

std::string kagome::crypto::bip39::Mnemonic::password

Definition at line 21 of file mnemonic.hpp.

std::vector<std::string> kagome::crypto::bip39::Mnemonic::words

Definition at line 20 of file mnemonic.hpp.


The documentation for this struct was generated from the following files: