Assessment reports>LightWallet>Threat Models>createAccount

Function: createAccount(byte[32] byte[32], uint256 uint256)

This is a helper function used to get the address of a deployed LightWallet contract or deploy a new one.

Inputs

  • hash

    • Control: Full.

    • Constraints: None.

    • Impact: Specifies the EntryPoint address the LightWallet should use.

  • salt

    • Control: Full.

    • Constraints: None.

    • Impact: Specifies the salt to use when deploying the proxy contract for LightWallet.

Branches and code coverage (including function calls)

Intended branches

  • Account already exists --- return existing LightWallet.

  • Account does not exist --- create new LightWallet.

Zellic © 2024Back to top ↑