From 402b03d88d50c8d4ccb3b550dea606f88e6ab565 Mon Sep 17 00:00:00 2001 From: metalurgical <97008724+metalurgical@users.noreply.github.com> Date: Tue, 9 Jul 2024 11:05:29 +0200 Subject: [PATCH] fix: allow tss commits to be read when key not reconstructed. This is needed to be able to retrieve the TSS public key where the key is not reconstructed since it calls getTssCommits(). --- packages/tss/src/tss.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/tss/src/tss.ts b/packages/tss/src/tss.ts index f3d454e0..23247353 100644 --- a/packages/tss/src/tss.ts +++ b/packages/tss/src/tss.ts @@ -238,7 +238,6 @@ export class TKeyTSS extends ThresholdKey { * shares, as stored in Metadata. */ getTSSCommits(): Point[] { - if (!this.privKey) throw CoreError.default("tss pub cannot be returned until you've reconstructed tkey"); if (!this.metadata) throw CoreError.metadataUndefined(); const tssPolyCommits = this.metadata.tssPolyCommits[this.tssTag]; if (!tssPolyCommits) throw CoreError.default(`tss poly commits not found for tssTag ${this.tssTag}`);