Skip to main content

cardanowall_cli/
lib.rs

1//! The `cardanowall` CLI library crate.
2//!
3//! A standalone Label 309 Proof-of-Existence toolkit built on the `cardanowall`
4//! SDK. The binary (`main.rs`) is a thin shell; the command tree, argument
5//! parsing, gateway resolution, and output formatting live here so integration
6//! tests can drive [`run`] directly and assert on the resulting exit code.
7//!
8//! ## Commands
9//!
10//! - `verify <tx-hash>` — the standalone verifier; maps the verifier report's
11//!   exit code through verbatim.
12//! - `submit` — anchor a PoE via a gateway (hash / file / Merkle).
13//! - `sign record|prepare|assemble` — off-host COSE_Sign1 record signing.
14//! - `identity` — derive and print the public identity from a 32-byte seed.
15//! - `merkle verify|build` — off-chain Merkle tooling.
16//! - `inbox sync|list|decrypt` — sealed-PoE inbox over a raw recipient key.
17//!
18//! ## Exit codes
19//!
20//! `0` valid · `1` integrity · `2` network · `3` pending · `4` CLI input error.
21//! Clap parse failures and `--help`/`--version` are mapped by [`run`].
22
23#![forbid(unsafe_code)]
24
25pub mod cli;
26pub mod commands;
27pub mod config;
28pub mod inbox;
29pub mod output;
30pub mod secret;
31pub mod state;
32pub mod util;
33
34pub use cli::{run, Cli};
35pub use util::CliError;