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§
Sourcefn generate_zk_proof(
&self,
credential: &Credential,
predicates: &[String],
) -> Result<Presentation, VcError>
fn generate_zk_proof( &self, credential: &Credential, predicates: &[String], ) -> Result<Presentation, VcError>
Generates a ZK proof.
Sourcefn verify_zk_proof(&self, presentation: &Presentation) -> Result<bool, VcError>
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".