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>
Available on crate features node-api and 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.