_validate_multiple_evm_addresses

function _validate_multiple_evm_addresses(message: text, signatures: list<signature?>, account_auth_descriptor: account_auth_descriptor): list<byte_array>(source)

Verifies that the message has been authorized by the multi-sig auth descriptor. This implies that the signatures list contains enough signatures to reach the minimum amount of signatures required, and that all signatures are from valid signers from the auth descriptors

Throws "MISMATCHED SIGNER" if a signature is found to be out of place. They must be in the same order they were registered in when the auth descriptor was first created.

Throws "INSUFFICIENT SIGNERS" if the number of valid signatures was below the signature required threshold.

Throws if a signer signed the wrong message, or if the message is empty.

Return

the EVM addresses that signed the operation's message, in the same order as the signatures were provided, with null signatures omitted

Parameters

message

the message that was signed

signatures

the signatures received, in the order the signers are found on the auth descriptor. Any signers that didn't sign this message can have their signature set to null.

account_auth_descriptor

the auth descriptor that authorized this operation