pub struct ProverParams {
    pub pcs: KZGCommitmentSchemeBLS,
    pub lagrange_pcs: Option<KZGCommitmentSchemeBLS>,
    pub secp256k1_cs: TurboCS<BLSScalar>,
    pub ed25519_cs: TurboCS<BLSScalar>,
    pub secp256k1_prover_params: PlonkPK<KZGCommitmentSchemeBLS>,
    pub ed25519_prover_params: PlonkPK<KZGCommitmentSchemeBLS>,
}
Expand description

The prover parameters.

Fields§

§pcs: KZGCommitmentSchemeBLS

The full SRS for the polynomial commitment scheme.

§lagrange_pcs: Option<KZGCommitmentSchemeBLS>

The Lagrange basis format of SRS.

§secp256k1_cs: TurboCS<BLSScalar>

The default(secp256k1) constraint system.

§ed25519_cs: TurboCS<BLSScalar>

The ed25519 constraint system.

§secp256k1_prover_params: PlonkPK<KZGCommitmentSchemeBLS>

The default(secp256k1) TurboPlonk proving key.

§ed25519_prover_params: PlonkPK<KZGCommitmentSchemeBLS>

The ed25519 TurboPlonk proving key.

Implementations§

Choose secp256k1 or ed25519 cs and prover_params

Obtain the parameters for anonymous transfer for a given number of inputs and a given number of outputs.

Obtain the parameters for confidential to anonymous.

Obtain the parameters for anonymous to confidential.

Obtain the parameters for transparent to anonymous.

Obtain the parameters for anonymous to transparent.

Trait Implementations§

Deserialize this value from the given Serde deserializer. Read more
Converts to this type from the input type.
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.