pub struct ChronosyncEngine { /* private fields */ }Expand description
Hypergraph Chronosync engine.
Implementations§
Source§impl ChronosyncEngine
impl ChronosyncEngine
pub fn new() -> Self
Sourcepub fn add_event(&mut self, event: PosetEvent)
pub fn add_event(&mut self, event: PosetEvent)
Add an event to the poset.
Sourcepub fn resolve(
&mut self,
chaos_seed: &[u8; 32],
) -> Result<Vec<String>, PrivacyError>
pub fn resolve( &mut self, chaos_seed: &[u8; 32], ) -> Result<Vec<String>, PrivacyError>
Resolve the poset using topological sort with ZK merges.
Achieves O(|E| log |V|) complexity via hypergraph topology. ZK proofs hide metadata during conflict resolution.
Sourcepub fn prove_merge(
&self,
event_a: &str,
event_b: &str,
chaos_seed: &[u8; 32],
) -> Result<PrivacyProof, PrivacyError>
pub fn prove_merge( &self, event_a: &str, event_b: &str, chaos_seed: &[u8; 32], ) -> Result<PrivacyProof, PrivacyError>
Generate a ZK merge proof for conflict resolution.
Sourcepub fn anchor_to_tuplechain(&self, chaos_seed: &[u8; 32]) -> String
pub fn anchor_to_tuplechain(&self, chaos_seed: &[u8; 32]) -> String
Anchor the resolved order to TupleChain.
pub fn event_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChronosyncEngine
impl RefUnwindSafe for ChronosyncEngine
impl Send for ChronosyncEngine
impl Sync for ChronosyncEngine
impl Unpin for ChronosyncEngine
impl UnsafeUnpin for ChronosyncEngine
impl UnwindSafe for ChronosyncEngine
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