Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commit f72371e

Browse files
Update toolchain (#84)
* update toolchain to non-prehistoric * fixes after toolchain bump
1 parent 9b63be7 commit f72371e

File tree

3 files changed

+9
-25
lines changed

3 files changed

+9
-25
lines changed

crates/shielder-circuits/src/config_builder.rs

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ use crate::{
1414
column_pool::{AccessColumn, ColumnPool, ConfigPhase, PreSynthesisPhase},
1515
consts::merkle_constants::WIDTH,
1616
gates::{
17-
is_point_on_curve::IsPointOnCurveGate, is_point_on_curve_affine::IsPointOnCurveAffineGate,
18-
membership::MembershipGate, points_add::PointsAddGate, scalar_multiply::ScalarMultiplyGate,
19-
sum::SumGate, to_affine::ToAffineGate, Gate,
17+
is_point_on_curve_affine::IsPointOnCurveAffineGate, membership::MembershipGate,
18+
points_add::PointsAddGate, scalar_multiply::ScalarMultiplyGate, sum::SumGate,
19+
to_affine::ToAffineGate, Gate,
2020
},
2121
instance_wrapper::InstanceWrapper,
2222
merkle::{MerkleChip, MerkleInstance},
@@ -37,7 +37,6 @@ pub struct ConfigsBuilder<'cs> {
3737
scalar_multiply: Option<ScalarMultiplyChip>,
3838
to_affine: Option<ToAffineChip>,
3939
to_projective: Option<ToProjectiveChip>,
40-
is_point_on_curve: Option<IsPointOnCurveGate>,
4140
is_point_on_curve_affine: Option<IsPointOnCurveAffineGate>,
4241
el_gamal_encryption: Option<ElGamalEncryptionChip>,
4342
note: Option<NoteChip>,
@@ -66,7 +65,6 @@ impl<'cs> ConfigsBuilder<'cs> {
6665
scalar_multiply: None,
6766
to_affine: None,
6867
to_projective: None,
69-
is_point_on_curve: None,
7068
is_point_on_curve_affine: None,
7169
el_gamal_encryption: None,
7270
note: None,
@@ -198,20 +196,6 @@ impl<'cs> ConfigsBuilder<'cs> {
198196
.expect("ToProjective chip is not configured")
199197
}
200198

201-
pub fn with_is_point_on_curve(mut self) -> Self {
202-
check_if_cached!(self, is_point_on_curve);
203-
self.is_point_on_curve = Some(IsPointOnCurveGate::create_gate(
204-
self.system,
205-
&mut self.advice_pool,
206-
));
207-
self
208-
}
209-
210-
pub fn is_point_on_curve_gate(&self) -> IsPointOnCurveGate {
211-
self.is_point_on_curve
212-
.expect("IsPointOnCurveGate is not configured")
213-
}
214-
215199
pub fn with_is_point_on_curve_affine(mut self) -> Self {
216200
check_if_cached!(self, is_point_on_curve_affine);
217201
self.is_point_on_curve_affine = Some(IsPointOnCurveAffineGate::create_gate(

crates/shielder-circuits/src/synthesizer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ struct SynthesizerImpl<'a, L: Layouter<Fr>> {
5252
advice_pool: &'a ColumnPool<Advice, SynthesisPhase>,
5353
}
5454

55-
impl<'a, L: Layouter<Fr>> Synthesizer for SynthesizerImpl<'a, L> {
55+
impl<L: Layouter<Fr>> Synthesizer for SynthesizerImpl<'_, L> {
5656
fn namespaced(&mut self, name: impl Into<String>) -> impl Synthesizer {
5757
SynthesizerImpl {
5858
layouter: self.layouter.namespace(|| name),
@@ -88,7 +88,7 @@ impl<'a, L: Layouter<Fr>> Synthesizer for SynthesizerImpl<'a, L> {
8888
}
8989

9090
/// Delegate `Layouter` implementation to the inner layouter.
91-
impl<'a, L: Layouter<Fr>> Layouter<Fr> for SynthesizerImpl<'a, L> {
91+
impl<L: Layouter<Fr>> Layouter<Fr> for SynthesizerImpl<'_, L> {
9292
type Root = L::Root;
9393

9494
fn assign_region<A, AR, N, NR>(&mut self, name: N, assignment: A) -> Result<AR, Error>
@@ -136,7 +136,7 @@ impl<'a, L: Layouter<Fr>> Layouter<Fr> for SynthesizerImpl<'a, L> {
136136
}
137137

138138
/// Delegate `AccessColumn` implementation to the inner advice pool.
139-
impl<'a, L: Layouter<Fr>> AccessColumn<Advice> for SynthesizerImpl<'a, L> {
139+
impl<L: Layouter<Fr>> AccessColumn<Advice> for SynthesizerImpl<'_, L> {
140140
fn get_any_column(&self) -> Column<Advice> {
141141
self.advice_pool.get_any_column()
142142
}

rust-toolchain.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
2-
channel = "nightly-2024-07-08"
3-
components = [ "rustfmt", "clippy", "rust-src" ]
4-
targets = [ "x86_64-unknown-linux-gnu" ]
2+
channel = "1.85.0"
3+
components = ["rustfmt", "clippy", "rust-src"]
4+
targets = ["x86_64-unknown-linux-gnu"]

0 commit comments

Comments
 (0)