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)
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
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
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
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
codeislight.eth (Archived) retweeted
The Guardian Audit report for DN404 is out. Super big thanks to all the great efforts and sharp eyes of the researchers at @GuardianAudits. The PDF report can be found in the Github (link at the end of this thread). 🧵
12
23
10
174
17,493
codeislight.eth (Archived) retweeted
With the release of bounty.vision from @NascentSecurity, something has popped into my head: does "Bigger Number == Better Security"? and I've come to the conclusion: a resounding NO* *in isolation let explore what makes a good bug bounty 👇
4
7
1
45
7,689
codeislight.eth (Archived) retweeted
building in crypto w/ @gakonst tons of insights on scaling, use cases, thinking across market cycles, zero-knowledge proofs, building and investing in the space
2
6
1
46
18,972
codeislight.eth (Archived) retweeted
I was lucky enough to learn this at a relatively young age. When I was transitioning out of music and into tech there was like a 6 mo period before the next semester started. I planned to just hang out for the entirety and within maybe 3 mo I started to go crazy
You can’t escape work You can escape the employment system. But if you think you’ve left work behind there will be a reckoning The desire to contribute is human.
1
1
3
822
codeislight.eth (Archived) retweeted
Given a network, get a token addy and a whale + snippet to prank and transfer Awesome work by @CodeIsLight ! (You need this for Medusa and Echidna)
3
1
2
16
2,932
codeislight.eth (Archived) retweeted
I used to think that the best auditors had ~80% of their submitted issues validated 🎯 Interesting to see the "winrate" of some of @sherlockdefi's top auditors 👀
12
5
3
115
10,650
codeislight.eth (Archived) retweeted
Bite-Size DarkForest Stories: This Episode - Available Dynamic Fuzzers for Smart Contracts. In this episode, we will focus on tools that are actively maintained. While you don't have to use all of them, as an auditor and smart contract developer, you should be aware of them. 🧵
1
4
21
1,844