r/ethdev • • 1d ago

My Project Made fully on-chain hold'em with no dealer, and a player who ghosts mid-hand doesn't kill the game anymore

5 Upvotes

Found this thread from a while back where someone asked if fully on-chain poker is actually doable. The most detailed answer was basically "I tried, but mental poker falls apart the moment a player stops responding, the hand just gets stuck". Yep, been there. Took me a while, but I think I got around it.

Short version: there's no dealer. Players shuffle the deck themselves. Each one encrypts it, shuffles it and proves in zero knowledge they didn't swap anything. As long as one of them is honest, nobody knows the order. To open a card, everyone in the hand has to chip in their piece of the key. The contract checks all the proofs and runs the betting. No server, no admin keys.

Now the fun part: someone ghosts. Every move has a deadline. Miss it and you're folded, you pay a penalty, and your chips stay in the pot. Whoever's left builds a fresh deck and draws the missing board cards from it. Cards already in play get filtered out without anyone seeing them. So the hand always finishes, and stalling always costs whoever stalls.

What it can't fix: people colluding over Discord (no online poker can), and whoever gives the last key share sees that card a split second before everyone else. That one is provably unfixable without a trusted party, so the best I could do was make it hard to exploit.

Crypto is BLS12-381 via the EIP-2537 precompiles, so it runs on any EVM chain that has them, mainnet included.

Wanna try? https://russkiy78.github.io/trust-poker-beta/

It's testnet only for now (Plasma testnet, free test tokens, no real money). There are bots sitting at the tables, so you'll always have someone to play against.

Ask me anything, I'll be around.


r/ethdev • • 1d ago

Information Why today's CISA/NSA announcement caused the 14% BTC crash: A systems developer's breakdown of why "just hard-forking to PQC" is way harder than people think

27 Upvotes

If you watched Bitcoin dump to $51k yesterday and wondered why the market suddenly cared about a CISA/NSA memo, here is the technical reality that most people are glossing over

I’m a low-level systems engineer and cryptographer working in C/Go. I've spent the last 3+ years writing and testing post-quantum implementations. Let's separate the media panic from the actual engineering problem facing layer-1 networks

  1. What the NSA/CISA memo actually implies
    The White House and NSA didn’t claim ECDSA is cracked today. What they revealed is that frontier AI solvers are making non-linear progress against classical mathematical assumptions. The old timeline where discrete log / elliptic curve cryptography is safe until 2035+ is dead. They accelerated Executive Order 14412 because the risk horizon collapsed from decades to years
  2. The actual vulnerability isn't private key brute-forcing
    A lot of people think: "My Bitcoin address is a hash of my public key (SHA-256 + RIPEMD-160), so quantum can't touch it."
    That's only true until you spend from that address. Once an address broadcasts an outgoing transaction, the raw secp256k1 public key is revealed on-chain. Right now, there are millions of BTC sitting in exposed public key addresses (including Satoshi's coins, ancient p2pk addresses, and any address reused after an outbound tx). With sufficiently advanced mathematical solvers or Shor implementations, those keys can theoretically be derived directly from the exposed public key
  3. Why "we'll just soft-fork to Dilithium/Falcon" is an engineering nightmare
    People throw around "Bitcoin will just upgrade" like it's a routine software patch. Here is what actually happens when you try to replace secp256k1 on a live blockchain:

- Signature Bloat: An ECDSA signature is 64 bytes. A NIST-standardized lattice-based signature like ML-DSA (Dilithium 3) is 3,300 bytes. Your public keys go from 33 bytes to 1,950 bytes. That is a 50x increase in signature size per transaction
- Block Propagation and Mempool DoS: If block sizes stay the same, TPS drops into the floor. If you increase block limits to compensate, node validation overhead and bandwidth requirements skyrocket, threatening decentralization
- Fork Politics: How do you handle inactive/lost addresses with exposed public keys? If they don't migrate within a grace period, do you burn them? Confiscate them? Freezing Satoshi’s coins or dormant whales via consensus would trigger the ugliest civil war in crypto history

