#include <entropy_accumulator.hpp>
provides entropy and checksum
Definition at line 31 of file entropy_accumulator.hpp.
kagome::crypto::bip39::EntropyAccumulator::EntropyAccumulator |
( |
size_t |
bits_count, |
|
|
size_t |
checksum_bits_count |
|
) |
| |
|
private |
- Parameters
-
bits_count | total bits count (depends on words count) |
checksum_bits_count | number of bits in checksum byte |
Definition at line 88 of file entropy_accumulator.cpp.
outcome::result< void > kagome::crypto::bip39::EntropyAccumulator::append |
( |
const EntropyToken & |
value | ) |
|
append a new entropy token
- Parameters
-
- Returns
- success or error if storage is full
Definition at line 67 of file entropy_accumulator.cpp.
outcome::result< uint8_t > kagome::crypto::bip39::EntropyAccumulator::calculateChecksum |
( |
| ) |
const |
outcome::result< EntropyAccumulator > kagome::crypto::bip39::EntropyAccumulator::create |
( |
size_t |
words_count | ) |
|
|
static |
create class instance
- Parameters
-
words_count | number of words in mnemonic phrase |
Definition at line 11 of file entropy_accumulator.cpp.
outcome::result< uint8_t > kagome::crypto::bip39::EntropyAccumulator::getChecksum |
( |
| ) |
const |
outcome::result< std::vector< uint8_t > > kagome::crypto::bip39::EntropyAccumulator::getEntropy |
( |
| ) |
const |
std::vector<uint8_t> kagome::crypto::bip39::EntropyAccumulator::bits_ |
|
private |
const size_t kagome::crypto::bip39::EntropyAccumulator::checksum_bits_count_ |
|
private |
const size_t kagome::crypto::bip39::EntropyAccumulator::total_bits_count_ |
|
private |
The documentation for this class was generated from the following files: