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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//! # 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 (2026)
//!
//! - **FileAnchor**: Local append-only JSON log (default, for development)
//! - **GitAnchor**: Commits roots to a Git repository
//! - **OpenTimestampsAnchor**: Bitcoin calendar anchoring via the public OTS protocol
//! - **EthereumAnchor**: Ethereum calldata anchoring via JSON-RPC
//! - **CelestiaAnchor**: Celestia DA blob anchoring
//!
//! ## 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 CloudAnchor;
pub use FileAnchor;
pub use GitAnchor;
pub use OpenTimestampsAnchor;
pub use ;
pub use CelestiaAnchor;