FUNCTION

_validate_evm_signature

function _validate_evm_signature(op: gtx_operation, auth_op: gtx_operation, flags: list<text>, account: account, auth_descriptor: account_auth_descriptor)

Verifies that the signature found in the evm_auth operation is valid to authorize the operation being called.

Throws if the signature cannot be validated. The most common reasons include:

  • the auth handler for op is not found
  • the signer is not registered in the auth descriptor
  • too few signers signed the operation, in case of a multisig auth descriptor
  • the signer signed the wrong message
  • the auth descriptor does not give sufficient permissions for the operation that is being called

Parameters

  • op — the operation being called
  • auth_op — the evm_auth operation that is authorizing this operation
  • flags — the flags required by the operation
  • account — the account the user authenticated as
  • auth_descriptor — the auth descriptor that is authorizing this operation
© 2024 Chromia