Skip to content

Commit

Permalink
Remove unneeded modular reduction in CIP-3 private key derivation (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrtenz authored May 14, 2024
1 parent c863f2b commit eeae5aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/derivers/cip3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export const derivePrivateKey = async ({
// 8[ZL] + kPL
const childKl = add(trunc28Mul8(zl), parentKl);
// ZR + kPR
const childKr = add(zr, mod2Pow256(parentKr));
const childKr = add(zr, parentKr);
return concatBytes([childKl, childKr]);
};

Expand Down

0 comments on commit eeae5aa

Please sign in to comment.