Skip to content

Commit

Permalink
Fix argument passing
Browse files Browse the repository at this point in the history
  • Loading branch information
mrruby committed Oct 31, 2023
1 parent 92112cb commit c36a165
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/lib/helpers/generate-keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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
});
Expand Down

0 comments on commit c36a165

Please sign in to comment.