pub fn sig_from_digest_bytes_trial_recovery(
sig: &KSig,
digest: &[u8; 32],
vk: &VerifyingKey
) -> Result<EthSig>
Expand description
Converts to recoverable signature of 65-byte. ref. https://github.com/gakonst/ethers-rs/blob/master/ethers-signers/src/aws/utils.rs “rsig_from_digest_bytes_trial_recovery” ref. https://github.com/gakonst/ethers-rs/blob/master/ethers-signers/src/aws/utils.rs “rsig_to_ethsig” ref. https://github.com/gakonst/ethers-rs/pull/2260 ref. https://docs.rs/ecdsa/latest/ecdsa/struct.RecoveryId.html#method.trial_recovery_from_prehash