Starknet
Badges
About
Starknet is a general purpose ZK Rollup based on STARKs and the Cairo VM.
$709.05 M
3.77%
- Users' withdrawals can be censored by the permissioned operators.
- Upgrades executed by actors with more centralized control than a Security Council provide less than 7d for users to exit if the permissioned operator is down or censoring.
Badges
About
Starknet is a general purpose ZK Rollup based on STARKs and the Cairo VM.
...
Choose token
![](https://assets.coingecko.com/coins/images/26433/large/starknet.png?1696525507)
![](https://assets.coingecko.com/coins/images/279/large/ethereum.png?1595348880)
![](https://assets.coingecko.com/coins/images/6319/large/usdc.png?1696506694)
![](https://coin-images.coingecko.com/coins/images/37715/large/135474885.png?1715330450)
![](https://assets.coingecko.com/coins/images/18834/large/wstETH.png?1696518295)
![](https://assets.coingecko.com/coins/images/325/large/Tether.png?1696501661)
![](https://assets.coingecko.com/coins/images/7598/large/wrapped_bitcoin_wbtc.png?1696507857)
![](https://assets.coingecko.com/coins/images/22171/large/Frame_1.png?1696521515)
![](https://assets.coingecko.com/coins/images/9956/large/Badge_Dai.png?1696509996)
![](https://assets.coingecko.com/coins/images/20764/large/reth.png?1696520159)
![](https://assets.coingecko.com/coins/images/14666/large/Group_3.png?1696514341)
![](https://assets.coingecko.com/coins/images/12504/large/uni.jpg?1696512319)
![](https://assets.coingecko.com/coins/images/28285/large/sfrxETH_icon.png?1696527285)
![](https://assets.coingecko.com/coins/images/13423/large/Frax_Shares_icon.png?1696513183)
![](https://assets.coingecko.com/coins/images/13422/large/FRAX_icon.png?1696513182)
...
...
Starknet Provisions
2024 Feb 14th
Starknet begins allocating $STRK to early contributors and users.
StarkGate Alpha
2022 May 9th
Bridge is live on mainnet, serving as gateway between Ethereum and Starknet.
Funds can be stolen if
Funds can be lost if
Funds can be frozen if
Users can be censored if
MEV can be extracted if
State validation
ZK proofs (ST)zkSTARKS are zero knowledge proofs that ensure state correctness.
Data availability
On chain (SD)All of the data (SD = state diffs) needed for proof construction is published on chain.
Exit window
NoneThere is no window for users to exit in case of an unwanted regular upgrade since contracts are instantly upgradable.
Sequencer failure
No mechanismThere is no mechanism to have transactions be included if the sequencer is down or censoring.
Proposer failure
Cannot withdrawOnly the whitelisted proposers can publish state roots on L1, so in the event of failure the withdrawals are frozen.
![Starknet](/icons/starknet.png)
- The project calls itself a rollup.
- L2 state roots are posted to Ethereum L1.
- Inputs for the state transition function are posted to L1.
- A source-available node exists that can recreate the state from L1 data. Please note that the L2BEAT team has not verified the validity of the node source code. View code
- A complete and functional proof system is deployed.
- Users’ withdrawals can be censored by the permissioned operators.
- Upgrades executed by actors with more centralized control than a Security Council provide less than 7d for users to exit if the permissioned operator is down or censoring.
- Upgrades unrelated to on-chain provable bugs provide less than 30d to exit.
Validity proofs ensure state correctness
Each update to the system state must be accompanied by a ZK proof that ensures that the new state was derived by correctly applying a series of valid user transactions to the previous state. These proofs are then verified on Ethereum by a smart contract.
Zero knowledge STARK cryptography is used
Despite their production use zkSTARKs proof systems are still relatively new, complex and they rely on the proper implementation of the polynomial constraints used to check validity of the Execution Trace.
Funds can be lost if the proof system is implemented incorrectly.
All data required to reconstruct rollup state is published on chain
State diffs are publish on-chain as blob or calldata on every state update. The state diffs contain information on every contact whose storage was updated, and additional information on contract deployments. From diffs full system state can be recovered. Contracts’ code is not published on L1, but can be trustlessly verified if available elsewhere.
Starknet doesn’t use any compression scheme.
There is no non-empty genesis state.
The data format has been updated with different versions, and the full specification can be found here.
Each update to the system state must be accompanied by a ZK proof that ensures that the new state was derived by correctly applying a series of valid user transactions to the previous state. These proofs are then verified on Ethereum by a smart contract.
The system has a centralized operator
The operator is the only entity that can propose blocks. A live and trustworthy operator is vital to the health of the system. Typically, the Operator is the hot wallet of the Starknet service submitting state updates for which proofs have been already submitted and verified.
MEV can be extracted if the operator exploits their centralized position and frontruns user transactions.
Users can't force any transaction
There is no general mechanism to force the sequencer to include the transaction.
Users can be censored if the operator refuses to include their transactions.
Regular exit
The user initiates the withdrawal by submitting a regular transaction on this chain. When the block containing that transaction is proven the funds become available for withdrawal on L1. Finally the user submits an L1 transaction to claim the funds. This transaction does not require a merkle proof. Note that the withdrawal request can be censored by the Sequencer.
Funds can be frozen if the operator censors withdrawal transaction.
Emergency exit
There is no generic escape hatch mechanism as Starknet cannot be forced by users into a frozen state. Note that a freezing mechanism on L2, to be secure, requires anti-censorship protection.
![A diagram of the upgrades and governance](/images/upgrades-and-governance/starknet.png)
The Upgrading mechanism of Starknet follows a similar scheme for all of their smart contracts. A contract initializes with the creator of the contract as a Governor, who can then nominate or remove other Governors allowing them to call restricted governor functions.
The Starknet core contract is upgradable by 2 appointed Starknet Proxy Governors
: A Proxy multisig with a 2 / 5 threshold and an EOA. Implementations can be upgraded without delay, thus users are not provided with an exit window in case of unwanted upgrades.
Starknet Implementation Governors
have the authority to execute governed functions that modify contract parameters without delay. These actions encompass registering/removing Operators, specifying the program and config hash, or setting the Message Cancellation Delay between L1 and L2. Currently it is governed by a Multisig with a 2 / 5 threshold and an EOA. The verifier address is set upon initialization of the Starknet Implementation contract.
Via the proxy contracts, the SHARP Verifier Governors
can upgrade the GPSStatement Verifier implementation. It is important to note that the state is also maintained in the implementation contract, rather than in the proxy itself. An upgrade to the Verifier could potentially introduce code that approves fraudulent states. Currently, there is no delay before any upgrade takes effect.
The StarkGate bridge escrows are mostly governed and upgraded by a Bridge Multisig, others by different owners. (see Permissions section)
At present, the StarkNet Foundation hosts voting for STRK token holders (or their delegates) regarding protocol updates to reflect community intent, however, there is no direct authority to implement the execution of these upgrades.
The system uses the following set of permissioned addresses:
Can upgrade implementation of the system, potentially gaining access to all funds stored in the bridge. Can also upgrade implementation of the StarknetCore contract, potentially allowing fraudulent state to be posted. Currently there is 0s delay before the upgrade.
One of Proxy Governors. This is a Gnosis Safe with 2 / 5 threshold.
Those are the participants of the ProxyMultisig.
Can upgrade implementation of SHARP Verifier, potentially with code approving fraudulent state. Currently there is 0s delay before the upgrade.
SHARP Verifier Governor. This is a Gnosis Safe with 2 / 3 threshold.
Those are the participants of the SHARPVerifierGovernorMultisig.
Allowed to post state updates. When the operator is down the state cannot be updated.
Can upgrade implementation of the ETH escrow, potentially gaining access to all funds stored in the bridge. Currently there is 3d delay before the upgrade.
Can upgrade implementation of the WBTC escrow, potentially gaining access to all funds stored in the bridge. Currently there is 3d delay before the upgrade.
Can upgrade implementation of the USDC escrow, potentially gaining access to all funds stored in the bridge. Currently there is 3d delay before the upgrade.
Can upgrade implementation of the USDT escrow, potentially gaining access to all funds stored in the bridge. Currently there is 3d delay before the upgrade.
Can upgrade implementation of the wstETH escrow, potentially gaining access to all funds stored in the bridge. Currently there is 3d delay before the upgrade.
Can upgrade implementation of the rETH escrow, potentially gaining access to all funds stored in the bridge. Currently there is 3d delay before the upgrade.
Can upgrade implementation of the UNI escrow, potentially gaining access to all funds stored in the bridge. Currently there is 0s delay before the upgrade.
Can upgrade implementation of the FRAX escrow, potentially gaining access to all funds stored in the bridge. Currently there is 0s delay before the upgrade.
Can upgrade implementation of the FXS escrow, potentially gaining access to all funds stored in the bridge. Currently there is 0s delay before the upgrade.
Can upgrade implementation of the sfrxETH escrow, potentially gaining access to all funds stored in the bridge. Currently there is 0s delay before the upgrade.
Can upgrade implementation of the LUSD escrow, potentially gaining access to all funds stored in the bridge. Currently there is 0s delay before the upgrade.
Can upgrade implementation of the StarkGate MultiBridge escrow, potentially gaining access to all funds stored in the bridge. Is also the TokenAdmin of the StarkgateManager contract, permissioned to blacklist tokens from enrollment, pause deposits on the MultiBridge, and add existing bridges to the Registry contract. Additionally, the StarkgateManager and StarkgateRegistry contracts can be upgraded by this address.
Can upgrade the following bridges: FRAX, FXS, sfrxETH, USDT, WBTC, ETH, USDT, and additional permissions on other bridges, like setting the max total balance or activate withdrawal limits. This is a Gnosis Safe with 2 / 4 threshold.
Those are the participants of the BridgeMultisig.
Can upgrade implementation of the STRK escrow, potentially gaining access to all funds stored in the bridge. Currently there is 3d delay before the upgrade.
![A diagram of the smart contract architecture](/images/architecture/starknet.png)
The system consists of the following smart contracts on the host chain (Ethereum):
CallProxy for GpsStatementVerifier.
Starkware SHARP verifier used collectively by Starknet, Sorare, ImmutableX, Apex, Myria, rhino.fi and Canvas Connect. It receives STARK proofs from the Prover attesting to the integrity of the Execution Trace of these Programs including correctly computed state root which is part of the Program Output.
MemoryPageFactRegistry is one of the many contracts used by SHARP verifier. This one is important as it registers all necessary on-chain data.
Same as MemoryPageFactRegistry but stores facts proved by the old SHARP Verifier, used as a fallback.
This contract allows the permissionless creation and configuration of StarkGate token escrows. Tokens can also be blacklisted for creation, and already actively bridged tokens can be deactivated from depositing by a designated TokenAdmin.
Upgrade delay: 0s
A central registry contract to map token addresses to their StarkGate bridge contract.
Upgrade delay: 0s
Value Locked is calculated based on these smart contracts and tokens:
Upgrade delay: 3d
DAI Vault for custom DAI Gateway managed by MakerDAO. The current bridge cap is 5.00 M DAI.
Upgrade delay: 3d
Upgrade delay: 3d
Upgrade delay: 3d
Upgrade delay: 3d
Upgrade delay: 0s
Upgrade delay: 0s
Upgrade delay: 0s
Upgrade delay: 0s
Upgrade delay: 0s
StarkGate bridge for LORDS.
Upgrade delay: 3d
The current deployment carries some associated risks:
Funds can be stolen if a contract receives a malicious code upgrade. There is no delay on code upgrades (CRITICAL).