1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! # VEX Anchor
//!
//! Public anchoring layer for VEX audit logs.
//!
//! Provides cryptographic anchoring of Merkle roots to external systems for
//! tamper-evident, publicly-verifiable audit trails.
//!
//! ## Supported Backends (2025)
//!
//! - **FileAnchor**: Local append-only JSON log (default, for development)
//! - **GitAnchor**: Commits roots to a Git repository
//! - *Future*: EIP-4844 blobs (Ethereum), Celestia, OpenTimestamps
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use vex_anchor::{AnchorBackend, FileAnchor, AnchorMetadata};
//! use vex_core::Hash;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let anchor = FileAnchor::new("./anchors.json");
//!
//! let root = Hash::digest(b"merkle_root_data");
//! let metadata = AnchorMetadata::new("tenant-1", 100);
//!
//! let receipt = anchor.anchor(&root, metadata).await?;
//! println!("Anchored at: {}", receipt.anchor_id);
//!
//! Ok(())
//! }
//! ```
pub use ;
pub use AnchorError;
pub use FileAnchor;
pub use GitAnchor;