4. The Hybrid Reality
Any realistic, secure path forward for decentralized networks requires native hybrid schemes (e.g. Dilithium 3 combined with ECDSA). A hybrid boundary ensures you don't introduce unproven lattice vulnerabilities while completely eliminating single-point elliptic curve failure

Retrofitting a $1T+ live legacy chain under crisis conditions is arguably the highest-risk engineering feat in the history of computer science. The market didn't panic because quantum computers are here tomorrow; the market panicked because people finally realized how massive our cryptographic debt actually is

Curious to hear from other node operators and cryptographers on how you see the block size vs lattice signature tradeoff being resolved on legacy chains


r/ethdev • • 1d ago

My Project Your Solidity tests pass. What do you check before signing the upgrade?

0 Upvotes

I’m building GuardeFi because a green test suite doesn’t tell a Safe signer whether the transaction in front of them is the one the team reviewed.

The workflow is simple: write down what the upgrade must preserve, check the proposed change against those rules, and bind the result to the exact Safe transaction. If a required check can’t be verified, the release doesn’t get a green light.

There’s a 30-second demo on the site. One version of a vault upgrade moves existing storage fields and gets blocked. Another adds the field without moving the existing ones and passes that check. The report shows why the two versions got different results.

I built this for people reviewing upgrades, not to replace an audit. If you sign or review Safe transactions for a protocol, what’s the one piece of evidence you’d need to see before you’d trust a check like this? And what would make you ignore it entirely?

Demo and evidence: https://guardefi.net/


r/ethdev • • 1d ago

Question How do you keep cash withdrawable in a lending pool when the biggest borrower doesn't care about the rate?

0 Upvotes

I've been reading about Sky's stUSDS pool this past month. USDS depositors fund loans against SKY, and on 19 November it was fully lent out and the app showed $0 available to withdraw. The biggest borrower, a firm belonging to one of Sky's co-founders, owed about 75M USDS, close to half of all borrowing. According to Crypto Briefing, SKY was valued at a fixed $0.025 for these loans and liquidations were off for that collateral.

The rate curve did its job and the pool was advertising about 25%. It just didn't matter. The model assumes a borrower repays when borrowing gets expensive, and someone borrowing against a token they don't want to sell can just sit there. The cash came back when a Galaxy-led group bought SKY at a discount and about $69M of that went to repay the debt, and then Sky cut the debt ceiling to zero.

So the ceiling was the lever that worked, it was just pulled two weeks in. What I keep going back and forth on is what to put in the contract so you don't depend on the curve. A debt ceiling per collateral set below deposits from day one, so part of the pool can never be lent. Or a check in borrow() that reverts above something like 90% utilization. I'm not sure which holds up better, since a utilization cap also blocks normal borrowers in a busy week, and a ceiling only helps if whoever sizes it is honest about what the token would sell for.

If you've built or forked a Compound-style market, did you ship anything that keeps a slice of the cash withdrawable, and what did it cost you on rates or users?


r/ethdev • • 3d ago

Information Glamsterdam Hoodi Testnet Reschedule | Ethereum Foundation Blog

Thumbnail
blog.ethereum.org
4 Upvotes

r/ethdev • • 4d ago

My Project Built an EVM decompiler that doesn't guess (evmole.com)

Post image
3 Upvotes

I am the author and maintainer of EVMole open-source library (extracts selectors, arguments, control flow, proxies, ... from EVM bytecode).

I've now built an EVM decompiler on top of it: evmole.com

Address on EVM chain or runtime bytecode in and Solidity-like code out, names resolved using sourcify.dev

What makes it different from other existing solutions is output soundness - every decompiled function gets fuzzed vs real EVM, any disagreement makes the function "not decompiled", without lying to you in the output. And, of course, huge dataset with available source code is used for tests before every release.

One example where it matters: USDC's permit function decompiled wrong by "top decompilers" right now, side-by-side comparison is here evmole.com/comparison/usdc TL;DR: the order of operations got corrupted when signing the nonce.

