Election-Tech-Initiative / Election-Tech-Initiative/electionguard-python

🧮 Precompute Exponentiation Tables

オープン
#410 コメント 3 件 リアクション 0 件 担当者 1 名 @danwallach が担当を希望しています GitHub で見る
enhancement hacktoberfest help wanted
主要言語
Python
スター
168
フォーク
103
PR マージ指標
30日以内にマージされた PR はありません

説明

## Feature Request

**Description**

Build and use pre-computation tables to speed up exponentiations with base `g` (the generator) and base `K` (the election public key). The most important case here uses 8-bit tables which contain all powers of `g` and `K` of the form U times 256^V there `U` ranges from 0 through 255 and `V` ranges from 0 through 31. Each table will therefore include a total of 8192 entries – each of 4096 bits. This allows any 256-bit exponent of the base to be computed by multiplying together 32 table values.

An ideal implementation would generalize this approach and enable the construction and use of n-bit tables for variable n from, say, 1 through 16.

**Expected Benefit**

Use of n-bit tables should speed up exponentiations by a factor of up to `n`.

**Possible Architecture**
- Load from the file system
- Load from from memory

**Corresponding C++ Issue**
https://github.com/microsoft/electionguard-cpp/issues/184

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

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

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