mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-05 20:10:32 +00:00
Use map_err() when handling multiopen::Proof::create()
Co-authored-by: Daira Hopwood <daira@electriccoin.co>
This commit is contained in:
parent
5181ca56f1
commit
89fd6e4d44
1 changed files with 16 additions and 18 deletions
|
|
@ -551,9 +551,10 @@ impl<C: CurveAffine> Proof<C> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Ok(multiopening) =
|
let multiopening =
|
||||||
multiopen::Proof::create(params, &mut transcript, &mut transcript_scalar, instances)
|
multiopen::Proof::create(params, &mut transcript, &mut transcript_scalar, instances)
|
||||||
{
|
.map_err(|_| Error::OpeningError)?;
|
||||||
|
|
||||||
Ok(Proof {
|
Ok(Proof {
|
||||||
advice_commitments,
|
advice_commitments,
|
||||||
h_commitments,
|
h_commitments,
|
||||||
|
|
@ -567,8 +568,5 @@ impl<C: CurveAffine> Proof<C> {
|
||||||
h_evals,
|
h_evals,
|
||||||
multiopening,
|
multiopening,
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
Err(Error::OpeningError)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue