Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Implement signed digit-recoding #141

Open
einar-taiko opened this issue Aug 24, 2023 · 0 comments
Open

Implement signed digit-recoding #141

einar-taiko opened this issue Aug 24, 2023 · 0 comments
Assignees

Comments

@einar-taiko
Copy link

Describe the feature you would like

This issue tracks the progress of https://github.com/privacy-scaling-explorations/halo2/issues/187

(mandatory, 1/2 buckets memory requirement) implement signed digit-recoding. wNAF that everyone uses is problematic, it requires precomputation and allocation of all the recoded scalar ahead of times. This is extra memory usage, extra latency, hard to port to GPU. wNAF has 2 draws: being signed recoding so using 2x less space than unsigned, and optimally maximizing the chance of adding zero, i.e. "no cost". But in MSM that second part basically never happens because the number of bits we look at at once grows up to c=16 (or k=16 in Halo2 usual denomiation). Instead Booth encoding can be used for to provide 1, with no precomputation, drastically reducing memory usage.

Additional context

No response

@einar-taiko einar-taiko self-assigned this Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: 📝 Todo
Development

No branches or pull requests

1 participant