Skip to main content

structured_xades/
lib.rs

1#![doc = include_str!("../README.md")]
2#![cfg_attr(not(feature = "std"), no_std)]
3
4#[cfg(test)]
5extern crate alloc;
6
7pub mod attributes;
8pub mod baseline;
9pub mod binary;
10pub mod binding;
11pub mod certificate;
12pub mod commitment;
13pub mod container;
14pub mod counter;
15pub mod credential;
16pub mod digest;
17pub mod format;
18pub mod hashes;
19pub mod header;
20pub mod identifier;
21pub mod material;
22mod mime;
23pub mod pki;
24pub mod policy;
25pub mod prepare;
26pub mod produce;
27pub mod properties;
28pub mod reference;
29pub mod renewed;
30pub mod role;
31pub mod scalar;
32pub mod timestamp;
33pub mod unsigned;
34pub mod validation;
35pub mod xml;
36
37/// Issuer of the long-term validation receipts this crate builds from its own
38/// checks: timestamp evidence and its signer, archive coverage, the token
39/// census, the material index and the participant census
40/// ([`pki::participants`]). Only this crate constructs it, so a caller
41/// cannot relabel evidence or supply a fabricated receipt to these APIs.
42///
43/// ```compile_fail
44/// let issuer = structured_xades::Xades(());
45/// ```
46#[derive(Debug, Clone, Copy, PartialEq, Eq)]
47pub struct Xades(());
48
49/// The value this crate passes when it builds a receipt.
50pub(crate) const ISSUER: Xades = Xades(());