e = e << 8n | BigInt(entropy[i])\r
}\r
\r
- let concatenation = (e << BigInt(entropy.byteLength) / 4n) | checksum\r
+ let concatenation: bigint = (e << BigInt(entropy.byteLength) / 4n) | checksum\r
const words: string[] = []\r
for (let i = 0; i < phraseLength; i++) {\r
const wordBits = concatenation & 2047n\r
const self = new this()\r
const isValid = await this.validate(phrase)\r
if (isValid) {\r
- self.#phrase = phrase.normalize('NFKD').split(' ')\r
+ self.#phrase = phrase.normalize('NFKD').toLowerCase().split(' ')\r
return self\r
} else {\r
throw new Error('Invalid mnemonic phrase.')\r