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
//! `lys-core` — domain-agnostic cryptographic trust primitives.
//!
//! A focused library of trust primitives: certificate authority operations,
//! Merkle transparency-log operations, signed attestations, sealed payload
//! transport, and Ed25519 key management. Consumers compose domain meaning
//! on top — this crate knows nothing about any higher-level concepts.
//!
//! The foundation laid here is [`TrustError`], [`TrustResult`], and
//! [`Ed25519Identity`]. The [`ca`], [`merkle`], [`attestation`], `receipt`,
//! `bundle`, `delegation`, [`seal`], [`checkpoint`], and [`tlog`] modules are
//! implemented on top of these primitives. (`receipt`, `bundle` and
//! `delegation` are named without intra-doc links because they exist only under
//! `unstable-anchor`; a link from ungated docs to a gated item resolves under
//! `--all-features` and breaks in the default doc build, which is the shape
//! consumers get.)
//!
//! ```
//! use lys_core::TrustResult;
//!
//! fn fallible_op() -> TrustResult<()> {
//! Ok(())
//! }
//!
//! assert!(fallible_op().is_ok());
//! ```
// Library code contains no unsafe whatsoever, and no test in this crate uses
// unsafe code either. Non-test builds forbid it outright; test builds are held
// by the workspace-level `deny`, which no test overrides.
pub use ;
pub use Ed25519Identity;
/// Lowercase hex encoding of a byte slice.
pub