Compare commits

...

4 Commits

Author SHA1 Message Date
str4d 2ce8e263ef
Merge 2474bdb4f6 into 7df93fd855 2024-03-01 11:27:10 -07:00
Daira-Emma Hopwood 7df93fd855
Merge pull request #814 from adria0/fix/mdbook
Fix MD book generation
2024-02-26 23:50:17 +00:00
adria0 daaa638966 fix(mdbook): fix generation 2024-02-22 22:28:36 +01:00
Jack Grigg 2474bdb4f6 Migrate to `group::CurveAffine` 2023-07-30 14:27:22 +00:00
10 changed files with 19 additions and 12 deletions

View File

@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: '1.76.0'
override: true
# - name: Setup mdBook
@ -26,7 +26,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: install
args: mdbook --git https://github.com/HollowMan6/mdBook.git --rev 62e01b34c23b957579c04ee1b24b57814ed8a4d5
args: mdbook --git https://github.com/HollowMan6/mdBook.git --rev 5830c9555a4dc051675d17f1fcb04dd0920543e8
- name: Install mdbook-katex and mdbook-pdf
uses: actions-rs/cargo@v1
@ -40,6 +40,11 @@ jobs:
- name: Build halo2 book
run: mdbook build book/
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-10-05
override: true
- name: Build latest rustdocs
uses: actions-rs/cargo@v1
with:

View File

@ -4,3 +4,7 @@ members = [
"halo2_gadgets",
"halo2_proofs",
]
[patch.crates-io]
group = { git = "https://github.com/zkcrypto/group.git", rev = "696c2128529b5a9e18eed46d1da531753695db04" }
pasta_curves = { git = "https://github.com/zcash/pasta_curves.git", rev = "fb643a4e5ea25e035af758595f903b4002b0b7a3" }

View File

@ -14,8 +14,6 @@ title = "The halo2 Book"
macros = "macros.txt"
renderers = ["html"]
[output.katex]
[output.html]
[output.html.print]

View File

@ -578,7 +578,7 @@ impl<C: CurveAffine, EccChip: EccInstructions<C>> FixedPointShort<C, EccChip> {
#[cfg(test)]
pub(crate) mod tests {
use ff::PrimeField;
use group::{prime::PrimeCurveAffine, Curve, Group};
use group::{Curve, CurveAffine, Group};
use halo2_proofs::{
circuit::{Layouter, SimpleFloorPlanner, Value},

View File

@ -8,7 +8,7 @@ use crate::{
use arrayvec::ArrayVec;
use ff::PrimeField;
use group::prime::PrimeCurveAffine;
use group::CurveAffine as _;
use halo2_proofs::{
circuit::{AssignedCell, Chip, Layouter, Value},
plonk::{Advice, Assigned, Column, ConstraintSystem, Error, Fixed},

View File

@ -325,7 +325,7 @@ impl Config {
#[cfg(test)]
pub mod tests {
use group::{prime::PrimeCurveAffine, Curve};
use group::{Curve, CurveAffine};
use halo2_proofs::{
circuit::{Layouter, Value},
plonk::Error,

View File

@ -1,6 +1,6 @@
use super::{EccPoint, NonIdentityEccPoint};
use group::prime::PrimeCurveAffine;
use group::CurveAffine as _;
use halo2_proofs::{
circuit::{AssignedCell, Region, Value},

View File

@ -127,7 +127,7 @@ where
{
use crate::sinsemilla::primitives::{K, S_PERSONALIZATION};
use group::{prime::PrimeCurveAffine, Curve};
use group::{Curve, CurveAffine};
use pasta_curves::arithmetic::CurveExt;
let field_elems: Value<Vec<_>> = message

View File

@ -1,6 +1,6 @@
use std::ops::Add;
use group::{cofactor::CofactorCurveAffine, Group};
use group::{CurveAffine, Group};
use pasta_curves::pallas;
use subtle::{ConstantTimeEq, CtOption};

View File

@ -8,7 +8,7 @@ use crate::arithmetic::{best_fft, best_multiexp, parallelize, CurveAffine, Curve
use crate::helpers::CurveRead;
use ff::{Field, PrimeField};
use group::{prime::PrimeCurveAffine, Curve, Group};
use group::{Curve, Group};
use std::ops::{Add, AddAssign, Mul, MulAssign};
mod msm;
@ -74,7 +74,7 @@ impl<C: CurveAffine> Params<C> {
// Let's evaluate all of the Lagrange basis polynomials
// using an inverse FFT.
let mut alpha_inv = <<C as PrimeCurveAffine>::Curve as Group>::Scalar::ROOT_OF_UNITY_INV;
let mut alpha_inv = <C::Curve as Group>::Scalar::ROOT_OF_UNITY_INV;
for _ in k..C::Scalar::S {
alpha_inv = alpha_inv.square();
}