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.
StaticisStaticofGenerates a BIP39 Mnemonic Words phrase using the specified wordlist size and random generator.
The number of words to generate the mnemonic.
OptionalrandomGenerator: ((numberOfBytes: WordListRandomGeneratorSizeInBytes) => Uint8Array<ArrayBufferLike>)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.StatictoDerives a private key for the given mnemonic words and derivation path.
An array of mnemonic words used to generate the private key.
Optionalpath: string = ...The BIP32 derivation path to derive the private key.
The derived private key as a Uint8Array.
Security auditable method, depends on HDKey.
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