pub struct NapiFpOpeningProof {
pub lr_0: NapiVector<NapiGVesta>,
pub lr_1: NapiVector<NapiGVesta>,
pub delta: NapiGVesta,
pub z1: NapiPastaFp,
pub z2: NapiPastaFp,
pub sg: NapiGVesta,
}Fields§
§lr_0: NapiVector<NapiGVesta>§lr_1: NapiVector<NapiGVesta>§delta: NapiGVesta§z1: NapiPastaFp§z2: NapiPastaFp§sg: NapiGVestaImplementations§
Source§impl NapiFpOpeningProof
impl NapiFpOpeningProof
pub fn new( lr_0: NapiVector<NapiGVesta>, lr_1: NapiVector<NapiGVesta>, delta: NapiGVesta, z1: NapiPastaFp, z2: NapiPastaFp, sg: NapiGVesta, ) -> Self
pub fn lr_0(&self) -> NapiVector<NapiGVesta>
pub fn lr_1(&self) -> NapiVector<NapiGVesta>
pub fn delta(&self) -> NapiGVesta
pub fn sg(&self) -> NapiGVesta
pub fn set_lr_0(&mut self, lr_0: NapiVector<NapiGVesta>)
pub fn set_lr_1(&mut self, lr_1: NapiVector<NapiGVesta>)
pub fn set_delta(&mut self, delta: NapiGVesta)
pub fn set_sg(&mut self, sg: NapiGVesta)
Trait Implementations§
Source§impl Clone for NapiFpOpeningProof
impl Clone for NapiFpOpeningProof
Source§fn clone(&self) -> NapiFpOpeningProof
fn clone(&self) -> NapiFpOpeningProof
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 Debug for NapiFpOpeningProof
impl Debug for NapiFpOpeningProof
Source§impl From<NapiFpOpeningProof> for OpeningProof<Vesta, FULL_ROUNDS>
impl From<NapiFpOpeningProof> for OpeningProof<Vesta, FULL_ROUNDS>
Source§fn from(x: NapiFpOpeningProof) -> Self
fn from(x: NapiFpOpeningProof) -> Self
Converts to this type from the input type.
Source§impl From<OpeningProof<Affine<VestaParameters>, FULL_ROUNDS>> for NapiFpOpeningProof
impl From<OpeningProof<Affine<VestaParameters>, FULL_ROUNDS>> for NapiFpOpeningProof
Source§fn from(x: OpeningProof<Vesta, FULL_ROUNDS>) -> Self
fn from(x: OpeningProof<Vesta, FULL_ROUNDS>) -> Self
Converts to this type from the input type.
Source§impl FromNapiMutRef for NapiFpOpeningProof
impl FromNapiMutRef for NapiFpOpeningProof
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 NapiFpOpeningProof
impl FromNapiRef for NapiFpOpeningProof
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 NapiFpOpeningProof
impl FromNapiValue for NapiFpOpeningProof
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 NapiFpOpeningProof
impl JavaScriptClassExt for NapiFpOpeningProof
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 NapiFpOpeningProof
impl ToNapiValue for NapiFpOpeningProof
Source§unsafe fn to_napi_value(
env: napi_env,
val: NapiFpOpeningProof,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: NapiFpOpeningProof, ) -> Result<napi_value>
Safety Read more
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>, Error>
Source§impl TypeName for &NapiFpOpeningProof
impl TypeName for &NapiFpOpeningProof
Source§impl TypeName for &mut NapiFpOpeningProof
impl TypeName for &mut NapiFpOpeningProof
Source§impl TypeName for NapiFpOpeningProof
impl TypeName for NapiFpOpeningProof
Source§impl ValidateNapiValue for &NapiFpOpeningProof
impl ValidateNapiValue for &NapiFpOpeningProof
Auto Trait Implementations§
impl Freeze for NapiFpOpeningProof
impl RefUnwindSafe for NapiFpOpeningProof
impl Send for NapiFpOpeningProof
impl Sync for NapiFpOpeningProof
impl Unpin for NapiFpOpeningProof
impl UnsafeUnpin for NapiFpOpeningProof
impl UnwindSafe for NapiFpOpeningProof
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