Throws an exception because the mnemonic cannot be represented as a big integer.
The BigInt representation of the mnemonic.
The mnemonic cannot be represented as a bigint. VeChainDataModel#bi
Generates a mnemonic as encoded bytes.
The bytes representation of the words with spaces.
Throws an exception because the mnemonic cannot be represented as a number.
The number representation of the mnemonic.
The mnemonic cannot be represented as a number. VeChainDataModel#n
There is no comparison for a mnemonic.
There is no comparison for a mnemonic.
Static
isStatic
ofGenerates a BIP39 Mnemonic Words phrase using the specified wordlist size and random generator.
The number of words to generate the mnemonic.
Optional
randomGenerator: ((numberOfBytes: WordListRandomGeneratorSizeInBytes) => Uint8Array)The random generator function used to generate the entropy.
The generated mnemonic.
Security auditable method, depends on
randomGenerator
- Must provide a cryptographic secure source of entropy
else any secure audit certification related with this software is invalid.Static
toDerives a private key from a given list of BIP39 Mnemonic Words and a derivation path as in the examples.
The set of words used for mnemonic generation.
Optional
path: string = HDKey.VET_DERIVATION_PATHThe derivation path from the current node.
The Mnemonic class provides functionality related to mnemonic phrases, including encoding to bytes, generating, validating, and deriving keys from mnemonic words based on the BIP39 standard. It implements the VeChainDataModel interface.
Implements
VeChainDataModel