
Smart contract dev 🦇 Beginner Rusteacean 🦀 Moved to @codeislight
Joined April 2022
- Tweets1.9K
- Following920
- Followers307
- Likes7.1K
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…
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…
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:
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 👌
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
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.
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
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.
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…
codeislight.eth (Archived) retweeted
First Keystore (Micro) Rollup has been achieved internally ✨
PoC done, polish + blogpost 🔜
codeislight.eth (Archived) retweeted
かぼちゃんは今朝、
深い眠りにつきました🌈
私に撫でられながら
眠るように
そっと逝きました。
かぼちゃんを愛して下さったみなさん、
長い間ありがとうございました。
kabochan.blog.jp/archives/51…
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). 🧵
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 👇
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
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
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)
codeislight.eth (Archived) retweeted
EIP7702 - a new alternative to 3074 from Vitalik to add quantum resistance and better compatibility with 4337
github.com/ethereum/EIPs/blo…
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 👀
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. 🧵






























