Function ecrecover

pub fn ecrecover(
    sig: &FixedBytes<64>,
    recid: u8,
    msg: &FixedBytes<32>,
) -> Result<FixedBytes<32>, Error>
Expand description

Recover the public key from a signature and a message.

This function is using the secp256k1 crate, it is enabled by libsecp256k1 feature and it is in default.