lsp_max/runtime/control_plane/kernel/
mod.rs1use crate::runtime::control_plane::receipts::CryptographicReceipt;
2
3mod admitted_superseded;
4mod raw_candidate;
5mod refused_quarantined_replayed;
6
7#[cfg(test)]
8mod tests;
9
10#[cfg(test)]
12pub(crate) use crate::runtime::control_plane::admission::{
13 AdmittedData, CandidateData, GraphAdmissionLaw, RawData, ADMITTED, CANDIDATE, RAW, SUPERSEDED,
14};
15#[cfg(test)]
16pub(crate) use crate::runtime::control_plane::receipts::Blake3Hash;
17#[cfg(test)]
18pub(crate) use crate::runtime::{Machine, TypestateKernel};
19#[cfg(test)]
20pub(crate) use ed25519_dalek::Signer;
21
22pub struct CandidateAdmitInput {
26 pub store: oxigraph::store::Store,
27 pub graph_name: oxigraph::model::GraphName,
28 pub receipt: CryptographicReceipt,
29}
30
31pub(super) fn bytes_to_hex(bytes: &[u8]) -> String {
33 bytes.iter().map(|b| format!("{:02x}", b)).collect()
34}