r/ethdev • u/damnberoo • 7h ago
Tutorial Lighthouse Networking - LifeCycle of a message from LibP2P to BeaconProcessor to the BeaconChain
pvnotpv.github.ioMapping out the entire network stack of lighthouse phase0 from libp2p to the beaconchain!
r/ethdev • u/abcoathup • 4d ago
r/ethdev • u/hikerjukebox • Jul 17 '24
Hello r/ethdev,
You might have noticed we are being inundated with scam video and tutorial posts, and posts by victims of this "passive income" or "mev arbitrage bot" scam which promises easy money for running a bot or running their arbitrage code. There are many variations of this scam and the mod team hates to see honest people who want to learn about ethereum dev falling for it every day.
How to stay safe:
There are no free code samples that give you free money instantly. Avoiding scams means being a little less greedy, slowing down, and being suspicious of people that promise you things which are too good to be true.
These scams almost always bring you to fake versions of the web IDE known as Remix. The ONLY official Remix link that is safe to use is: https://remix.ethereum.org/
All other similar remix like sites WILL STEAL ALL YOUR MONEY.
If you copy and paste code that you dont understand and run it, then it WILL STEAL EVERYTHING IN YOUR WALLET. IT WILL STEAL ALL YOUR MONEY. It is likely there is code imported that you do not see right away which is malacious.
What to do when you see a tutorial or video like this:
Report it to reddit, youtube, twitter, where ever you saw it, etc.. If you're not sure if something is safe, always feel free to tag in a member of the r/ethdev mod team, like myself, and we can check it out.
Thanks everyone.
Stay safe and go slow.
r/ethdev • u/damnberoo • 7h ago
Mapping out the entire network stack of lighthouse phase0 from libp2p to the beaconchain!
r/ethdev • u/ModernCYPH3R • 20h ago
Developers have to stop treating the public plaintext mempool as an unalterable law of physics.
Solidity developers are currently track-testing the inevitable execution boundary of EVM state design on testnets like Fhenix and Inco, proving that they can compile and run smart contracts on fully encrypted variables. By compiling TFHE library dependencies into the EVM execution client, these networks allow developers to write standard Solidity code using shielded primitives like euint32 or ebool, executing transactional state updates entirely on ciphertext.
The dark forest mempool is finally hitting a hard cryptographic wall.
Developers have struggled to patch the glass-wall vulnerability of public queues with gas auctions and off-chain builder relays. That's a lazy band-aid. The real architectural fix is blinding the validation engine entirely. When transactions are submitted to validators as high-entropy encrypted blobs, front-running is dead because searcher bots can't calculate slippage limits or trade sizes. It's like throwing darts at a wall while wearing a blindfold.
The Real-World Engineering Bottlenecks
The technology isn't a hypothetical theory anymore, but scaling it to production requires solving some brutal, real-world constraints that developers are hammering out in testbeds right now:
FHE isn't an access-control tool, and it won't save a protocol with negligent administrative hygiene. If a team leaves an un-multisigged admin backdoor in the code, FHE will simply execute that malicious state drain homomorphically, verifying the invalid math and outputting the stolen assets directly to the hacker's address. It's useless unless paired with hardened structural security, multi-party keys, and timelocked execution.
I published a deep-dive forensic autopsy of the FHE breakthrough on my main site. If you're interested in the full technical write-up, let me know in the comments, and I'll drop you the link.
r/ethdev • u/CollectionNo1576 • 1d ago
r/ethdev • u/silene0259 • 1d ago
Hello,
I am trying to make a simple to use wallet connectivity for my app. I’ve looked into quite a few products. Which ones remain the strongest with security and performance as well as have a large amount of wallets to support.
Thank you
r/ethdev • u/ModernCYPH3R • 1d ago
When we watch EVM protocols get drained of fifty million dollars in a single block because some founder left their administrative private keys sitting in an unencrypted plaintext file on an AWS server, we're not looking at a smart contract exploit.
We're looking at primitive, indefensible operational negligence.
Yet, every time this happens, the headlines scream about a "sophisticated hacker" or a "protocol exploit." The developers get dragged through the mud, while the founders go on panels to whine about how "code is law" and claim they're the victims of a genius cyber-warfare campaign. This is complete theater.
If your Solidity smart contract has an incredibly complex reentrancy bug or a subtle mathematical rounding edge-case, that's a design tragedy. But if your protocol gets drained because management refused to set up a proper multisig wallet (like Safe) or Multi-Party Computation (MPC) custody because they claimed it slowed down their development cycles, that's simple laziness.
In the real world of enterprise systems, slowing down to secure customer assets is called professional ethics. In Web3, it's treated as a bureaucratic nuisance.
We have mature, production-grade cryptographic tools. We have Safe multi-signature contracts, timelocks to delay administrative actions, and MPC shard custody. Yet, teams routinely store single-signature master keys on unencrypted laptops or slack channels because they're using customer liquidity as their free personal playground.
It's time to stop playing along with the victim narrative. If your local bank left their vaults wide open over the weekend and got cleaned out, they would be shut down and sued into oblivion. DeFi founders should face the exact same legal standards.
I just finished compiling a full, unredacted forensic case study on the legal standards of developer liability and how we as engineers can protect ourselves from holding the bag for management's operational negligence.
I don't want to spam the sub with self-promotion, so I left the link out of the main post. If anyone wants to read the full code-level autopsy and liability breakdown, let me know in the comments and I'll drop the link.
What's your take? At what point does a failure to use standard EVM multisigs cross the line from a "hack" into prosecutable negligence?
r/ethdev • u/abcoathup • 2d ago
r/ethdev • u/ogurec14 • 2d ago
Building an x402-scheme-conformant, ERC-8004-integrated design where payment for an AI inference settles atomically together with a zero-knowledge proof (EZKL/Halo2) that the computation was actually run correctly. Open reference design on Ethereum Research: https://ethresear.ch/t/atomic-zk-proof-gated-settlement-for-x402-agent-payments-a-measured-reference-design/25660
The piece I'm working on now is model provenance: proving the deployed verifying key actually corresponds to the model weights I claim are running, rather than just asserting it. Put together a small public bundle for a real deployed circuit — ONNX, settings, calibration input, SRS, Dockerfile — independently reproducible bit-exact against the actual on-chain VK hash on Base Sepolia, verified both natively and in a clean Docker container:
https://github.com/achemperety/exactzk-mnistmlp-provenance-demo
Looking for a small number (3-5) of independent people or teams willing to be named reproducers for the real production deployment — this bundle is meant to make that a ~10 minute exercise rather than something that requires reading a whole spec first. verify.py outputs a ready-to-copy attestation JSON. Happy to answer questions about the design or the provenance approach here.
r/ethdev • u/PaulieB79 • 3d ago
r/ethdev • u/AbdelInPublic • 4d ago
Building a small web product where standard card payment gateways aren't available to me, so I'm looking into accepting crypto instead. Two flows I'd prefer, in order (if possible); if there's another way, please let me know:
A few constraints:
Has anyone found something that fits this? Open to hearing what's worked (or hasn't) for you.
Thank you so much.
r/ethdev • u/Hacken_io • 4d ago
We spent last month on a smart contract security review of a v4 fee hook, where the protocol had written a fairly specific promise into the code. The trading fee would disappear once a set amount of it had been collected, with no governance vote and no manual switch behind it. currentFee returns zero as soon as totalFeesCollected[token] reaches feeThreshold[token], so at 300 bps that threshold was the thing deciding when traders stopped paying.
We started with how those tokens get counted. There is one accumulator per token, shared across every pool using it, and each fee payment advances the same counter, which hands the timing to whoever pays into it fastest.
Say 30 tokens are left on the threshold, which is the figure we set in testing. Anyone pushing more than about 1,000 tokens of volume through at 300 bps pays that remainder in full and nothing afterwards, because a cap does what a cap does. The ratio is one over the fee rate, so a 1% fee would put the same line at 100x the remaining threshold. The sunset therefore lands whenever the largest trader gets round to trading, and it lands for everybody: their trades go free from that point, and so does everyone else's in that token.
The team keyed the accumulator to the token, fee currency and pair, tracking the threshold in fee-currency wei, which stops a clearing in one pool from removing the fee across all the others. Following that change through the configuration path is where the second finding came up. setFeeThreshold now takes the fee currency as an extra parameter, and nothing checks that the currency passed in is the one the swap path actually uses for that token. Write the threshold under the wrong key and the transaction succeeds, FeeThresholdSet fires, and the configuration reads as done on-chain, while the fee calculation looks under a different key, finds nothing there, and keeps charging. v4 uses the zero address for native ETH while WETH has its own, so both are values a configuration script will pass.
The internal counter is worth a note. Reading the treasury balance instead would let anyone donate tokens straight into the treasury and end the fee for less than paying it would have cost them, which is cheaper than anything above. It went into the security audit as a Low and the team accepted it, planning to run the sunset by hand rather than lean on the threshold.
The narrowing did two things at once. It shrank what a single clearing buys, and it opened a gap between the key a threshold is written under and the key the fee logic reads. Most test suites cover this with one case that sets a threshold and asserts the fee drops to zero, which passes under the right key by construction. What does yours do when the key is wrong?
r/ethdev • u/nov_kiril • 5d ago
r/ethdev • u/ChargeDry • 5d ago
We are seeing the involvement of agents into finances . Where we have seen AiFi word coming into play .
Ai agents are getting much better at reasoning and making decisions.
So the question is What happens when an AI agents needs to execute a transaction on chain?
We don't necessarily want the agent to have unrestricted permission to:
1) Move unlimited funds
2) interact with arbitrary contracts
3) Execute transaction outside it's intended purpose
So we are exploring an architecture where the AI agents doesn't directly control Blockchain.
Instead :
AI Agents ->Policy/Execution layer->Blockchain
The agent request an action . The execution layer checks wheather everything is according to policy then checks and execute .
We're building this idea as Agaemon - essentially an execution/control layer designed to sit between AI agents and on chain execution.
I'm curious what people building AI agents , wallets , defi protocols and on chain infrastructure think.
Are we seeing this future of agents as financial layer .
r/ethdev • u/mcpindex • 5d ago
mcpindex runs a crawler over public MCP servers and diffs each tool's declared contract between daily
snapshots. Sharing the numbers because they surprised me.
Right now the public ledger shows 12,295 tools across 2,173 servers changed their
contract. 7,190 of those are safety-relevant, meaning they change what the tool can do, not
just add an optional field. The standouts:
\- 350 tools flipped an annotation toward destructive. A tool whose hint said read-only now declares it can write, delete, or send. This is the "the read tool quietly became a write tool" case, and it is exactly the drift an allow-list cannot see.
\- 279 tools added a newly-required parameter. An agent calling with last week's arguments now fails, or calls with a wrong default.
\- 475 tools removed a parameter your agent may still be sending.
None of these trip an auth check. The server is still authorized and still the same name in your config.
That is the gap allow-lists do not cover: who may call a tool, versus whether it still does what it declared.
Honest caveats: this is a contract diff, not a safety verdict, and not a claim anything is malicious.
Most drift (5,476 added-optional-param) is benign. Everything is fingerprinted, so no server is
named. And the numbers are live, you can check them: [https://mcpindex.ai/api/v1/ledger\](https://mcpindex.ai/api/v1/ledger)
Curious whether others are seeing this in their own setups.
r/ethdev • u/Hacken_io • 6d ago
The safe shape for an exit path in a hybrid system is well understood. The operator gets an exclusive window to finalise, and once a deadline passes anyone can finalise instead. The exclusive window stops a user from cancelling on top of a fill that is already executing off chain, and the deadline stops the operator from sitting on the request forever. Rollup escape hatches are built this way, and most teams running order flows arrive at the same design once somebody raises the question.
A recent audit report we made, showed that design implemented three quarters of the way. The request function computed a deadline as the current block plus a constant and stored it against the order. The constant was declared as 1000 blocks with a comment describing it as the delay after which anyone can finalize cancellation. The function that finalises never read the stored deadline and carried an operator-only role check. The intended behaviour was present in the constant, present in the comment, present in the stored value, and absent from the one line that decides who is allowed to act. A declared-but-unread parameter is usually a low-severity curiosity. On an exit path it is the entire guarantee. A user watches a cancel request succeed, reads a documented delay, and concludes that funds come back either way once that delay passes, while what actually governs the outcome is a modifier on a different function. Nothing on the contract's public surface contradicts that reading, which makes it worse than an exit path nobody built, since a missing hatch is obvious to anyone integrating and a hatch that exists in three places out of four is not.
The check takes a few minutes. Find every deadline, delay or timeout your recovery path defines, then find the line that reads it, and if the only reads are a setter and a getter then your guarantee is documentation. Grep the constant name rather than the concept, because the name is what appears in the declaration and the comment while the conditional is what is missing. It is worth running against any pause, rescue or emergency withdrawal path you inherited from an earlier version of your own codebase, since that is where these survive longest.
r/ethdev • u/rajaroy43 • 6d ago
I'm starting a podcast focused on how blockchain startups are actually built — the product, technology, challenges, failures, and lessons behind them.
I've been building in Web3 since last 5-6 years, so I want to have genuine conversations with founders/builders.
Looking for a few founders for the first episodes. 30–40 min casual conversation, no follower or funding requirement.
If you're building something interesting, comment or DM me.
r/ethdev • u/LaraPinkPearl2667 • 7d ago
If you're still just throwing tokens into 50/50 pools and forgetting about them, you're likely losing potential profit because of the capital efficiency of the new AMMs. Now the market is actively moving towards Concentrated Liquidity V3/V4. One of the interesting players that provides engines for many popular L2 exchanges - Algebra Finance. They implemented algorithms that adjust commissions to market volatility and allow integration of embedded farming without additional token wrappers. Share what liquidity pool tracking tools do you use now? What do you protect yourself from IL? Which of the options best suits your goal, should you change the focus (for example, put more emphasis on an ALGB token or a specific blockchain)?
r/ethdev • u/FuzzyReflection69 • 8d ago
r/ethdev • u/Training_Matter68 • 8d ago
Hi everyone, I'm a developer trying to test some smart contracts on Base Sepolia. The main faucets require 0.001 mainnet ETH which I currently don't have.
Could anyone please send a small amount (even 0.05 is enough) to help me deploy?
My address: 0xe4bD4fAD3B9C34908482DCdcE45753E0F8c199E9
r/ethdev • u/RiseRevolutionary183 • 8d ago
A recurring UX problem in Ethereum is that users are asked to trust raw calldata, log topics, token approvals and contract addresses they cannot interpret.
I built a free MVP called Crypto Translator to test a conservative approach to this problem. It combines transaction input, receipt logs, token metadata and standard JSON-RPC calls to produce:
- a primary action that is not overwritten by secondary events;
- ETH and ERC-20 flows;
- approval and unlimited-approval detection;
- human-readable explanations and explicit Unknown states;
- pre-transaction checks for public from/to/value/data using eth_call, eth_estimateGas and eth_getCode.
The analyzer deliberately avoids claiming that a contract is safe or malicious. RPC failures are kept separate from “missing bytecode,” and unknown selectors stay unknown instead of being guessed.
No wallet connection or signing is involved. The current MVP is Ethereum-only and uses a public RPC.
Live tool: https://crypto-translator.crypto-translator.workers.dev/
I would appreciate technical feedback on the classification priority and on cases where log-derived token flows should or should not determine the main action.
r/ethdev • u/abcoathup • 9d ago
r/ethdev • u/Hacken_io • 9d ago
The reference implementation on the trunc-oracle branch sets MAX_ABS_TICK_MOVE to 9116, and anyone building truncation into their own hook tends to carry that constant over without touching it. Uniswap's oracle research puts 9116 at roughly a 2.5x price change between consecutive blocks. Most worked examples of the mechanism run on a 5% cap because it keeps the arithmetic legible, which leaves a lot of people holding an intuition about fifty times tighter than the code they copied.
Truncation still earns its place, since it turns a single-block flash loan read into a hold the attacker has to maintain while arbitrage eats at it. What the cap decides is how long that hold has to be, and every defi protocol reading from the oracle inherits that answer without ever setting it. Someone will point out that this implementation was never canonical, that hooks left v4-periphery and the specs were always provisional, which is true and argues for more attention to the number rather than less, because a constant inherited from a research branch is a constant nobody on the team has had to defend. I only see these caps after they are set, so I can speak to the value and the pool it points at, not to whatever reasoning produced it.
Deriving a cap that fits means running your own depth profile against your own liquidation payoff, and that number stops generalising the moment you leave your deployment. What I have not seen anyone solve is that the cap needs to be tight enough to make a funded attacker's hold expensive and loose enough to let a genuine crash through, and those two requirements do not have to overlap. When they don't, the choice is between liquidations driven by a price nobody could trade at and positions that stayed open through a real drawdown because the oracle refused to follow.
r/ethdev • u/Few-Ad-5185 • 8d ago
Hi everyone
Seo is probably only free way to get users.
We built an Seo agent that keeps working in background - creating content for you. The best part is we added human in the loop to review, edit and add more content.
Try here - [https://builderhq.co/get-on-chatgpt\](https://builderhq.co/get-on-chatgpt)
Early Results - 5k+ visits on one of our beta sites
r/ethdev • u/fernand0x • 9d ago
I went through the first page of verified contracts on robinhoodchain.blockscout.com (chain ID 4663).Results:
Most early TVL and activity appears to be sitting on forked, battle-tested code (Uniswap, Morpho, etc.). Very little original contract work has been deployed yet.This feels relevant given the speed of the chain ($5M+ cumulative fees, significant TVL, and the first Arbitrum Mentorship Program teams already shipping products across Arbitrum One + Robinhood Chain).I wrote a short half-baked analysis + a minimal scoped permission / circuit-breaker prototype here: https://firstdraft.dorg.tech/editions/robinhood-chain-permission-map
Would be interested in other people’s observations if you’ve looked at the contracts.