evm_signatures

@mount("ft4.evm_signatures") operation evm_signatures(signers: list<byte_array>, signatures: list<signature?>)(source)

When it is required that an EVM signer signs an operation, but the signer is not part of an account auth descriptor yet, this operation must be used.

The operation must contain:

  • evm_signers

  • if required, an auth operation or a strategy operation

  • the operation that is being authorized

with nothing else inbetween them. Other operations may be added before and after these two.

Throws if:

  • the operation that is being authorized is not whitelisted,

  • there's no operation after this one, or

  • there is only one operation after this one, and it's an auth or strategy operation

Parameters

signers

The EVM addresses of signers (without 0x)

signatures

The signatures of the operation's auth message

See also

core.auth.is_evm_signatures_authorized_operation

for information on whitelisting operations to be able to accept EVM signatures that are not part of an auth descriptor

evm_auth

for information on how to retrieve messages and properly sign them

core.auth.is_auth_op

for information on what is an auth operation

core.accounts.strategies.is_strategy_op

for information on what is a strategy operation