pub enum DisclosureModality {
Full,
SelectiveField,
PropertyProof,
}Expand description
The proof modality by which a provenance node (or the DAG) is disclosed (§9).
Variants§
Full
Full reveal of the provenance.
SelectiveField
Reveal a subset of the DAG’s fields/nodes (selective field disclosure).
PropertyProof
Prove a property of the provenance without revealing the underlying identities/tools — e.g. “≥2 licensed physicians”, “tool within validated scope”, “no undeclared AI”.
Where a real zero-knowledge circuit exists for the predicate, this is genuine ZK: real Groth16 over
BLS12-381 lives in crypto/zk_proofs.rs (a separate crate). Where no circuit exists for the
predicate yet, this modality falls back to a signed commitment + selective field disclosure and
MUST be labelled as such — it is NOT to be called ZK until a circuit backs it.
Trait Implementations§
Source§impl Clone for DisclosureModality
impl Clone for DisclosureModality
impl Copy for DisclosureModality
Source§impl Debug for DisclosureModality
impl Debug for DisclosureModality
Source§impl Default for DisclosureModality
impl Default for DisclosureModality
Source§impl<'de> Deserialize<'de> for DisclosureModality
impl<'de> Deserialize<'de> for DisclosureModality
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DisclosureModality
Source§impl PartialEq for DisclosureModality
impl PartialEq for DisclosureModality
Source§impl Serialize for DisclosureModality
impl Serialize for DisclosureModality
impl StructuralPartialEq for DisclosureModality
Auto Trait Implementations§
impl Freeze for DisclosureModality
impl RefUnwindSafe for DisclosureModality
impl Send for DisclosureModality
impl Sync for DisclosureModality
impl Unpin for DisclosureModality
impl UnsafeUnpin for DisclosureModality
impl UnwindSafe for DisclosureModality
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more