Function: checkSignature(address authorizer, address market, uint256 price, uint256 deadline, uint8 v, bytes32 r, bytes32 s)
This checks a signature.
Inputs
authorizerControl: Fully controlled by the caller.
Constraints: Checked to be the owner of the contract and part of a valid signature.
Impact: Authorizer of the signature.
marketControl: Fully controlled by the caller.
Constraints: Checked to be the address of the contract.
Impact: Market address.
priceControl: Fully controlled by the caller.
Constraints: Checked to be a valid price.
Impact: Price of the signature.
deadlineControl: Fully controlled by the caller.
Constraints: Checked to be in the future and part of a valid signature.
Impact: Deadline of the signature.
vControl: Fully controlled by the caller.
Constraints: Checked to be a valid signature.
Impact: Signature v.
rControl: Fully controlled by the caller.
Constraints: Checked to be a valid signature.
Impact: Signature r.
sControl: Fully controlled by the caller.
Constraints: Checked to be a valid signature.
Impact: Signature s.
Branches and code coverage (including function calls)
Intended branches
Verify that the signature constructed from
authorizer,market,price,deadline,v,r, andsis valid.
Negative behavior
Should not allow the replay of a signature. This is not enforced, as there is no nonce put in place.