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>

Source

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

Implementors§