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
//! `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`], [`seal`],
//! [`checkpoint`], and [`tlog`] modules are implemented on top of these
//! primitives.
//!
//! ```
//! use lys_core::TrustResult;
//!
//! fn fallible_op() -> TrustResult<()> {
//! Ok(())
//! }
//!
//! assert!(fallible_op().is_ok());
//! ```
// Library code contains no unsafe whatsoever. Test builds relax `forbid` to
// the workspace-level `deny` because the env-backed tests must call
// `std::env::set_var` (unsafe in edition 2024) under `#[allow(unsafe_code)]`,
// which a crate-level `forbid` would reject outright.
pub use ;
pub use Ed25519Identity;
/// Lowercase hex encoding of a byte slice.
pub