pub trait SelectiveDisclosure {
// Required methods
fn generate_selective_presentation(
&self,
credential: &Credential,
disclosed_fields: &[String],
) -> Result<Presentation, VcError>;
fn verify_selective_presentation(
&self,
presentation: &Presentation,
) -> Result<bool, VcError>;
}Expand description
Selective-disclosure interface (BBS-style); not yet implemented.
Required Methods§
Sourcefn generate_selective_presentation(
&self,
credential: &Credential,
disclosed_fields: &[String],
) -> Result<Presentation, VcError>
fn generate_selective_presentation( &self, credential: &Credential, disclosed_fields: &[String], ) -> Result<Presentation, VcError>
Generates a selective presentation.
Sourcefn verify_selective_presentation(
&self,
presentation: &Presentation,
) -> Result<bool, VcError>
fn verify_selective_presentation( &self, presentation: &Presentation, ) -> Result<bool, VcError>
Verifies a selective presentation.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".