miden_node_proto/generated/
shared.rs

1// This file is @generated by prost-build.
2/// Returns the block header corresponding to the requested block number, as well as the merkle
3/// path and current forest which validate the block's inclusion in the chain.
4///
5/// The Merkle path is an MMR proof for the block's leaf, based on the current chain length.
6#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
7pub struct BlockHeaderByNumberRequest {
8    /// The target block height, defaults to latest if not provided.
9    #[prost(uint32, optional, tag = "1")]
10    pub block_num: ::core::option::Option<u32>,
11    /// Whether or not to return authentication data for the block header.
12    #[prost(bool, optional, tag = "2")]
13    pub include_mmr_proof: ::core::option::Option<bool>,
14}
15/// Represents the result of getting a block header by block number.
16#[derive(Clone, PartialEq, ::prost::Message)]
17pub struct BlockHeaderByNumberResponse {
18    /// The requested block header.
19    #[prost(message, optional, tag = "1")]
20    pub block_header: ::core::option::Option<super::blockchain::BlockHeader>,
21    /// Merkle path to verify the block's inclusion in the MMR at the returned `chain_length`.
22    #[prost(message, optional, tag = "2")]
23    pub mmr_path: ::core::option::Option<super::primitives::MerklePath>,
24    /// Current chain length.
25    #[prost(fixed32, optional, tag = "3")]
26    pub chain_length: ::core::option::Option<u32>,
27}
28/// Represents a note script or nothing.
29#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
30pub struct MaybeNoteScript {
31    /// The script for a note by its root.
32    #[prost(message, optional, tag = "1")]
33    pub script: ::core::option::Option<super::note::NoteScript>,
34}