pub fn sprout_note_commitments(
        &self,
    ) -> Box<dyn Iterator<Item = &sprout::commitment::NoteCommitment> + '_> {
        match self {
            // Return [`NoteCommitment`]s with [`Bctv14Proof`]s.
            Transaction::V2 {
                joinsplit_data: Some(joinsplit_data),
                ..
            }
            | Transaction::V3 {
                joinsplit_data: Some(joinsplit_data),
                ..
            } => Box::new(joinsplit_data.note_commitments()),

            // Return [`NoteCommitment`]s with [`Groth16Proof`]s.
            Transaction::V4 {
                joinsplit_data: Some(joinsplit_data),
                ..
            } => Box::new(joinsplit_data.note_commitments()),

            // Return an empty iterator.
            Transaction::V2 {
                joinsplit_data: None,
                ..
            }
            | Transaction::V3 {
                joinsplit_data: None,
                ..
            }
            | Transaction::V4 {
                joinsplit_data: None,
                ..
            }
            | Transaction::V1 { .. }
            | Transaction::V5 { .. } => Box::new(std::iter::empty()),
        }
    }
/// Returns the Sprout note commitments in this transaction.
Returns the Sprout note commitments in this transaction.
Returns the Sprout note commitments in this transaction .
pub fn sprout_note_commitments(
        &self,
    ) -> Box<dyn Iterator<Item = &sprout::commitment::NoteCommitment> + '_> {
        match self {
            // Return [`NoteCommitment`]s with [`Bctv14Proof`]s.
            Transaction::V2 {
                joinsplit_data: Some(joinsplit_data),
                ..
            }
            | Transaction::V3 {
                joinsplit_data: Some(joinsplit_data),
                ..
            } => Box::new(joinsplit_data.note_commitments()),
            // Return [`NoteCommitment`]s with [`Groth16Proof`]s.
            Transaction::V4 {
                joinsplit_data: Some(joinsplit_data),
                ..
            } => Box::new(joinsplit_data.note_commitments()),
            // Return an empty iterator.
            Transaction::V2 {
                joinsplit_data: None,
                ..
            }
            | Transaction::V3 {
                joinsplit_data: None,
                ..
            }
            | Transaction::V4 {
                joinsplit_data: None,
                ..
            }
            | Transaction::V1 { .. }
            | Transaction::V5 { .. } => Box::new(std::iter::empty()),
        }
    }
pub fn sprout_note_commitments ( & self , ) -> Box < dyn Iterator < Item = & sprout :: commitment :: NoteCommitment > + ' _ > { match self { // Return [`NoteCommitment`]s with [`Bctv14Proof`]s. Transaction :: V2 { joinsplit_data : Some ( joinsplit_data ) , .. } | Transaction :: V3 { joinsplit_data : Some ( joinsplit_data ) , .. } => Box :: new ( joinsplit_data . note_commitments ( ) ) , // Return [`NoteCommitment`]s with [`Groth16Proof`]s. Transaction :: V4 { joinsplit_data : Some ( joinsplit_data ) , .. } => Box :: new ( joinsplit_data . note_commitments ( ) ) , // Return an empty iterator. Transaction :: V2 { joinsplit_data : None , .. } | Transaction :: V3 { joinsplit_data : None , .. } | Transaction :: V4 { joinsplit_data : None , .. } | Transaction :: V1 { .. } | Transaction :: V5 { .. } => Box :: new ( std :: iter :: empty ( ) ) , } }
Returns the Sprout note commitments in this transaction.
Returns the Sprout note commitments in this transaction .
&self