fn send_signature_shares(
        &self,
        ecdsa_pool: &dyn EcdsaPool,
        block_reader: &dyn EcdsaBlockReader,
    ) -> EcdsaChangeSet {
        block_reader
            .requested_signatures()
            .filter(|(request_id, _)| {
                !self.signer_has_issued_signature_share(ecdsa_pool, &self.node_id, request_id)
            })
            .map(|(request_id, sig_inputs)| {
                self.crypto_create_signature_share(block_reader, request_id, sig_inputs)
            })
            .flatten()
            .collect()
    }
/// Generates signature shares for the newly added signature requests
Generates signature shares for the newly added signature requests
Generates signature shares for the newly added signature requests
fn send_signature_shares(
        &self,
        ecdsa_pool: &dyn EcdsaPool,
        block_reader: &dyn EcdsaBlockReader,
    ) -> EcdsaChangeSet {
        block_reader
            .requested_signatures()
            .filter(|(request_id, _)| {
                !self.signer_has_issued_signature_share(ecdsa_pool, &self.node_id, request_id)
            })
            .map(|(request_id, sig_inputs)| {
                self.crypto_create_signature_share(block_reader, request_id, sig_inputs)
            })
            .flatten()
            .collect()
    }
fn send_signature_shares ( & self , ecdsa_pool : & dyn EcdsaPool , block_reader : & dyn EcdsaBlockReader , ) -> EcdsaChangeSet { block_reader . requested_signatures ( ) . filter ( | ( request_id , _ ) | { ! self . signer_has_issued_signature_share ( ecdsa_pool , & self . node_id , request_id ) } ) . map ( | ( request_id , sig_inputs ) | { self . crypto_create_signature_share ( block_reader , request_id , sig_inputs ) } ) . flatten ( ) . collect ( ) }
Generates signature shares for the newly added signature requests
Generates signature shares for the newly added signature requests
&self
ecdsa_pool
&dyn EcdsaPool
block_reader
&dyn EcdsaBlockReader
&self
ecdsa_pool
&dyn EcdsaPool
block_reader
&dyn EcdsaBlockReader