miden_node_proto/generated/
account.rs

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