check_auth_args

function check_auth_args(a_t: auth_type, args: byte_array, signers: list<byte_array>, required_flags: list<text>): validation_result(source)

Checks that the multi-sig auth descriptor has all the requirements to authorize an operation.

Can only be called from an operation.

Gives invalid results when the signatures cannot be validated, i.e.:

  • signers is 0 or more than one, but the auth type is auth_type.S

  • the single sig signer did not sign

  • not enough multisig signers signed

  • the flags of the auth descriptors do not contain all required_flags

Return

utils.VALID if valid, utils.invalid otherwise.

Parameters

args

The args for this auth descriptor.

signers

The signers for this auth descriptor.

required_flags

The flags it must have for the operation that needs to be authorized.