Skip to main content

SelectiveDisclosure

Trait SelectiveDisclosure 

Source
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§

Source

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

Source

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

Implementors§