miden_node_proto/generated/
account.rs

1// This file is @generated by prost-build.
2/// Uniquely identifies a specific account.
3///
4/// A Miden account ID is a 120-bit value derived from the commitments to account code and storage,
5/// and a random user-provided seed.
6#[derive(Clone, PartialEq, ::prost::Message)]
7#[prost(skip_debug)]
8pub struct AccountId {
9    /// 15 bytes (120 bits) encoded using \[winter_utils::Serializable\] implementation for
10    /// \[miden_objects::account::account_id::AccountId\].
11    #[prost(bytes = "vec", tag = "1")]
12    pub id: ::prost::alloc::vec::Vec<u8>,
13}
14/// The state of an account at a specific block height.
15#[derive(Clone, PartialEq, ::prost::Message)]
16pub struct AccountSummary {
17    /// The account ID.
18    #[prost(message, optional, tag = "1")]
19    pub account_id: ::core::option::Option<AccountId>,
20    /// The current account hash or zero if the account does not exist.
21    #[prost(message, optional, tag = "2")]
22    pub account_hash: ::core::option::Option<super::digest::Digest>,
23    /// Block number at which the summary was made.
24    #[prost(uint32, tag = "3")]
25    pub block_num: u32,
26}
27/// An account info.
28#[derive(Clone, PartialEq, ::prost::Message)]
29pub struct AccountInfo {
30    /// Account summary.
31    #[prost(message, optional, tag = "1")]
32    pub summary: ::core::option::Option<AccountSummary>,
33    /// Account details encoded using \[winter_utils::Serializable\] implementation for
34    /// \[miden_objects::account::Account\].
35    #[prost(bytes = "vec", optional, tag = "2")]
36    pub details: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
37}
38/// An account header.
39#[derive(Clone, Copy, PartialEq, ::prost::Message)]
40pub struct AccountHeader {
41    /// Vault root hash.
42    #[prost(message, optional, tag = "1")]
43    pub vault_root: ::core::option::Option<super::digest::Digest>,
44    /// Storage root hash.
45    #[prost(message, optional, tag = "2")]
46    pub storage_commitment: ::core::option::Option<super::digest::Digest>,
47    /// Code root hash.
48    #[prost(message, optional, tag = "3")]
49    pub code_commitment: ::core::option::Option<super::digest::Digest>,
50    /// Account nonce.
51    #[prost(uint64, tag = "4")]
52    pub nonce: u64,
53}