Skip to content

Commit

Permalink
[WIP] Bernstein-Yang modular inversion algorithm
Browse files Browse the repository at this point in the history
Imported from: privacy-scaling-explorations/halo2curves#83

Original code is Apache 2.0+MIT. Attribution has been added to the top
of the module.
  • Loading branch information
tarcieri committed Dec 1, 2023
1 parent 31d9373 commit ff2bb22
Show file tree
Hide file tree
Showing 2 changed files with 437 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modular.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ mod reduction;
mod residue;

mod add;
mod bernstein_yang;
mod div_by_2;
mod inv;
mod mul;
Expand All @@ -31,6 +32,7 @@ mod sub;
pub(crate) mod boxed_residue;

pub use self::{
bernstein_yang::BYInverter,
dyn_residue::{DynResidue, DynResidueParams},
reduction::montgomery_reduction,
residue::{Residue, ResidueParams},
Expand Down
Loading

0 comments on commit ff2bb22

Please sign in to comment.