6 #ifndef KAGOME_BIP39_PROVIDER_HPP 7 #define KAGOME_BIP39_PROVIDER_HPP 27 const std::vector<std::string> &word_list)
const = 0;
34 virtual outcome::result<bip39::Bip39Seed>
makeSeed(
35 gsl::span<const uint8_t> entropy, std::string_view password)
const = 0;
38 std::string_view mnemonic_phrase)
const = 0;
43 #endif // KAGOME_BIP39_PROVIDER_HPP virtual outcome::result< bip39::Bip39Seed > generateSeed(std::string_view mnemonic_phrase) const =0
virtual outcome::result< bip39::Bip39Seed > makeSeed(gsl::span< const uint8_t > entropy, std::string_view password) const =0
makes seed from entropy
virtual ~Bip39Provider()=default
virtual outcome::result< std::vector< uint8_t > > calculateEntropy(const std::vector< std::string > &word_list) const =0
calculates entropy from mnemonic