pub struct PrivacyProof {
pub proof_bytes: String,
pub public_inputs: String,
pub scheme: ProofScheme,
pub security_bits: u32,
pub proof_size: usize,
pub chsh_value: f64,
pub lyapunov: f64,
}Expand description
A privacy-preserving zero-knowledge proof.
Fields§
§proof_bytes: StringSerialized proof bytes (base64url)
public_inputs: StringPublic inputs (hex-encoded)
scheme: ProofSchemeProof scheme used
security_bits: u32Security level in bits
proof_size: usizeApproximate proof size in bytes
chsh_value: f64Simulated CHSH correlation (for entangled proofs)
lyapunov: f64Lyapunov exponent of chaos perturbation applied
Implementations§
Source§impl PrivacyProof
impl PrivacyProof
Sourcepub fn is_non_local(&self) -> bool
pub fn is_non_local(&self) -> bool
Returns true if the proof achieves non-local soundness (CHSH > 2.8).
Trait Implementations§
Source§impl Clone for PrivacyProof
impl Clone for PrivacyProof
Source§impl Debug for PrivacyProof
impl Debug for PrivacyProof
Source§impl<'de> Deserialize<'de> for PrivacyProof
impl<'de> Deserialize<'de> for PrivacyProof
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
Source§impl From<SnarkProof> for PrivacyProof
impl From<SnarkProof> for PrivacyProof
Source§fn from(s: SnarkProof) -> Self
fn from(s: SnarkProof) -> Self
Converts to this type from the input type.
Source§impl From<StarkProof> for PrivacyProof
impl From<StarkProof> for PrivacyProof
Source§fn from(s: StarkProof) -> Self
fn from(s: StarkProof) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrivacyProof
impl RefUnwindSafe for PrivacyProof
impl Send for PrivacyProof
impl Sync for PrivacyProof
impl Unpin for PrivacyProof
impl UnsafeUnpin for PrivacyProof
impl UnwindSafe for PrivacyProof
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