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

🧮 Precompute Exponentiation Tables

Đang mở
#410 3 bình luận 0 reaction 1 người được giao Được @danwallach nhận Xem trên GitHub
enhancement hacktoberfest help wanted
Ngôn ngữ chính
Python
Star
168
Fork
103
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.