Kagome
Polkadot Runtime Engine in C++17
kagome::crypto::Bip39Provider Class Referenceabstract

#include <bip39_provider.hpp>

Inheritance diagram for kagome::crypto::Bip39Provider:
Collaboration diagram for kagome::crypto::Bip39Provider:

Public Member Functions

virtual ~Bip39Provider ()=default
 
virtual outcome::result< std::vector< uint8_t > > calculateEntropy (const std::vector< std::string > &word_list) const =0
 calculates entropy from mnemonic More...
 
virtual outcome::result< bip39::Bip39SeedmakeSeed (gsl::span< const uint8_t > entropy, std::string_view password) const =0
 makes seed from entropy More...
 
virtual outcome::result< bip39::Bip39SeedgenerateSeed (std::string_view mnemonic_phrase) const =0
 

Detailed Description

seed from mnemonic wordlist

Definition at line 17 of file bip39_provider.hpp.

Constructor & Destructor Documentation

virtual kagome::crypto::Bip39Provider::~Bip39Provider ( )
virtualdefault

Member Function Documentation

virtual outcome::result<std::vector<uint8_t> > kagome::crypto::Bip39Provider::calculateEntropy ( const std::vector< std::string > &  word_list) const
pure virtual

calculates entropy from mnemonic

Parameters
correctmnemonic word list
Returns
entropy value

Implemented in kagome::crypto::Bip39ProviderImpl.

virtual outcome::result<bip39::Bip39Seed> kagome::crypto::Bip39Provider::generateSeed ( std::string_view  mnemonic_phrase) const
pure virtual
virtual outcome::result<bip39::Bip39Seed> kagome::crypto::Bip39Provider::makeSeed ( gsl::span< const uint8_t >  entropy,
std::string_view  password 
) const
pure virtual

makes seed from entropy

Parameters
entropyentropy array
Returns
seed bytes

Implemented in kagome::crypto::Bip39ProviderImpl.


The documentation for this class was generated from the following file: