TonMnemonicEntropyGenerator class
The TonMnemonicEntropyGenerator class extends EntropyGenerator to provide specific entropy generation functionalities tailored for TON mnemonic phrases.
- Inheritance
-
- Object
- EntropyGenerator
- TonMnemonicEntropyGenerator
Constructors
- TonMnemonicEntropyGenerator(int bitLen)
- Constructor initializing the base EntropyGenerator with the given bit length.
Properties
Methods
-
generate(
) → List< int> -
Generates random entropy based on the bit length provided at initialization.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
isValidEntropyBitLen(
int bitLen) → bool - Validates if the given bit length for entropy is within the acceptable range (88 to 528 bits).
-
isValidEntropyByteLen(
int byteLen) → bool - Validates if the given byte length for entropy corresponds to a valid bit length.