Skip to content

Commit

Permalink
fix doc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
oblique committed Nov 26, 2024
1 parent 2b514af commit daedab6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions types/src/block/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vec<u8>>,

/// 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<u8>,
}

Expand Down

0 comments on commit daedab6

Please sign in to comment.