Skip to main content

pqrascv_cli/
lib.rs

1//! # pqrascv-cli
2//!
3//! Command-line interface for the [PQ-RASCV](https://crates.io/crates/pqrascv-core)
4//! hardware attestation protocol.
5//!
6//! ## Installation
7//!
8//! ```text
9//! cargo install pqrascv-cli
10//! ```
11//!
12//! ## Usage
13//!
14//! ```text
15//! # Generate a post-quantum keypair
16//! pqrascv keygen --out-seed seed.bin --out-vk vk.bin
17//!
18//! # Generate an attestation quote (prover side)
19//! pqrascv attest \
20//!   --seed seed.bin --vk vk.bin \
21//!   --firmware firmware.bin \
22//!   --slsa-level 2 \
23//!   --out quote.cbor \
24//!   --software-rot-acknowledged
25//!
26//! # Verify the quote (verifier side)
27//! pqrascv verify \
28//!   --vk vk.bin \
29//!   --quote quote.cbor \
30//!   --nonce <64-HEX-NONCE> \
31//!   --json
32//! ```
33//!
34//! This crate is a binary. For the library API see
35//! [`pqrascv-core`](https://docs.rs/pqrascv-core) and
36//! [`pqrascv-verifier`](https://docs.rs/pqrascv-verifier).