I think it could be useful during security incident response and just analyzing closed-source contracts with which you want to interact.

Happy to hear any feedback and/or questions here.


r/ethdev • • 6d ago

Question Why do so many wallet teams buy a white label exchange instead of building swaps themselves?

3 Upvotes

Seeing more wallet teams plug in ChangeNOW or similar swap APIs instead of writing routing and liquidity code. Is it only time saved? Or is nobody on the team willing to own a liquidity book? Founders, what was your reason?


r/ethdev • • 6d ago

Question Would a dev shop calling itself "high agency" make you trust it more?

1 Upvotes

I do marketing at a Web3 dev shop. We describe ourselves as high agency: the team takes ownership and pushes back on the spec instead of waiting for instructions. I'm not sure founders read that the same way, or care.

If you've hired an outsourced team for contracts or a DeFi app, what would make you trust one more: a team that owns the outcome, or one that sticks to your spec? Honest answers welcome, including "that's just a buzzword :)


r/ethdev • • 8d ago

Question How do you keep track of client updates and fork deadlines?

3 Upvotes

Hi all,

I'm a DevOps engineer, and at work a big part of my day is keeping servers and containers up to date. Knowing what runs where, which versions are outdated, and when something really needs to be patched is honestly one of the most stressful parts of the job.

I've been getting more interested in Ethereum and staking lately, and I keep wondering how this works for you. As far as I understand it, you have to keep execution and consensus clients current, and for hard forks there's a fixed deadline you really can't miss.

So I'm genuinely curious how you handle it:

  • How do you find out that a new client release or a fork is coming? (Discord, client release notes, mailing lists, X, something else?)
  • Do you have any alerting, or do you mostly check manually?
  • Have you ever come close to missing an update, or actually missed one? What happened?
  • Is this something you actively worry about, or is it a solved problem for you and not a big deal?

I'm especially interested in hearing from people who run their own setup rather than relying on managed services.


r/ethdev • • 9d ago

Information Glamsterdam Locked In: Hoodi Activation Set for December 15

Post image
2 Upvotes

r/ethdev • • 10d ago

Question Web3 Project suggestion

8 Upvotes

Hi everyone, I'm a university student learning Solidity and new to Web3. For my final-year project, I want to build an autonomous app where AI agents perform Web3 operations with single goal or something similar . What project ideas would you suggest, what's in demand and trending right now and what's good to build as a project that can solve a problem.

Thanks a lot


r/ethdev • • 10d ago

Question In need of sepoliaETH 0.5 or 0.08 would do, Thank you so much in advance

6 Upvotes

0xCE744BE9c6674D81e4F4688917575C1fa8FC8e8E I just need it to test a project I had and the faucelets I tried didnt give me enough or mostly didnt work thank you so much


r/ethdev • • 11d ago

Question I built this tool to help auditors understand unfamiliar smart contracts much faster.

Thumbnail
youtu.be
5 Upvotes

Hey everyone,

I used to spend a lot of time during audits trying to understand unfamiliar contracts, what each function actually does, how everything connects, and what assumptions the protocol relies on.

It was taking me longer than I wanted, so I started building this tool for myself to make that process easier. It’s called Autsec, and it helps me get a clearer picture of a contract before I go deeper into the audit.

It’s still early, but it has already been helpful for me and saved me time. I recorded a short demo and would genuinely like to hear what you think.


r/ethdev • • 12d ago

Tutorial Mastering Solidity Lifecycle Testing with Foundry Anvil Testcontainers

Thumbnail
hellalabs.dev
1 Upvotes

Check it out!

Testing full Solidity contract lifecycles locally and in CI


r/ethdev • • 13d ago

Question I built on-chain spending limits + passkey approvals for AI agents (ERC-7710 delegations, open source,feedback wanted)

5 Upvotes

I've been working on a problem I think more of us will hit soon: AI agents that can spend money.

The usual options are bad: give the agent a key (unbounded loss on the first prompt injection), or use a custodial agent wallet whose policy engine runs on someone else's servers.

