1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//! SignedHeader contains commit and and block header. //! It is what the rpc endpoint /commit returns and hence can be used by a //! light client. use serde::{Deserialize, Serialize}; use crate::block; /// Signed block headers #[derive(Clone, Debug, Deserialize, PartialEq, Serialize)] pub struct SignedHeader { /// Block header pub header: block::Header, /// Commit containing signatures for the header pub commit: block::Commit, }