pub fn reveal_seals<'a>(
        &mut self,
        known_seals: impl Iterator<Item = &'a OutpointReveal> + Clone,
    ) -> usize {
        let mut counter = 0;
        match self {
            AssignmentVec::Declarative(_) => {}
            AssignmentVec::DiscreteFiniteField(set) => {
                *self = AssignmentVec::DiscreteFiniteField(
                    set.iter()
                        .map(|assignment| {
                            let mut assignment = assignment.clone();
                            counter +=
                                assignment.reveal_seals(known_seals.clone());
                            assignment
                        })
                        .collect(),
                );
            }
            AssignmentVec::CustomData(set) => {
                *self = AssignmentVec::CustomData(
                    set.iter()
                        .map(|assignment| {
                            let mut assignment = assignment.clone();
                            counter +=
                                assignment.reveal_seals(known_seals.clone());
                            assignment
                        })
                        .collect(),
                );
            }
        }
        counter
    }
/// Reveals previously known seal information (replacing blind UTXOs with
/// explicit ones). Function is used when a peer receives consignment
/// containing concealed seals for the outputs owned by the peer
Reveals previously known seal information (replacing blind UTXOs with
explicit ones). Function is used when a peer receives consignment
containing concealed seals for the outputs owned by the peer
Reveals previously known seal information ( replacing blind UTXOs with explicit ones ) . Function is used when a peer receives consignment containing concealed seals for the outputs owned by the peer
pub fn reveal_seals<'a>(
        &mut self,
        known_seals: impl Iterator<Item = &'a OutpointReveal> + Clone,
    ) -> usize {
        let mut counter = 0;
        match self {
            AssignmentVec::Declarative(_) => {}
            AssignmentVec::DiscreteFiniteField(set) => {
                *self = AssignmentVec::DiscreteFiniteField(
                    set.iter()
                        .map(|assignment| {
                            let mut assignment = assignment.clone();
                            counter +=
                                assignment.reveal_seals(known_seals.clone());
                            assignment
                        })
                        .collect(),
                );
            }
            AssignmentVec::CustomData(set) => {
                *self = AssignmentVec::CustomData(
                    set.iter()
                        .map(|assignment| {
                            let mut assignment = assignment.clone();
                            counter +=
                                assignment.reveal_seals(known_seals.clone());
                            assignment
                        })
                        .collect(),
                );
            }
        }
        counter
    }
pub fn reveal_seals < ' a > ( & mut self , known_seals : impl Iterator < Item = & ' a OutpointReveal > + Clone , ) -> usize { let mut counter = 0 ; match self { AssignmentVec :: Declarative ( _ ) => { } AssignmentVec :: DiscreteFiniteField ( set ) => { * self = AssignmentVec :: DiscreteFiniteField ( set . iter ( ) . map ( | assignment | { let mut assignment = assignment . clone ( ) ; counter += assignment . reveal_seals ( known_seals . clone ( ) ) ; assignment } ) . collect ( ) , ) ; } AssignmentVec :: CustomData ( set ) => { * self = AssignmentVec :: CustomData ( set . iter ( ) . map ( | assignment | { let mut assignment = assignment . clone ( ) ; counter += assignment . reveal_seals ( known_seals . clone ( ) ) ; assignment } ) . collect ( ) , ) ; } } counter }
Reveals previously known seal information (replacing blind UTXOs with
explicit ones).
Reveals previously known seal information ( replacing blind UTXOs with explicit ones ) .
&mut self
known_seals
impl Iterator<Item = &'a OutpointReveal> + Clone