cyphos-guard takes a different route, using the MetaMask Delegation Framework:

  • The owner has a Hybrid DeleGator smart account (passkey owner via RIP-7212, optional EOA recovery).
  • The agent gets one delegation per permission, with caveats: recipient allowlist, per-period caps (NativeTokenPeriodTransfer / ERC20PeriodTransfer), allowed methods, expiry.
  • ERC-20 per-tx caps can't be expressed with stock enforcers, so I wrote a small CosignerEnforcer: a policy service co-signs each redemption (EIP-712, single-use, 5-min deadline). It can only block, never move funds.
  • Over the limit → approval request → the owner signs a one-shot delegation (ExactExecution + LimitedCalls(1) + Timestamp) with a passkey on their phone.
  • For x402 APIs: an ERC-1271 "vault" is the payer and only approves EIP-3009 TransferWithAuthorization to listed sellers. Verified against the official x402 facilitator on a fork, then live on Base Sepolia.
  • A static recovery page lets the recovery EOA sign a UserOp (EIP-712) and self-submit via EntryPoint.handleOps: no bundler, no backend.

Status: testnet only, not audited; I published an internal security review (3 findings fixed). Live runs with Basescan links are in the README.

Questions I'd love input on:

  1. Anyone found a clean way to express ERC-20 per-tx caps without a co-signer?
  2. Would you trust an ERC-1271 vault as an x402 payer, or wait for ERC-7710 support in facilitators?

Links: https://github.com/Phosse136/cyphos-guard · https://cyphosguard.com · npm: @cyphos-guard/sdk


r/ethdev • • 15d ago

Question How do you stop Safe signers from going around a DAO vote?

3 Upvotes

Someone posted a DAO treasury prototype this week where governance votes on the mandate and a Safe executes it. They had just added a proposal, a vote and a delay before any mandate change, which is good. But the signers are still Safe owners, so they can call execTransaction and send the treasury anywhere, vote or no vote.

My first thought was a guard that only lets through calls the current mandate allows, or giving the signers a Zodiac Roles module instead of owner keys. The more I look at the guard version the less clean it gets.

setGuard is a Safe transaction too, so the owners can just remove the guard unless it also blocks calls to setGuard, enableModule, changeThreshold and the owner functions, and then a bug in the guard can lock the Safe for good, removing it included. And on 1.3 and 1.4 Safes a module goes through execTransactionFromModule, which never touches the transaction guard, so one enabled module is a way around it. 1.5 added module guards for exactly that.

So right now I lean towards the signers not being owners at all, only role holders, with the owner being something governance controls. I'm not sure that holds up once you need someone to act fast in an incident though.

If you run a treasury where the vote is supposed to bind the signers, what actually enforces it today, and what did you give up to get there?


r/ethdev • • 15d ago

Information Solidity 0.8.39 released

12 Upvotes

Solidity v0.8.39 fixes a medium-severity bug that could silently corrupt storage when copying recursive structs, and warns about code size based on the new limits of the Amsterdam EVM version. It is likely the last release of the 0.8 series before 0.9.0.

Recursive struct copy bug fix

  • A struct is recursive when it can contain values of its own type, as in struct Node { Node[] children; uint256 data; }.
  • When such a struct, or an array of such structs, was copied within storage to a location that contained it, as in root = root.children[0] or roots = roots[0].children, the copy overwrote the source before it had finished reading it. The elements nested in the source were lost, and the members declared after the array came back as zero. No error was reported.
  • Versions 0.4.9 to 0.8.38 are affected with the default evmasm pipeline, and versions 0.8.13 to 0.8.38 with --via-ir. The optimizer settings and the EVM version do not matter.
  • The fix adds a runtime check to every storage-to-storage copy of a recursive struct or an array of such structs. The check costs extra gas, and copies into deeply nested targets can run out of stack space at a smaller depth than before.
  • A scan of the verified contracts on Sourcify found no deployed contract that performs an affected copy.
  • The bug was reported by cyberthirst through the Ethereum Foundation's bug bounty program.
  • The write-up has the details and explains how to check your contracts: Overlapping Recursive Storage Struct Copy Corruption Bug

