pub fn reveal_seals<'a>(
        &mut self,
        known_seals: impl Iterator<Item = &'a OutpointReveal> + Clone,
    ) -> usize {
        let counter = 0;
        for (_, transition) in &mut self.state_transitions {
            transition.owned_rights_mut().iter_mut().fold(
                counter,
                |counter, (_, assignment)| {
                    counter + assignment.reveal_seals(known_seals.clone())
                },
            );
        }
        for extension in &mut self.state_extensions {
            extension.owned_rights_mut().iter_mut().fold(
                counter,
                |counter, (_, assignment)| {
                    counter + assignment.reveal_seals(known_seals.clone())
                },
            );
        }
        counter
    }
/// Reveals previously known seal information (replacing blind UTXOs with
/// unblind 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
unblind 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 unblind 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 counter = 0;
        for (_, transition) in &mut self.state_transitions {
            transition.owned_rights_mut().iter_mut().fold(
                counter,
                |counter, (_, assignment)| {
                    counter + assignment.reveal_seals(known_seals.clone())
                },
            );
        }
        for extension in &mut self.state_extensions {
            extension.owned_rights_mut().iter_mut().fold(
                counter,
                |counter, (_, assignment)| {
                    counter + assignment.reveal_seals(known_seals.clone())
                },
            );
        }
        counter
    }
pub fn reveal_seals < ' a > ( & mut self , known_seals : impl Iterator < Item = & ' a OutpointReveal > + Clone , ) -> usize { let counter = 0 ; for ( _ , transition ) in & mut self . state_transitions { transition . owned_rights_mut ( ) . iter_mut ( ) . fold ( counter , | counter , ( _ , assignment ) | { counter + assignment . reveal_seals ( known_seals . clone ( ) ) } , ) ; } for extension in & mut self . state_extensions { extension . owned_rights_mut ( ) . iter_mut ( ) . fold ( counter , | counter , ( _ , assignment ) | { counter + assignment . reveal_seals ( known_seals . clone ( ) ) } , ) ; } counter }
Reveals previously known seal information (replacing blind UTXOs with
unblind ones).
Reveals previously known seal information ( replacing blind UTXOs with unblind ones ) .
&mut self
known_seals
impl Iterator<Item = &'a OutpointReveal> + Clone