Function: verifyUpdate(bytes update)
Based on the extracted signature value from the provided update, the function verifies the update of the authenticated signer and extracts the contents of the bytes update to return it alongside the signer.
Inputs
updateControl: Arbitrary.
Constraints: The length of the bytes type data must be at least 71 or greater.
Impact: The
signerandpayloadare extracted from the bytes data of the provided update for verification, after which they are returned.
Branches and code coverage
Intended branches
When including the signature of the trusted
signerand delivering thepayloadin the form of byte data, the values are accurately extracted and returned.When Ether exceeding the
verification_feevalue is sent, the remaining Ether is accurately returned to the caller.
Negative behavior
When the length of the
updatedata is less than 71, the transaction reverts.If the first four bytes of the
updatedo not match theEVM_FORMAT_MAGICvalue, the transaction reverts.If the signer value recovered from the signature is not included in the
trustedSignersarray, the transaction reverts.
Function call analysis
No external function calls found.