diff --git a/types/src/block/data.rs b/types/src/block/data.rs index 6f6f5c0f..c78caccc 100644 --- a/types/src/block/data.rs +++ b/types/src/block/data.rs @@ -4,11 +4,21 @@ use tendermint_proto::Protobuf; use crate::Error; +/// Data contained in a [`Block`]. +/// +/// [`Block`]: crate::block::Block #[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)] #[serde(try_from = "RawData", into = "RawData")] pub struct Data { + /// Transactions. pub txs: Vec>, + + /// Square width of original data square. pub square_size: u64, + + /// Hash is the root of a binary Merkle tree where the leaves of the tree are + /// the row and column roots of an extended data square. Hash is often referred + /// to as the "data root". pub hash: Vec, }