Struct noah_api::setup::VerifierParamsCommon
source · pub struct VerifierParamsCommon {
pub pcs: KZGCommitmentSchemeBLS,
pub cs: TurboVerifyCS,
pub verifier_params: PlonkVK<KZGCommitmentSchemeBLS>,
}Expand description
The verifier common parameters.
Fields§
§pcs: KZGCommitmentSchemeBLSThe shrunk version of the polynomial commitment scheme.
cs: TurboVerifyCSThe shrunk version of the constraint system.
verifier_params: PlonkVK<KZGCommitmentSchemeBLS>The TurboPlonk verifying key.
Implementations§
source§impl VerifierParamsCommon
impl VerifierParamsCommon
sourcepub fn to_full(self) -> VerifierParams
pub fn to_full(self) -> VerifierParams
Convert to VerifierParams
sourcepub fn from_full(params: VerifierParams) -> Self
pub fn from_full(params: VerifierParams) -> Self
Convert from VerifierParams
Trait Implementations§
source§impl<'de> Deserialize<'de> for VerifierParamsCommon
impl<'de> Deserialize<'de> for VerifierParamsCommon
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more