message_hash
- The hash of the signed messagesignature_r
- The r component of the ECDSA signature (x-coordinate of point R)signature_s
- The s component of the ECDSA signaturey_parity
- The parity of the y-coordinate of point R (true
for odd, false
for even)Some(public_key)
containing the x-coordinate of the recovered public key point if
the signature is valid, None
otherwise.