Fix passphrase seed generation and use LibAuth vectors

This commit is contained in:
Jim Hamill
2025-06-23 11:47:48 +00:00
parent 294ec12da9
commit 9b785e2d73
2 changed files with 117 additions and 108 deletions
+3 -1
View File
@@ -270,7 +270,9 @@ export class Mnemonic {
* @returns The seed (for use with HDPrivateNodes).
*/
public toSeed(): Uint8Array {
return deriveSeedFromBip39Mnemonic(this.toPhrase());
return deriveSeedFromBip39Mnemonic(this.toPhrase(false), {
passphrase: this.getPassphrase(),
});
}
/**