use Deserialize;
use Serialize;
use cratePeerRecord;
/// Current serialized measurement snapshot schema version.
pub const MEASUREMENT_SNAPSHOT_VERSION: u16 = 1;
/// One peer entry in a versioned measurement snapshot.
/// Versioned, deterministic serialization boundary for a measurement ledger.
///
/// Snapshot fields are intentionally public because persisted data is untrusted
/// input. [`crate::MeasurementLedger::from_snapshot`] validates the version,
/// default retained-peer bound, and duplicate identities before constructing
/// live state. Adapters using a custom bound must restore with
/// [`crate::MeasurementLedger::from_snapshot_with_max_records`] so the same
/// resource policy is preserved.