Other changes

  • In the evmasm pipeline, a nested tuple assignment with a string literal could assign values to the wrong variables. For example, with bytes32 z and uint256 a, ((z, a), b) = (("x", 111), 222) assigned 111 to z and bytes32("x") to a. We do not consider this a security issue, because the pattern is unusual and unlikely to be used in practice.
  • When compiling with --evm-version amsterdam, the compiler now warns about contract code larger than 64 KiB and initcode larger than 128 KiB, the new limits from EIP-7954. For all other EVM versions, including the current default Osaka, the warnings still use the old limits.
  • The compiler now also warns about code size when it compiles standalone Yul code.
  • With --ethdebug-resources, the compiler now emits the full info/resources schema of the ethdebug format, which describes types and their layout to debuggers. ethdebug output remains experimental and requires --experimental. For an introduction to the format, see ethdebug: a shared language for debug data, in use across projects today.

Solidity 0.9.0

  • For years, we planned 0.9.0 as a large breaking release that would make the IR pipeline the default. Our plans have changed. We still plan to make the IR pipeline the default, but we no longer tie this to 0.9.0. Instead, we want to make breaking releases more often and make them smaller.
  • Most of the changes merged for 0.9.0 so far remove features that earlier 0.8 releases deprecated, such as ABI coder v1, virtual modifiers, the ABIEncoderV2 pragma, the SMTChecker's BMC engine and the EVM versions older than Constantinople.
  • We plan to publish a pre-release of 0.9.0 before the final release. A separate post will explain the new release schedule and the reasons for it.

Links


r/ethdev • • 15d ago

Information [Notice] agent-security-gate-x402: 7-Day Transition to Cloud-Native Thin Client (v3.0.0) & Legacy PyPI Yank (Nov 20 – Nov 27)

1 Upvotes

Hi r/ethdev,

We’re announcing a **7-day transition window (Nov 20 – Nov 27, 2026)** to move our Python SDK/MCP package `agent-security-gate-x402` (`v2.2.1`) from a heavy local bundle to **`v3.0.0` (Cloud-Native Thin Client & Remote Gateway)**.

### Why this matters for EVM / Agent Wallet builders

  1. **Live Threat & Drain Rules > Stale Local Packages:** ERC-20 `approve` / `increaseAllowance` / `permit` drain bypasses, prompt injections, and dangerous AST payloads evolve constantly. Centralizing inspection on our Cloud Gateway guarantees `<5ms` up-to-date defenses and EIP-712 attestation generation without waiting for manual package upgrades.
  2. **Zero-Bloat Client:** Moving away from bundling `fastapi`, `uvicorn`, `web3`, and `eth-account` locally—`v3.0.0` only needs lightweight HTTP/MCP deps (`httpx`, `mcp`) while keeping full **Polygon OMS (`SecurityGateOMSPolicy.sol`), Base AgentKit, and Arbitrum Safe/Stylus** guardrails active on the gateway.

### 7-Day Schedule (Nov 20 – Nov 27, 2026)

* **Nov 20 (Day 1):** Official 7-day transition notice published.

* **Nov 21–23 (Days 2–4):** Remote Gateway & `v3.0.0` Thin Client compatibility verification.

* **Nov 24–25 (Days 5–6):** `v3.0.0` Thin Client published to PyPI; final migration window.

* **Nov 27 (Day 7):** Legacy PyPI releases (`<= v2.2.1`) will be **yanked on PyPI**.

Existing integrations keep working smoothly during the 7-day window.

🌐 Gateway: `https://agent-security-gate-x402-212942243360.asia-northeast3.run.app` (`/docs`, `/llms.txt`, `/.well-known/agent-card.json`)


r/ethdev • • 15d ago

Question Why do some Web3 communities become inactive even when a project is still growing?

4 Upvotes

Building a community around a Web3 project is one thing. Keeping people interested and involved over time is a different challenge.

