pub trait ZkProofData<T>
where T: Pod,
{ const PROOF_TYPE: ProofType; // Required methods fn context_data(&self) -> &T; fn verify_proof(&self) -> Result<(), ProofVerificationError>; }

Required Associated Constants§

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl ZkProofData<BatchedGroupedCiphertext2HandlesValidityProofContext> for BatchedGroupedCiphertext2HandlesValidityProofData

Source§

const PROOF_TYPE: ProofType = ProofType::BatchedGroupedCiphertext2HandlesValidity

Source§

impl ZkProofData<BatchedGroupedCiphertext3HandlesValidityProofContext> for BatchedGroupedCiphertext3HandlesValidityProofData

Source§

const PROOF_TYPE: ProofType = ProofType::BatchedGroupedCiphertext3HandlesValidity

Source§

impl ZkProofData<BatchedRangeProofContext> for BatchedRangeProofU64Data

Source§

const PROOF_TYPE: ProofType = ProofType::BatchedRangeProofU64

Source§

impl ZkProofData<BatchedRangeProofContext> for BatchedRangeProofU128Data

Source§

const PROOF_TYPE: ProofType = ProofType::BatchedRangeProofU128

Source§

impl ZkProofData<BatchedRangeProofContext> for BatchedRangeProofU256Data

Source§

const PROOF_TYPE: ProofType = ProofType::BatchedRangeProofU256

Source§

impl ZkProofData<CiphertextCiphertextEqualityProofContext> for CiphertextCiphertextEqualityProofData

Source§

const PROOF_TYPE: ProofType = ProofType::CiphertextCiphertextEquality

Source§

impl ZkProofData<CiphertextCommitmentEqualityProofContext> for CiphertextCommitmentEqualityProofData

Source§

const PROOF_TYPE: ProofType = ProofType::CiphertextCommitmentEquality

Source§

impl ZkProofData<GroupedCiphertext2HandlesValidityProofContext> for GroupedCiphertext2HandlesValidityProofData

Source§

const PROOF_TYPE: ProofType = ProofType::GroupedCiphertext2HandlesValidity

Source§

impl ZkProofData<GroupedCiphertext3HandlesValidityProofContext> for GroupedCiphertext3HandlesValidityProofData

Source§

const PROOF_TYPE: ProofType = ProofType::GroupedCiphertext3HandlesValidity

Source§

impl ZkProofData<PercentageWithCapProofContext> for PercentageWithCapProofData

Source§

const PROOF_TYPE: ProofType = ProofType::PercentageWithCap

Source§

impl ZkProofData<PubkeyValidityProofContext> for PubkeyValidityProofData

Source§

const PROOF_TYPE: ProofType = ProofType::PubkeyValidity

Source§

impl ZkProofData<ZeroCiphertextProofContext> for ZeroCiphertextProofData

Source§

const PROOF_TYPE: ProofType = ProofType::ZeroCiphertext