diff --git a/src/node.rs b/src/node.rs index 13e2113..837be1b 100644 --- a/src/node.rs +++ b/src/node.rs @@ -17,6 +17,10 @@ use serde::{Deserialize, Serialize}; use crate::hash::HashWriter; +// NOTE(jwall): Since we enforce certain properties by construction in our DAG +// It's important that serialization isn't able to bypass that. This struct +// allows us to only serialize and deserialize the non-computable fields of a +// node. #[derive(Serialize, Deserialize)] struct NodeSerde { item: Vec,