Some projects have thousands of members across Discord and Telegram, but only a small number actively participate in discussions. Others may have smaller communities where members regularly share ideas, ask questions and contribute to the project.

It makes me wonder whether community growth should be measured by the number of members or by how much people actually participate.

For those involved in Web3 communities, what do you think makes members stay active and genuinely interested in a project beyond launch announcements, giveaways and token-related discussions?


r/ethdev • • 15d ago

Information Tau bounty program just launched

1 Upvotes

Hi all,

We at Tau just launched our developer bounty program with over $10K in rewards.

Tau is all about creating new features in blockchain, made possible with a language that can formally represent and reason everything in its system.

Here are the first set of rewards: https://tau.net/bounty-program


r/ethdev • • 16d ago

My Project Got rejected by Alliance multiple times, kept building, launched fixed-rate DeFi today

1 Upvotes

Short version: DeFi still doesn't have a basic piece of finance, which is fixed rates. We spent a long time iterating on an onchain rate swap design until it worked.

Kairos lets you fix the rate on a loan you already have without moving it. Live on Ethereum and Base.

AMA about the design or the grind.

https://x.com/alliance/status/2123435204643602873


r/ethdev • • 16d ago

My Project Zean: write Zig, prove it in Lean

Thumbnail
github.com
1 Upvotes

We just open-sourced **Zean** (Zig + Lean), a toolkit for translating supported Zig functions into executable Lean models and proving their behavior. It came out of our formal verification work on [oksolc](https://github.com/okcontract/oksolc), our Solidity compiler written in Zig.

Zean works from AIR, Zig's analyzed intermediate representation. An instrumented compiler captures supported functions from AIR, and a translator emits executable Lean program definitions. Specifications and proofs live in separate handwritten Lean modules.

A verification library derives the proof obligations for memory access, initialization, permissions, arithmetic, control flow and supported calls. You write the contracts and loop invariants. If an obligation still needs a mathematical argument, you supply that too, and Lean checks the proofs. Unsupported operations are rejected, and unresolved obligations stay open.

The copy tutorial shows what that looks like:

```zig

inline fn copyWord(destination: *u32, source: *const u32) void {

destination.* = source.*;

}

pub export fn copy(destination: [*]u32, source: [*]const u32, length: usize) void {

var index: usize = 0;

while (index < length) : (index += 1) {

copyWord(&destination[index], &source[index]);

}

}

```

The caller has to establish that the source has enough initialized words and the destination has enough writable storage. For the source-preservation contract, the two ranges also have to be disjoint. Under those assumptions the proofs show there are no invalid accesses or uninitialized reads. A successful run copies the source contents into the destination and preserves memory outside it. Modeled allocation exhaustion is an explicit permitted failure, and termination is a separate property.

Change the loop bound from `< length` to `<= length` and you get an extra boundary access that the original contract can't justify. The tutorial also includes deliberately false claims that must fail verification.

When the Zig source changes, you recapture the function to regenerate the model, then replay the proofs.

This release covers memory-safety examples derived from Ziglings, buffer updates, copy loops, helper calls and a captured specialization of `std.mem.replaceScalar`. It supports restricted AIR fragments, with explicit target and layout constraints. The capture pipeline, the Zig frontend and the native backend remain trust boundaries, so the proofs don't establish correctness of the final native binary or of the whole compiler.

The idea is to keep design iteration in Zig and prove a component's contracts once it has settled.

To try it you need Zig 0.17.1 and elan:

```sh

git clone https://github.com/okcontract/zean

cd zean

elan toolchain install leanprover/lean4:v4.35.0

zig build ziglings

```

It's released under Apache 2.0. If you write Zig or Lean, I'd like to know which functions you'd want to verify with it first.

- Repo: https://github.com/okcontract/zean

- Writeup: https://okcontract.com/blog/introducing-zean-write-zig-and-prove-it-in-lean/

If you like it, leave a star on the repo. And if you'd like more updates, give us a follow: https://x.com/okcontract