starknet_crypto

Function recover

Source
pub fn recover(
    message: &Felt,
    r: &Felt,
    s: &Felt,
    v: &Felt,
) -> Result<Felt, RecoverError>
Expand description

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

ยงParameters

  • 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.