Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Bug: deriving private key will fail if index is larger than that of decryptedShares.length

オープン
#146 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
typescript
領域
cryptography

調査の方向性

src/helpers/nodeUtils.ts の 503 行付近から開始し、decryptedShares.length が kCombinations をどのように決定するかを調べます。インデックス [2,3,4] を使って閾値 3 のケースを再現し、最大インデックスが decryptedShares.length を超える場合に組み合わせ [2,3,4] が含まれることを確認します。

索引モデルが issue の本文から書いたものです。

説明

bug

Maximum index of decrypted shares should be used here instead of decryptedShares.length in order to get the correct kCombinations in all instances:

https://github.com/torusresearch/torus.js/blob/0160ae8fb4c622ba44c1e80872da2d17cb0e8650/src/helpers/nodeUtils.ts#L503

This is reproducible in the following scenario:

threshold = 3
decryptedShares.count = 3
indexes: [2,3,4]

kCombinations will not include a combination for [2,3,4]
主要言語
TypeScript
スター
23
フォーク
11
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MetaMask/torus.js のほかの issue

MetaMask/torus.js の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。