vex-anchor

Crates.iovex-anchor
lib.rsvex-anchor
version0.1.4
created_at2025-12-20 03:48:23.461535+00
updated_at2025-12-20 03:48:23.461535+00
descriptionPublic anchoring layer for VEX audit logs - Git, OpenTimestamps, and blockchain support
homepage
repositoryhttps://github.com/provnai/vex
max_upload_size
id1995975
size49,917
0xQ (bulltickr)

documentation

README

vex-anchor

Public anchoring layer for VEX audit logs.

Features

  • AnchorBackend trait — Pluggable anchoring backends
  • FileAnchor — JSON Lines append-only log for development
  • GitAnchor — Orphan branch commits for tamper-evident timestamping

Usage

use vex_anchor::{FileAnchor, AnchorBackend, AnchorMetadata};
use vex_core::Hash;

#[tokio::main]
async fn main() {
    let anchor = FileAnchor::new("anchors.jsonl");
    
    let metadata = AnchorMetadata::new("tenant-123", 42);
    let root = Hash::digest(b"merkle root");
    
    let receipt = anchor.anchor(&root, metadata).await.unwrap();
    println!("Anchored: {}", receipt.anchor_id);
}

Planned Backends

  • EIP-4844 (Ethereum blobs)
  • Celestia
  • OpenTimestamps

License

MIT

Commit count: 0

cargo fmt