<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/understanding-solidity-s-create-create2-with-tornado-cash-1m-hack-h0ogjeynu" -->

---
title: Understanding Solidity’s create &amp; create2 with Tornado...
description: Smart contract addresses are deterministic and can be computed before deployment. The &#x27;create&#x27; opcode in Solidity is used to deploy and generate a contract...
canonical: https://daily.dev/posts/understanding-solidity-s-create-create2-with-tornado-cash-1m-hack-h0ogjeynu
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Understanding Solidity’s create &amp; create2 with Tornado Cash $1M Hack | daily.dev
og:description: Smart contract addresses are deterministic and can be computed before deployment. The &#x27;create&#x27; opcode in Solidity is used to deploy and generate a contract...
og:url: https://daily.dev/posts/understanding-solidity-s-create-create2-with-tornado-cash-1m-hack-h0ogjeynu
og:image: https://api.daily.dev/og/posts/h0OgJeYnu.png
og:image:alt: Understanding Solidity’s create &amp; create2 with Tornado Cash $1M Hack
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Understanding Solidity’s create & create2 with Tornado Cash $1M Hack

**[Coins Bench](https://daily.dev/sources/coinsbench)** · 2 min read · 7 upvotes · 0 comments

## Summary

Smart contract addresses are deterministic and can be computed before deployment. The 'create' opcode in Solidity is used to deploy and generate a contract address. The 'create2' opcode computes a deterministic address for a new contract.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://coinsbench.com/understanding-soliditys-create-create2-with-tornado-cash-1m-hack-01f8c147e5c7>

---

Tags: [#smart-contracts](https://daily.dev/tags/smart-contracts), [#solidity](https://daily.dev/tags/solidity)

[View this post on daily.dev](https://daily.dev/posts/understanding-solidity-s-create-create2-with-tornado-cash-1m-hack-h0ogjeynu)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Understanding Solidity’s create & create2 with Tornado Cash $1M Hack","url":"https://daily.dev/posts/understanding-solidity-s-create-create2-with-tornado-cash-1m-hack-h0ogjeynu","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/understanding-solidity-s-create-create2-with-tornado-cash-1m-hack-h0ogjeynu"},"datePublished":"2024-05-06T15:07:39.861Z","dateModified":"2024-05-09T08:43:33.910Z","description":"Smart contract addresses are deterministic and can be computed before deployment. The 'create' opcode in Solidity is used to deploy and generate a contract...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c5afb418698814870a644e4df943b4b7?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c5afb418698814870a644e4df943b4b7?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Coins Bench","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Coins Bench","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/ba340d3c8caa4c2586911332928e24d9","url":"https://daily.dev/sources/coinsbench"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/understanding-solidity-s-create-create2-with-tornado-cash-1m-hack-h0ogjeynu","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":7},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"smart-contracts,solidity","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Coins Bench","item":"https://daily.dev/sources/coinsbench"},{"@type":"ListItem","position":3,"name":"Understanding Solidity’s create & create2 with Tornado Cash $1M Hack"}]}
```

