6 #ifndef KAGOME_CRYPTO_BIP39_ENTROPY_HPP 7 #define KAGOME_CRYPTO_BIP39_ENTROPY_HPP 9 #include <boost/assert.hpp> 37 static outcome::result<EntropyAccumulator> create(
size_t words_count);
49 outcome::result<std::vector<uint8_t>> getEntropy()
const;
55 outcome::result<uint8_t> getChecksum()
const;
78 #endif // KAGOME_CRYPTO_BIP39_ENTROPY_HPP OUTCOME_HPP_DECLARE_ERROR(kagome::crypto::bip39, Bip39EntropyError)
static common::Buffer calculateChecksum(gsl::span< uint8_t, kSs58Length-kSs58ChecksumLength > ss58_address, const crypto::Hasher &hasher)
std::vector< uint8_t > bits_
const size_t checksum_bits_count_
const size_t total_bits_count_