From 2a2506f335e148a8c1064b2e4aa35d359abbe307 Mon Sep 17 00:00:00 2001 From: Maarten Zuidhoorn Date: Tue, 14 May 2024 12:02:28 +0200 Subject: [PATCH] Remove unneeded modular reduction in CIP-3 private key derivation --- src/derivers/cip3.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/derivers/cip3.ts b/src/derivers/cip3.ts index ad9aeba0..31a3daeb 100644 --- a/src/derivers/cip3.ts +++ b/src/derivers/cip3.ts @@ -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]); };