Skip to main content

espresso_types/v0/v0_6/
txproof.rs

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