verify_signers_with_message

function verify_signers_with_message(ft_and_evm_signers: list<byte_array>, message: text, gtx_transaction: gtx_transaction)(source)

Does what verify_signers does, but receives the message as a parameter instead of using the auth message of the current operation.

Throws "MISMATCHED SIGNATURES" if any of the signers and signatures on the evm_signatures operation don't match in the exact order they're found.

Throws "MISSING SIGNATURE" if:

  • an EVM signer is specified but the signature is not found in the evm_signatures operation.

  • an FT signer is specified but the signature is not found in the signers of the transaction.

Throws "UNSUPPORTED SIGNER" if a signer passed is neither an EVM nor an FT signer, which means the byte array length is different from EVM_ADDRESS_SIZE and FT_PUBKEY_SIZE

Throws if the message is empty.

Throws if any signatures in evm_signatures is null or missing, or if there's extra signatures in that operation.

Parameters

ft_and_evm_signers

the signers that are expected to be found.

message

the message that was signed.

gtx_transaction

the transaction that was signed.

See also

verify_signers

if the message that must be signed is the one defined in the auth_handler for the current operation