mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-03 19:53:40 +00:00
clippy: Add type definitions for complex types
This commit is contained in:
parent
75915f67ed
commit
95314d0f69
2 changed files with 9 additions and 10 deletions
|
|
@ -506,6 +506,8 @@ impl<C: CurveAffine> Evaluated<C> {
|
|||
}
|
||||
}
|
||||
|
||||
type ColumnPair<F> = (Polynomial<F, LagrangeCoeff>, Polynomial<F, LagrangeCoeff>);
|
||||
|
||||
/// Given a column of input values A and a column of table values S,
|
||||
/// this method permutes A and S to produce A' and S', such that:
|
||||
/// - like values in A' are vertically adjacent to each other; and
|
||||
|
|
@ -516,13 +518,7 @@ fn permute_column_pair<C: CurveAffine>(
|
|||
domain: &EvaluationDomain<C::Scalar>,
|
||||
input_column: &Polynomial<C::Scalar, LagrangeCoeff>,
|
||||
table_column: &Polynomial<C::Scalar, LagrangeCoeff>,
|
||||
) -> Result<
|
||||
(
|
||||
Polynomial<C::Scalar, LagrangeCoeff>,
|
||||
Polynomial<C::Scalar, LagrangeCoeff>,
|
||||
),
|
||||
Error,
|
||||
> {
|
||||
) -> Result<ColumnPair<C::Scalar>, Error> {
|
||||
let mut permuted_input_column = input_column.clone();
|
||||
|
||||
// Sort input lookup column values
|
||||
|
|
|
|||
|
|
@ -87,9 +87,12 @@ trait Query<F>: Sized {
|
|||
fn get_commitment(&self) -> Self::Commitment;
|
||||
}
|
||||
|
||||
fn construct_intermediate_sets<F: FieldExt, I, Q: Query<F>>(
|
||||
queries: I,
|
||||
) -> (Vec<CommitmentData<Q::Eval, Q::Commitment>>, Vec<Vec<F>>)
|
||||
type IntermediateSets<F, Q> = (
|
||||
Vec<CommitmentData<<Q as Query<F>>::Eval, <Q as Query<F>>::Commitment>>,
|
||||
Vec<Vec<F>>,
|
||||
);
|
||||
|
||||
fn construct_intermediate_sets<F: FieldExt, I, Q: Query<F>>(queries: I) -> IntermediateSets<F, Q>
|
||||
where
|
||||
I: IntoIterator<Item = Q> + Clone,
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue