Skip to content

Commit

Permalink
fix: allow tss commits to be read when key not reconstructed.
Browse files Browse the repository at this point in the history
This is needed to be able to retrieve the TSS public key where the key is not reconstructed since it calls getTssCommits().
  • Loading branch information
metalurgical committed Jul 9, 2024
1 parent 33166a6 commit 402b03d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/tss/src/tss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit 402b03d

Please sign in to comment.