Fix passphrase seed generation and use LibAuth vectors
This commit is contained in:
@@ -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(),
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user