Jeffrey Wilcke
Mar 21, 2017 · 1 min read

On a side note: solidity already generates this swarm address for you. It’s based on the file name and contents (iirc). The deployed bytecode — the code that gets stored in the state, which isn’t the same as the transaction data — contains the swarm hash; it can be found in the last 32 bytes -1.

Jeffrey Wilcke

Written by

Ethereum Founder, Ether hacker & Gopher

More From Medium

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade