Assessment reports>Nukem Loans>Threat Model>checkSignature

Function: checkSignature(address authorizer, address market, address debtor, uint256 block_number, uint256 starts_at, uint256 ends_at, uint256 deadline, uint8 v, byte[32] r, byte[32] s)

This checks the centralized signature.

Inputs

  • authorizer

    • Control: Full.

    • Constraints: None.

    • Impact: The signer.

  • market

    • Control: Full.

    • Constraints: None.

    • Impact: The relevant market where the liquidation is happening.

  • debtor

    • Control: Full.

    • Constraints: None.

    • Impact: The debtor.

  • block_number

    • Control: Full.

    • Constraints: None.

    • Impact: The block_number of the signature.

  • starts_at

    • Control: Full.

    • Constraints: None.

    • Impact: When the auction starts.

  • ends_at

    • Control: Full.

    • Constraints: None.

    • Impact: When the auction ends.

  • deadline

    • Control: Full.

    • Constraints: None.

    • Impact: The deadline.

  • v

    • Control: Full.

    • Constraints: None.

    • Impact: Signature.

  • r

    • Control: Full.

    • Constraints: None.

    • Impact: Signature.

  • s

    • Control: Full.

    • Constraints: None.

    • Impact: Signature.

Branches and code coverage (including function calls)

Intended branches

  • Verify signature against authorizer.

Negative behavior

  • Works through blockchain fork.

Zellic © 2023Back to top ↑