miden_node_proto/generated/
transaction.rs

1// This file is @generated by prost-build.
2/// Submits proven transaction to the Miden network.
3#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4pub struct ProvenTransaction {
5    /// Transaction encoded using \[winter_utils::Serializable\] implementation for
6    /// \[miden_objects::transaction::proven_tx::ProvenTransaction\].
7    #[prost(bytes = "vec", tag = "1")]
8    pub transaction: ::prost::alloc::vec::Vec<u8>,
9    /// Transaction inputs encoded using \[winter_utils::Serializable\] implementation for
10    /// \[miden_objects::transaction::TransactionInputs\].
11    #[prost(bytes = "vec", optional, tag = "2")]
12    pub transaction_inputs: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
13}
14#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
15pub struct ProvenTransactionBatch {
16    /// Encoded using \[winter_utils::Serializable\] implementation for
17    /// \[miden_objects::transaction::proven_tx::ProvenTransaction\].
18    #[prost(bytes = "vec", tag = "1")]
19    pub encoded: ::prost::alloc::vec::Vec<u8>,
20}
21/// Represents a transaction ID.
22#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
23pub struct TransactionId {
24    /// The transaction ID.
25    #[prost(message, optional, tag = "1")]
26    pub id: ::core::option::Option<super::primitives::Digest>,
27}
28/// Represents a transaction summary.
29#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
30pub struct TransactionSummary {
31    /// A unique 32-byte identifier of a transaction.
32    #[prost(message, optional, tag = "1")]
33    pub transaction_id: ::core::option::Option<TransactionId>,
34    /// The block number in which the transaction was executed.
35    #[prost(fixed32, tag = "2")]
36    pub block_num: u32,
37    /// The ID of the account affected by the transaction.
38    #[prost(message, optional, tag = "3")]
39    pub account_id: ::core::option::Option<super::account::AccountId>,
40}
41/// Represents a transaction header.
42#[derive(Clone, PartialEq, ::prost::Message)]
43pub struct TransactionHeader {
44    /// ID of the account against which the transaction was executed.
45    #[prost(message, optional, tag = "1")]
46    pub account_id: ::core::option::Option<super::account::AccountId>,
47    /// State commitment of the account before the transaction was executed.
48    #[prost(message, optional, tag = "2")]
49    pub initial_state_commitment: ::core::option::Option<super::primitives::Digest>,
50    /// State commitment of the account after the transaction was executed.
51    #[prost(message, optional, tag = "3")]
52    pub final_state_commitment: ::core::option::Option<super::primitives::Digest>,
53    /// Nullifiers of the input notes of the transaction.
54    #[prost(message, repeated, tag = "4")]
55    pub input_notes: ::prost::alloc::vec::Vec<super::primitives::Digest>,
56    /// Output notes of the transaction.
57    #[prost(message, repeated, tag = "5")]
58    pub output_notes: ::prost::alloc::vec::Vec<super::note::NoteSyncRecord>,
59}