Function starknet_crypto::recover

source ·
pub fn recover(
    message: &FieldElement,
    r: &FieldElement,
    s: &FieldElement,
    v: &FieldElement
) -> Result<FieldElement, RecoverError>
Expand description

Recovers the public key from a message and (r, s, v) signature parameters

§Arguments

  • msg_hash: The message hash
  • r_bytes: The r value of the signature
  • s_bytes: The s value of the signature
  • v_bytes: The v value of the signature