Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Rust-Verifiable Logical Clock

rust-vlc

A Rust implementation of Verifiable Logical Clock (VLC) for distributed systems. This library provides a verifiable logical clock construct that can be used in peer-to-peer networks to order events and ensure consistency.

Features

  • Standard logical clock implementation with vector clock properties

  • Optimized ordinary clock implementation for better performance

  • Support for clock comparison, merging, and difference calculation

  • SHA256 hash calculation for verification

  • Support for both numeric and string identifiers

  • Thread-safe implementation

  • Zero-copy optimizations

Installation

Add this to your Cargo.toml:

[dependencies]
vlc = { git = "https://github.com/NagaraTech/chronos.git" }

Usage

Basic Clock Usage

Ordinary Clock Usage

API Reference

Clock Struct

OrdinaryClock Struct

Development

Setup

Testing

Building

Last updated