espresso_types/v0/v0_3/txproof.rs
1use serde::{Deserialize, Serialize};
2
3use super::{AvidMNsProof, TxIndex};
4
5#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
6pub struct AvidMTxProof {
7 pub(crate) tx_index: TxIndex,
8 pub(crate) ns_proof: AvidMNsProof,
9}
10
11impl AvidMTxProof {
12 pub fn tx_index(&self) -> &TxIndex {
13 &self.tx_index
14 }
15
16 pub fn ns_proof(&self) -> &AvidMNsProof {
17 &self.ns_proof
18 }
19}