Assessment reports>warpdotgreen-cli>Threat Model>initializePuzzleHashes

Function: initializePuzzleHashes(byte[32] _lockerPuzzleHash, byte[32] _unlockerPuzzleHash)

This function is used to initialize puzzle hashes for locking and unlocking tokens. It can only be called once. This function is expected to be called during deployment.

Inputs

  • _lockerPuzzleHash

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Puzzle hash for locking CATs on Chia.

  • _unlockerPuzzleHash

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Puzzle hash for unlocking CATs on Chia.

Branches and code coverage

Intended branches

  • Initializes puzzle hashes for locking and unlocking tokens.

Negative behavior

  • Revert if attempting to set puzzle hashes again.

Zellic © 2024Back to top ↑