pub struct PrivacyTuple {
pub subject: String,
pub predicate: String,
pub object: Vec<u8>,
pub proof: PrivacyProof,
pub expiry_ms: u64,
pub anchor: Option<String>,
}Expand description
The five-tuple semantic ledger entry.
(subject, predicate, object, proof, expiry)
Fields§
§subject: String§predicate: String§object: Vec<u8>Serialized object value (may be FHE ciphertext)
proof: PrivacyProofEmbedded ZK proof
expiry_ms: u64Expiry timestamp (Unix ms) with Laplace noise applied
anchor: Option<String>Wyqcc L1 anchor hash (hex)
Implementations§
Source§impl PrivacyTuple
impl PrivacyTuple
Sourcepub fn is_expired(&self, now_ms: u64) -> bool
pub fn is_expired(&self, now_ms: u64) -> bool
Returns true if the tuple has expired.
Trait Implementations§
Source§impl Clone for PrivacyTuple
impl Clone for PrivacyTuple
Source§impl Debug for PrivacyTuple
impl Debug for PrivacyTuple
Source§impl<'de> Deserialize<'de> for PrivacyTuple
impl<'de> Deserialize<'de> for PrivacyTuple
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
Auto Trait Implementations§
impl Freeze for PrivacyTuple
impl RefUnwindSafe for PrivacyTuple
impl Send for PrivacyTuple
impl Sync for PrivacyTuple
impl Unpin for PrivacyTuple
impl UnsafeUnpin for PrivacyTuple
impl UnwindSafe for PrivacyTuple
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