try_recover_signers

Function try_recover_signers 

Source
pub fn try_recover_signers<I, F, T>(
    items: I,
    decode: F,
) -> Result<Vec<Recovered<T>>, RecoveryError>
where I: IntoParallelIterator, F: Fn(I::Item) -> Result<T, RecoveryError> + Sync, T: SignedTransaction,
Available on crate feature rayon only.
Expand description

Decodes and recovers a list of Recovered transactions from an iterator.

The decode closure transforms each item into a SignedTransaction, which is then recovered.

Returns an error if decoding or signature recovery fails for any transaction.

When the rayon feature is enabled, recovery is performed in parallel.