Winternitz

Fix-it Guide / STRK

Starknet

A Starknet account is a contract, and its address is a hash of the contract class and constructor data. Before deployment nothing reveals the key. After deployment the key sits in storage. The difference from other chains is that the signature check is contract code, so it can be replaced.

The rule

Exposed once the account is deployed, because deployment stores the public key on chain.

FIXABLE ON STARKNET ITSELF

  1. 01

    Check whether your account is deployed

    An address that has received funds but never sent a transaction is usually not deployed yet and reads SAFE FOR NOW. Sending the first transaction deploys it and publishes the key.

  2. 02

    Generate a Winternitz key tree in your browser

    One seed phrase produces a Merkle tree of one-time hash-based keys. Only the root goes on chain. Write the phrase down on paper before you continue.

  3. 03

    Deploy a Winternitz Account in Dual mode

    The account asks for your normal Stark signature and a Winternitz signature on every transaction. An attacker who breaks the curve still cannot move funds.

  4. 04

    Move assets in one multicall

    Transfer STRK, ETH and USDC from the old account to the new one in a single transaction, then stop using the old account.