_validate_ft4_signature

function _validate_ft4_signature(flags: list<text>, account: account, auth_descriptor: account_auth_descriptor)(source)

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

Can only be called from an operation.

Throws if the signature cannot be validated. Common reasons include:

  • the signers of the auth descriptor did not sign this transaction

  • too few signers signed the operation, in case of a multisig auth descriptor

  • the auth descriptor does not give sufficient permissions for the operation that is being called

Parameters

flags

the flags required by the operation

account

the account the user authenticated as

auth_descriptor

the auth descriptor that is authorizing this operation