Skip to main content

ZkDisclosure

Trait ZkDisclosure 

Source
pub trait ZkDisclosure {
    // Required methods
    fn generate_zk_proof(
        &self,
        credential: &Credential,
        predicates: &[String],
    ) -> Result<Presentation, VcError>;
    fn verify_zk_proof(
        &self,
        presentation: &Presentation,
    ) -> Result<bool, VcError>;
}
Expand description

Zero-knowledge predicate-disclosure interface; not yet implemented.

Required Methods§

Source

fn generate_zk_proof( &self, credential: &Credential, predicates: &[String], ) -> Result<Presentation, VcError>

Generates a ZK proof.

Source

fn verify_zk_proof(&self, presentation: &Presentation) -> Result<bool, VcError>

Verifies a ZK proof.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§