codeislight.eth (Archived) (@CodeIsLightEth) header
codeislight.eth (Archived) (@CodeIsLightEth) profile picture

Smart contract dev 🦇 Beginner Rusteacean 🦀 Moved to @codeislight

Joined April 2022
Photo by codeislight.eth (Archived) (@CodeIsLightEth)Photo by codeislight.eth (Archived) (@CodeIsLightEth)Photo by codeislight.eth (Archived) (@CodeIsLightEth)Photo by codeislight.eth (Archived) (@CodeIsLightEth)Photo by codeislight.eth (Archived) (@CodeIsLightEth)Photo by codeislight.eth (Archived) (@CodeIsLightEth)Photo by codeislight.eth (Archived) (@CodeIsLightEth)Photo by codeislight.eth (Archived) (@CodeIsLightEth)Photo by codeislight.eth (Archived) (@CodeIsLightEth)Photo by codeislight.eth (Archived) (@CodeIsLightEth)
my first time ranking top 5 on @code4rena 🫶, i would love to express my gratitude for all the people who keep on educating and pushing forward the space.
15
1
99
8,637
They ain't ready for what is coming (in a good way)
1
2
3
269
codeislight.eth (Archived) retweeted
We are going to look at the new Extension system that is coming to @0xDYAD soon. This will enable us to do so much more. nitter.cf/i/broadcasts/1OwxWNyVR…
2
12
1
66
4,604
codeislight.eth (Archived) retweeted
How I found a critical bug thanks to my low level understanding of abi encoding Let's start with a quick quiz: What is the `result` here? If you guessed that it would be a 64 (0x40) byte array with two 32 byte words, each with a value of 1, you'd be correct This is because all static types get converted to 32 byte words, even if they only require a few bytes. This prevents issues like hash collisions where different arguments can produce the same encoded output, which can occur when `abi.encodePacked` is used: kadenzipfel.github.io/smart-… So how did this knowledge allow me to find a critical bug? In my review of the SquidRouter protocol, the version id, `uint32(1)`, was abi encoded along with a payload with the expectation that the version could be decoded from the first 4 bytes (32 bits) of the payload However, since contrary to expectation, `abi.encode` resulted in an entire word being used rather than just 32 bits, the entire payload was shifted over unexpectedly, causing the decoded payload to be entirely incorrect. This scrambled payload ultimately would lead to tokens being permanently locked in the contract For a more specific explanation of the finding (3.1.1) and to see the rest of report, see: github.com/kadenzipfel/audit…
10
21
4
253
24,825
This is beautiful
This quoted post is unavailable.
2
162
Finally
JULIAN ASSANGE IS FREE Julian Assange is free. He left Belmarsh maximum security prison on the morning of 24 June, after having spent 1901 days there. He was granted bail by the High Court in London and was released at Stansted airport during the afternoon, where he boarded a plane and departed the UK. This is the result of a global campaign that spanned grass-roots organisers, press freedom campaigners, legislators and leaders from across the political spectrum, all the way to the United Nations. This created the space for a long period of negotiations with the US Department of Justice, leading to a deal that has not yet been formally finalised. We will provide more information as soon as possible. After more than five years in a 2x3 metre cell, isolated 23 hours a day, he will soon reunite with his wife Stella Assange, and their children, who have only known their father from behind bars. WikiLeaks published groundbreaking stories of government corruption and human rights abuses, holding the powerful accountable for their actions. As editor-in-chief, Julian paid severely for these principles, and for the people's right to know. As he returns to Australia, we thank all who stood by us, fought for us, and remained utterly committed in the fight for his freedom. Julian's freedom is our freedom. [More details to follow]
67
codeislight.eth (Archived) retweeted
I realized the other day that some developers don't know how to "crunch" smart contracts. That is to say, mine an efficient address, so that it's cheaper to include them in calldata and store them. Here is my short guide:
14
30
7
365
44,911
codeislight.eth (Archived) retweeted
2 weeks ago at @ETHBerlin, me together with @OanaDesu & @Chloe_zhuX decided to make an unconventional hackathon project: A visual explainer of some of the math behind zkSNARKs. Using manim (3Blue1Brown's animation tool) we created this: youtu.be/nQG4iD33OsM Enjoy 👌
10
21
3
171
15,332
codeislight.eth (Archived) retweeted
Just released Prool – a small library that provides programmatic HTTP testing instances (Anvil, 4337 Bundler, etc) designed for TypeScript test runners such as Vitest. 👉 github.com/wevm/prool
6
12
2
80
8,285
codeislight.eth (Archived) retweeted
Diagrams with code snippets in VSCode → @CodeDiagram 🙌
13
8
2
70
5,099
codeislight.eth (Archived) retweeted
We’re hiring a DevOps Engineer for @gasbot_xyz. Please share if you know someone great! Responsibilities: - DevOps things - Python scripting with web3 dot py - Supporting backend API (Flask) - System health monitoring Hit me up on TG with your experience and desired pay: t.me/django_gasbot Only non-North Korean hackers considered.
3
6
33
4,140
codeislight.eth (Archived) retweeted
Updated the `career` section on my website to allow for multiple fields and subjects to be recorded -- now you are able to follow my polymath journey properly! Hopefully it inspires you in some way :) degatchi.com/autobiography
6
3
47
3,903
This is absolutely wholesome ❤️
Alhamdulillah with the help of Crypto Twitter, a first distribution of 1,000 hot meals was sent to Gaza. Back in March we raised $50,000 in 2 weeks. More distributions to come! ❤️
80
codeislight.eth (Archived) retweeted
I've been trying to be consistent at waking up at 3-4 am and on the days I do I get soooo much work done. the psychological benefits from these early hours are super underlooked when considering why early wake-up times are superior.
11
2
73
5,520
This is one of the wildest crypto recovery i've seen m.youtube.com/watch?v=o5IySp…
44
codeislight.eth (Archived) retweeted
Ever had to hunt down etherscan api keys to verify contracts? Ever wrestled with cli to verify? Ever felt dread because of etherscan captchas? No more! I built a smol tool that takes a verified contract in one chain and verifies it on other chains etherscan-verification.0xngm…
41
58
13
566
61,104
codeislight.eth (Archived) retweeted
First Keystore (Micro) Rollup has been achieved internally ✨ PoC done, polish + blogpost 🔜
2
4
4
43
10,183
This is legitimately the first shitcoin lol, now crypto as an industry is a whole
#DePINs Proof Of Shit - Every “deposit” made on this toilet, users are awarded “Ggool,” a digital currency aptly nicknamed “shit coin”. A South Korean professor, Cho Jae-Weon, has developed a revolutionary toilet that not only tackles waste management but also incentivizes users with cryptocurrency for their…contributions. As per the details, the high-tech toilet transforms your daily 500 grams of waste into a mighty 50 liters of methane gas. This gas is then cleverly converted into 0.5 kWh of clean energy, essentially turning your bathroom breaks into a mini power plant. Apparently, Professor Cho isn’t just saving the planet, he’s also rewarding responsible waste disposal. For every “deposit” made, users are awarded “Ggool,” a digital currency aptly nicknamed “shit coin”. While the name might not be glamorous, the concept certainly is – getting paid (in digital currency) for doing your business and helping the environment. h/t gazettenow.com
40