Skip to main content

zkp_capability_granted

Function zkp_capability_granted 

Source
pub fn zkp_capability_granted(
    trait_proven: bool,
    identifier_revealed: bool,
) -> bool
Expand description

ZKP capability derivation: a capability is granted by PROVING an identity trait (a zk proof) WITHOUT revealing the core identifier. Granted iff trait_proven AND the identifier was NOT revealed — the proof carries the trait, not the id (privacy-preserving derivation).