diff --git a/src/lib/helpers/generate-keys.ts b/src/lib/helpers/generate-keys.ts index 978aee2..d50e9d4 100644 --- a/src/lib/helpers/generate-keys.ts +++ b/src/lib/helpers/generate-keys.ts @@ -18,14 +18,10 @@ export async function generateKeys(passphrase: string) { ]); const revocationDerivationPath = 0; - const encodedRevocationBytes = await derive( - revocationDerivationPath, - 'revocationRoot', - passphrase - ); + const encodedRevocationBytes = await derive(revocationDerivationPath, 'revocationRoot'); const deviceNumber = 1; - const encodedDeviceBytes = await derive(deviceNumber, 'deviceRoot', passphrase); + const encodedDeviceBytes = await derive(deviceNumber, 'deviceRoot'); master.zero(); @@ -35,7 +31,7 @@ export async function generateKeys(passphrase: string) { revocation: encodedRevocationBytes }; - async function derive(derivationPath, bundleType, passphrase) { + async function derive(derivationPath, bundleType) { const root = master.derive(derivationPath, { bundle_type: bundleType });