Skip to main content

espresso_types/v0/v0_3/
state_cert.rs

1//! State certificate query data type
2
3use derive_more::From;
4use hotshot_types::{
5    simple_certificate::LightClientStateUpdateCertificateV1, traits::node_implementation::NodeType,
6};
7use serde::{Deserialize, Serialize};
8
9/// A wrapper around `LightClientStateUpdateCertificateV1`.
10///
11/// This struct is returned by the `state-cert` API endpoint for backward compatibility.
12#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq, From)]
13#[serde(bound = "")]
14pub struct StateCertQueryDataV1<Types: NodeType>(pub LightClientStateUpdateCertificateV1<Types>);