From 0769f27d830319528c09c0065fc2e574b43e575b Mon Sep 17 00:00:00 2001 From: guru-web3 <105355858+guru-web3@users.noreply.github.com> Date: Wed, 21 Feb 2024 16:04:51 +0530 Subject: [PATCH] fix: cleanup --- packages/core/src/core.ts | 4 ++-- packages/core/src/metadata.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/core/src/core.ts b/packages/core/src/core.ts index eb85b63e1..7d0ca27ad 100644 --- a/packages/core/src/core.ts +++ b/packages/core/src/core.ts @@ -486,8 +486,8 @@ class ThresholdKey implements ITKey { // we need to add the pub key nonce to the tssPub const noncePub = ecCurve.keyFromPrivate(nonce.toString("hex")).getPublic(); const pubKeyPoint = ecCurve.keyFromPublic({ x: tssCommits[0].x.toString("hex"), y: tssCommits[0].y.toString("hex") }).getPublic(); - const dervicepubKeyPoint = pubKeyPoint.add(noncePub); - return new Point(dervicepubKeyPoint.getX().toString("hex"), dervicepubKeyPoint.getY().toString("hex")); + const devicePubKeyPoint = pubKeyPoint.add(noncePub); + return new Point(devicePubKeyPoint.getX().toString("hex"), devicePubKeyPoint.getY().toString("hex")); } return tssCommits[0]; } diff --git a/packages/core/src/metadata.ts b/packages/core/src/metadata.ts index c2222e239..2c1cde092 100644 --- a/packages/core/src/metadata.ts +++ b/packages/core/src/metadata.ts @@ -186,7 +186,6 @@ class Metadata implements IMetadata { tssNonce?: number; tssPolyCommits?: Point[]; factorPubs?: Point[]; - accountIndex?: number; factorEncs?: { [factorPubID: string]: FactorEnc; };