pub struct NapiFpProverProof {
pub commitments: NapiFpProverCommitments,
pub proof: NapiFpOpeningProof,
pub evals: NapiFpProofEvaluations,
pub ft_eval1: NapiPastaFp,
pub public: NapiFlatVector<NapiPastaFp>,
pub prev_challenges_scalars: NapiVecVecFp,
pub prev_challenges_comms: NapiVector<NapiFpPolyComm>,
}Fields§
§commitments: NapiFpProverCommitments§proof: NapiFpOpeningProof§evals: NapiFpProofEvaluations§ft_eval1: NapiPastaFp§public: NapiFlatVector<NapiPastaFp>§prev_challenges_scalars: NapiVecVecFp§prev_challenges_comms: NapiVector<NapiFpPolyComm>Implementations§
Source§impl NapiFpProverProof
impl NapiFpProverProof
pub fn new( commitments: NapiFpProverCommitments, proof: NapiFpOpeningProof, evals: NapiFpProofEvaluations, ft_eval1: NapiPastaFp, public_: NapiFlatVector<NapiPastaFp>, prev_challenges_scalars: NapiVecVecFp, prev_challenges_comms: NapiVector<NapiFpPolyComm>, ) -> Self
pub fn commitments(&self) -> NapiFpProverCommitments
pub fn proof(&self) -> NapiFpOpeningProof
pub fn evals(&self) -> NapiFpProofEvaluations
pub fn ft_eval1(&self) -> NapiPastaFp
pub fn public_(&self) -> NapiFlatVector<NapiPastaFp>
pub fn prev_challenges_scalars(&self) -> NapiVecVecFp
pub fn prev_challenges_comms(&self) -> NapiVector<NapiFpPolyComm>
pub fn set_commitments(&mut self, commitments: NapiFpProverCommitments)
pub fn set_proof(&mut self, proof: NapiFpOpeningProof)
pub fn set_evals(&mut self, evals: NapiFpProofEvaluations)
pub fn set_ft_eval1(&mut self, ft_eval1: NapiPastaFp)
pub fn set_public_(&mut self, public_: NapiFlatVector<NapiPastaFp>)
pub fn set_prev_challenges_scalars( &mut self, prev_challenges_scalars: NapiVecVecFp, )
pub fn set_prev_challenges_comms( &mut self, prev_challenges_comms: NapiVector<NapiFpPolyComm>, )
pub fn serialize(&self) -> String
Trait Implementations§
Source§impl Clone for NapiFpProverProof
impl Clone for NapiFpProverProof
Source§fn clone(&self) -> NapiFpProverProof
fn clone(&self) -> NapiFpProverProof
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<&NapiFpProverProof> for (ProverProof<Vesta, OpeningProof<Vesta, FULL_ROUNDS>, FULL_ROUNDS>, Vec<Fp>)
impl From<&NapiFpProverProof> for (ProverProof<Vesta, OpeningProof<Vesta, FULL_ROUNDS>, FULL_ROUNDS>, Vec<Fp>)
Source§fn from(x: &NapiFpProverProof) -> Self
fn from(x: &NapiFpProverProof) -> Self
Converts to this type from the input type.
Source§impl From<(&ProverProof<Affine<VestaParameters>, OpeningProof<Affine<VestaParameters>, FULL_ROUNDS>, FULL_ROUNDS>, &Vec<Fp<MontBackend<FqConfig, 4>, 4>>)> for NapiFpProverProof
impl From<(&ProverProof<Affine<VestaParameters>, OpeningProof<Affine<VestaParameters>, FULL_ROUNDS>, FULL_ROUNDS>, &Vec<Fp<MontBackend<FqConfig, 4>, 4>>)> for NapiFpProverProof
Source§fn from(
(proof, public): (&ProverProof<Vesta, OpeningProof<Vesta, FULL_ROUNDS>, FULL_ROUNDS>, &Vec<Fp>),
) -> Self
fn from( (proof, public): (&ProverProof<Vesta, OpeningProof<Vesta, FULL_ROUNDS>, FULL_ROUNDS>, &Vec<Fp>), ) -> Self
Converts to this type from the input type.
Source§impl From<(ProverProof<Affine<VestaParameters>, OpeningProof<Affine<VestaParameters>, FULL_ROUNDS>, FULL_ROUNDS>, Vec<Fp<MontBackend<FqConfig, 4>, 4>>)> for NapiFpProverProof
impl From<(ProverProof<Affine<VestaParameters>, OpeningProof<Affine<VestaParameters>, FULL_ROUNDS>, FULL_ROUNDS>, Vec<Fp<MontBackend<FqConfig, 4>, 4>>)> for NapiFpProverProof
Source§fn from(
(proof, public): (ProverProof<Vesta, OpeningProof<Vesta, FULL_ROUNDS>, FULL_ROUNDS>, Vec<Fp>),
) -> Self
fn from( (proof, public): (ProverProof<Vesta, OpeningProof<Vesta, FULL_ROUNDS>, FULL_ROUNDS>, Vec<Fp>), ) -> Self
Converts to this type from the input type.
Source§impl From<NapiFpProverProof> for (ProverProof<Vesta, OpeningProof<Vesta, FULL_ROUNDS>, FULL_ROUNDS>, Vec<Fp>)
impl From<NapiFpProverProof> for (ProverProof<Vesta, OpeningProof<Vesta, FULL_ROUNDS>, FULL_ROUNDS>, Vec<Fp>)
Source§fn from(x: NapiFpProverProof) -> Self
fn from(x: NapiFpProverProof) -> Self
Converts to this type from the input type.
Source§impl FromNapiMutRef for NapiFpProverProof
impl FromNapiMutRef for NapiFpProverProof
Source§unsafe fn from_napi_mut_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static mut Self>
unsafe fn from_napi_mut_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static mut Self>
Safety Read more
Source§impl FromNapiRef for NapiFpProverProof
impl FromNapiRef for NapiFpProverProof
Source§unsafe fn from_napi_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static Self>
unsafe fn from_napi_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static Self>
Safety Read more
Source§impl FromNapiValue for NapiFpProverProof
impl FromNapiValue for NapiFpProverProof
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: Unknown<'_>) -> Result<Self, Error>
Source§impl JavaScriptClassExt for NapiFpProverProof
impl JavaScriptClassExt for NapiFpProverProof
fn into_instance<'scope>( self, env: &'scope Env, ) -> Result<ClassInstance<'scope, Self>>
fn into_reference(self, env: Env) -> Result<Reference<Self>>
fn instance_of<'env, V: JsValue<'env>>(env: &Env, value: &V) -> Result<bool>
Source§impl ToNapiValue for NapiFpProverProof
impl ToNapiValue for NapiFpProverProof
Source§unsafe fn to_napi_value(
env: napi_env,
val: NapiFpProverProof,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: NapiFpProverProof, ) -> Result<napi_value>
Safety Read more
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>, Error>
Source§impl TypeName for &NapiFpProverProof
impl TypeName for &NapiFpProverProof
Source§impl TypeName for &mut NapiFpProverProof
impl TypeName for &mut NapiFpProverProof
Source§impl TypeName for NapiFpProverProof
impl TypeName for NapiFpProverProof
Source§impl ValidateNapiValue for &NapiFpProverProof
impl ValidateNapiValue for &NapiFpProverProof
Auto Trait Implementations§
impl Freeze for NapiFpProverProof
impl RefUnwindSafe for NapiFpProverProof
impl Send for NapiFpProverProof
impl Sync for NapiFpProverProof
impl Unpin for NapiFpProverProof
impl UnsafeUnpin for NapiFpProverProof
impl UnwindSafe for NapiFpProverProof
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more