<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 苏格拉路易驴</title>
    <description>The latest articles on DEV Community by 苏格拉路易驴 (@_c70a35c573ef632148).</description>
    <link>https://dev.to/_c70a35c573ef632148</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4234410%2Fc0de142f-510e-4b47-90c2-d16e1f7317ea.png</url>
      <title>DEV Community: 苏格拉路易驴</title>
      <link>https://dev.to/_c70a35c573ef632148</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_c70a35c573ef632148"/>
    <language>en</language>
    <item>
      <title>What happens to account recovery when an inbox is compromised?</title>
      <dc:creator>苏格拉路易驴</dc:creator>
      <pubDate>Sun, 29 Nov 2026 04:40:27 +0000</pubDate>
      <link>https://dev.to/_c70a35c573ef632148/what-happens-to-account-recovery-when-an-inbox-is-compromised-1g4d</link>
      <guid>https://dev.to/_c70a35c573ef632148/what-happens-to-account-recovery-when-an-inbox-is-compromised-1g4d</guid>
      <description>&lt;p&gt;A password reset can be a second route into an account. If an application sends reset links to an inbox, that inbox belongs in the application's threat model. An old password reused on a forgotten forum can turn a small breach into a much larger recovery problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  For account owners
&lt;/h2&gt;

&lt;p&gt;Start with your primary email and its backup address. Give each a unique password, use a passkey or security key where available, and review active sessions and forwarding rules. Store recovery codes separately so a lost phone does not leave you locked out. When an unexpected reset message arrives, open the service directly and review recent activity.&lt;/p&gt;

&lt;h2&gt;
  
  
  For application developers
&lt;/h2&gt;

&lt;p&gt;Add one recovery exercise to your test environment. Reset a test account password, then check whether existing sessions stay valid, whether a prior reset link still works and whether the account owner can see the change. If your product supports recovery-address changes, document what confirmation and notification the old address receives. Use controlled test inboxes so you can repeat the exercise.&lt;/p&gt;

&lt;p&gt;The companion video is in Mandarin and covers public incidents as well as everyday account risks. &lt;a href="https://www.bilibili.com/video/BV1jm15ziEBq/" rel="noopener noreferrer"&gt;Watch on Bilibili&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://pages.nist.gov/800-63-4/sp800-63b/authenticators/" rel="noopener noreferrer"&gt;Reference: NIST guidance on authenticators and account recovery&lt;/a&gt;&lt;/p&gt;

</description>
      <category>authentication</category>
      <category>cybersecurity</category>
      <category>security</category>
    </item>
    <item>
      <title>Hyperliquid liquidity: measure depth where orders actually trade</title>
      <dc:creator>苏格拉路易驴</dc:creator>
      <pubDate>Wed, 18 Nov 2026 08:20:50 +0000</pubDate>
      <link>https://dev.to/_c70a35c573ef632148/hyperliquid-liquidity-measure-depth-where-orders-actually-trade-4cfi</link>
      <guid>https://dev.to/_c70a35c573ef632148/hyperliquid-liquidity-measure-depth-where-orders-actually-trade-4cfi</guid>
      <description>&lt;p&gt;An order book can look deep while a modest market order still moves the price. Inventory far from the mid-price does little for an order that needs to execute now.&lt;/p&gt;

&lt;p&gt;The useful question in Hyperliquid's long-tail liquidity debate is therefore: how much liquidity sits within a specified distance of the price, for the same assets and the same order sizes?&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep the measurement attached to the claim
&lt;/h2&gt;

&lt;p&gt;Matteo's original research reports a median year-on-year decline in USD depth within 10 basis points of the mid-price of 82% on Hyperliquid, 61% on Binance and 78% on OKX, for a 38-market matched sample. Those are the author's reported results, not an independent reproduction here. Other panels use different distance bands and market sets; their percentages are not interchangeable.&lt;/p&gt;

&lt;p&gt;That sample supports concern about thinner near-price liquidity. It does not identify which rule caused the deterioration.&lt;/p&gt;

&lt;p&gt;Three measurements answer different questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The spread measures the gap between the best bid and ask.&lt;/li&gt;
&lt;li&gt;Near-price depth measures how much displayed size sits within a defined band.&lt;/li&gt;
&lt;li&gt;Execution cost measures what a specified order would pay, including fees when comparing all-in costs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A tight spread with little size behind it can still produce expensive execution. USD depth can also fall when token prices fall, even if token quantities do not, so both denominations matter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read priority is not write priority
&lt;/h2&gt;

&lt;p&gt;Hyperliquid's official documentation describes read-priority and write-priority mechanisms separately. Earlier access to market data does not automatically put an order first in execution.&lt;/p&gt;

&lt;p&gt;If earlier data changes the relative speed of quote updates or cross-venue hedging, it could still affect market-maker competition. That is a testable mechanism, not a causal result established by a depth chart.&lt;/p&gt;

&lt;p&gt;The current rate-limit documentation also links an address's block-space share during high congestion to its share of maker volume on the previous day. If that constrains entrants precisely when they need to cancel or reprice, could it reinforce the position of existing participants? Evidence would need to include execution delays, cancel/replace success and participant-level activity, alongside depth.&lt;/p&gt;

&lt;h2&gt;
  
  
  What would strengthen the explanation?
&lt;/h2&gt;

&lt;p&gt;Compare matched assets over consistent windows around rule changes. Track near-price depth, token-denominated size, execution costs at fixed order sizes and market-maker participation. Control for volatility and external events rather than attributing every move in a year-long series to a recent mechanism.&lt;/p&gt;

&lt;p&gt;The practical judgment: thinner near-price liquidity deserves scrutiny; blaming a particular firm or rule needs additional evidence. A venue-wide depth total is a poor substitute for the cost of the trade a user actually needs to execute.&lt;/p&gt;

&lt;p&gt;I made a nine-minute English video explaining the data and these limits:&lt;br&gt;
&lt;a href="https://youtu.be/flBGEe-vh84" rel="noopener noreferrer"&gt;https://youtu.be/flBGEe-vh84&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Original research: &lt;a href="https://x.com/0xmattegoat/article/2120169682241998991" rel="noopener noreferrer"&gt;https://x.com/0xmattegoat/article/2120169682241998991&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Official priority-fee documentation: &lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/priority-fees" rel="noopener noreferrer"&gt;https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/priority-fees&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Official rate-limit documentation: &lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/rate-limits-and-user-limits" rel="noopener noreferrer"&gt;https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/rate-limits-and-user-limits&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>blockchain</category>
    </item>
    <item>
      <title>Aster 争议：代理权限应该按整条资金路径检查</title>
      <dc:creator>苏格拉路易驴</dc:creator>
      <pubDate>Tue, 17 Nov 2026 09:28:11 +0000</pubDate>
      <link>https://dev.to/_c70a35c573ef632148/aster-zheng-yi-dai-li-quan-xian-ying-gai-an-zheng-tiao-zi-jin-lu-jing-jian-cha-4gii</link>
      <guid>https://dev.to/_c70a35c573ef632148/aster-zheng-yi-dai-li-quan-xian-ying-gai-an-zheng-tiao-zi-jin-lu-jing-jian-cha-4gii</guid>
      <description>&lt;p&gt;Aster 用户披露约 456 万美元资产异常转出后，讨论很容易混淆两个问题：密钥如何泄露，以及这把密钥本来允许做什么。&lt;/p&gt;

&lt;p&gt;截至 2026 年 11 月 17 日，当事人称，相关操作使用了网页生成的代理密钥。这是当事人披露，完整调查结论仍待核对，不能据此直接判断入侵途径或责任。&lt;/p&gt;

&lt;h2&gt;
  
  
  权限不能只按接口名称理解
&lt;/h2&gt;

&lt;p&gt;假如一把“不能提现”的密钥，可以把余额转给另一个可提现账户，那么直接提现接口虽然被禁用，资金仍可能沿另一条路径离开。权限检查需要覆盖整条资金路径，而不能只看某个接口是否叫 withdraw。&lt;/p&gt;

&lt;p&gt;这也适用于普通 SaaS：禁止导出文件，却允许把整个工作区共享给任意外部账户，未必真正守住了数据边界。两种功能应该结合评估。&lt;/p&gt;

&lt;h2&gt;
  
  
  对齐三份记录，再谈责任
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;授权记录：用户当时给了哪个代理哪些权限、有效期与目标地址限制？&lt;/li&gt;
&lt;li&gt;请求记录：异常操作由谁签名，提交了哪些参数？&lt;/li&gt;
&lt;li&gt;校验记录：服务端根据哪个版本的权限规则放行？&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Aster 当前公开 API 文档包含代理权限配置；官方更新记录将 TransferToAddress 列为 WITHDRAW 级操作。不过，API 代理与本案网页密钥是否适用同一规则，事发时配置和校验是否一致，仍需核对。当前文档不能代替历史证据。&lt;/p&gt;

&lt;p&gt;密钥泄露和权限过宽可以同时存在。主钱包私钥完好，也不能证明所有代理操作都符合用户授权。&lt;/p&gt;

&lt;p&gt;这期约 10 分钟的中文视频聊用户操作与产品设计的责任边界：&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.bilibili.com/video/BV1K8sz6pEQN/" rel="noopener noreferrer"&gt;B站中文版&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=VYM0DCkmM_A" rel="noopener noreferrer"&gt;YouTube 中文版&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;核对入口：&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://x.com/fuhuahuai/status/2122611904216510597" rel="noopener noreferrer"&gt;当事人披露&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://x.com/PhyrexNi/status/2122605870290972938" rel="noopener noreferrer"&gt;Phyrex 后续说明&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://asterdex.github.io/aster-api-website/asterCode/endpoints/" rel="noopener noreferrer"&gt;Aster 官方 API 文档&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/asterdex/api-docs/blob/master/CHANGELOG.md" rel="noopener noreferrer"&gt;官方更新记录&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;本文使用 AI 辅助整理，已区分当事人说法、公开文档与条件分析。&lt;/p&gt;

</description>
      <category>security</category>
    </item>
    <item>
      <title>Glamsterdam and EIP-8037: how unchanged Ethereum contracts can fail</title>
      <dc:creator>苏格拉路易驴</dc:creator>
      <pubDate>Sun, 15 Nov 2026 01:51:03 +0000</pubDate>
      <link>https://dev.to/_c70a35c573ef632148/glamsterdam-and-eip-8037-how-unchanged-ethereum-contracts-can-fail-1iac</link>
      <guid>https://dev.to/_c70a35c573ef632148/glamsterdam-and-eip-8037-how-unchanged-ethereum-contracts-can-fail-1iac</guid>
      <description>&lt;p&gt;The bytecode can stay identical while the execution rules underneath it change. That is the compatibility question behind the current Glamsterdam gas debate.&lt;/p&gt;

&lt;p&gt;I made a video on this topic; this written walkthrough focuses on one practical question: &lt;strong&gt;if an operation fails after an upgrade, can the application recover?&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. A fixed call budget is part of the application
&lt;/h2&gt;

&lt;p&gt;Repricing an operation can make a previously sufficient gas allowance too small. Increasing the outer transaction gas limit does not necessarily repair an inner call with a hardcoded cap.&lt;/p&gt;

&lt;p&gt;Here is an intentionally simplified failure pattern, not code from a deployed project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Illustrative pseudocode: deliberately unsafe completion logic.
(bool ok, ) = consumer.call{gas: callbackGas}(payload);
fulfilled[requestId] = true;
emit CallbackResult(requestId, ok);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the callback runs out of gas and the caller continues, the receipt can indicate transaction success while the requested operation never happened. If the application treats &lt;code&gt;fulfilled&lt;/code&gt; as final and offers no retry path, the consequence differs from a whole-transaction revert.&lt;/p&gt;

&lt;p&gt;The relevant evidence is the trace and resulting state, including any recovery path. A pass/fail replay count cannot express all of that.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Pricing and accounting raise different questions
&lt;/h2&gt;

&lt;p&gt;EIP-8037 proposes separate execution and state-creation gas accounting. Its reservoir and refill rules also affect assumptions about the gas available during execution.&lt;/p&gt;

&lt;p&gt;ChainSecurity documents why treating &lt;code&gt;gasleft()&lt;/code&gt; as a value that only decreases can become invalid under the proposed rules. These in-transaction refills should not be confused with a refund applied only when a transaction finishes.&lt;/p&gt;

&lt;p&gt;If a check, a proof, or a failure handler relies on the older model, unchanged bytecode alone does not establish that the same reasoning remains valid.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. What would make compatibility evidence useful?
&lt;/h2&gt;

&lt;p&gt;For each finding, an audit report could record:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The violated assumption and exact spec/client revision.&lt;/li&gt;
&lt;li&gt;Whether repricing, accounting, or their interaction triggers it.&lt;/li&gt;
&lt;li&gt;Whether the entire transaction reverts or an inner failure is caught.&lt;/li&gt;
&lt;li&gt;The resulting state and whether retry, upgrade, or migration is possible.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Where feasible, running a minimal reproduction against pricing-only and accounting-only variants could help isolate the cause. That is a proposed diagnostic approach, not a claim that those variants have already been tested here.&lt;/p&gt;

&lt;h2&gt;
  
  
  Current status and sources
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Status as of November 15, 2026:&lt;/strong&gt; these proposed changes are not active on Ethereum mainnet. The EF update leaves specification changes and Hoodi timing open pending review. A proposal, a testnet result, and an activated mainnet rule are different evidence.&lt;/p&gt;

&lt;p&gt;Primary material:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://blog.ethereum.org/en/2026/11/06/glamsterdam-8037-8038" rel="noopener noreferrer"&gt;Ethereum Foundation update on EIP-8037/8038&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://eips.ethereum.org/EIPS/eip-8037" rel="noopener noreferrer"&gt;EIP-8037 specification&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/ethereum/glamsterdam-gas-invariants" rel="noopener noreferrer"&gt;Ethereum gas-invariant review repository&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.chainsecurity.com/blog/glamsterdam-gas/index.html" rel="noopener noreferrer"&gt;ChainSecurity: When Spent Gas Comes Back&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Video walkthrough
&lt;/h2&gt;

&lt;p&gt;Disclosure: I created the accompanying explainer. The English version is embedded below.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/6bfp1CZNhr0" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=6bfp1CZNhr0" rel="noopener noreferrer"&gt;Watch on YouTube&lt;/a&gt; · &lt;a href="https://www.bilibili.com/video/BV1HfsL6LE7b/" rel="noopener noreferrer"&gt;Chinese version on Bilibili&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If a transaction succeeds but its callback fails, what evidence would you require before calling that application compatible with an upgrade?&lt;/p&gt;

</description>
      <category>ethereum</category>
      <category>security</category>
    </item>
    <item>
      <title>Cheaper Ethereum transactions don't settle ETH's valuation</title>
      <dc:creator>苏格拉路易驴</dc:creator>
      <pubDate>Sat, 14 Nov 2026 03:02:39 +0000</pubDate>
      <link>https://dev.to/_c70a35c573ef632148/cheaper-ethereum-transactions-dont-settle-eths-valuation-2mj5</link>
      <guid>https://dev.to/_c70a35c573ef632148/cheaper-ethereum-transactions-dont-settle-eths-valuation-2mj5</guid>
      <description>&lt;p&gt;A network can become cheaper to use while its native asset becomes harder to value. The key is to separate three questions: what users pay, what the protocol burns, and why people hold ETH.&lt;/p&gt;

&lt;p&gt;This is a written companion to my new 12-minute video. Its market-data snapshot is &lt;strong&gt;November 10, 2026&lt;/strong&gt;; the discussion below focuses on mechanisms, without a price target.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Where does the transaction fee go?
&lt;/h2&gt;

&lt;p&gt;Under &lt;a href="https://eips.ethereum.org/EIPS/eip-1559" rel="noopener noreferrer"&gt;EIP-1559&lt;/a&gt;, Ethereum's execution base fee is burned. The priority fee goes to the block producer. Treating the whole transaction fee as burn therefore overstates that channel.&lt;/p&gt;

&lt;p&gt;Burn also is not a cash dividend paid to holders. It removes ETH from supply. To reason about net supply changes, issuance must be accounted for separately. A burn figure alone cannot establish whether supply is shrinking, much less what one ETH should trade for.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Does more L2 activity imply more L1 fee revenue?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://eips.ethereum.org/EIPS/eip-4844" rel="noopener noreferrer"&gt;EIP-4844&lt;/a&gt; introduced blob-carrying transactions and a separate blob-fee market. This gives rollups another way to buy data availability on Ethereum.&lt;/p&gt;

&lt;p&gt;A useful accounting path is:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;User fee on an L2 → L2 costs and receipts → payment for Ethereum resources.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Those amounts are not interchangeable. Batching efficiency, data volume and demand for available capacity affect the relationship. A rising L2 transaction count does not, by itself, tell us how much ETH will be burned on L1.&lt;/p&gt;

&lt;p&gt;If capacity grows faster than demand, low fees can coexist with growing usage. If demand later crowds that capacity, the result can change. Any value-accrual claim needs an explicit assumption about that balance.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. What evidence would support a store-of-value thesis?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://x.com/VitalikButerin/status/2119401255919604064" rel="noopener noreferrer"&gt;Vitalik's November 8 thread&lt;/a&gt; argues for focusing on ETH as a store of value and connects that goal to decentralization and resistance to capture.&lt;/p&gt;

&lt;p&gt;That is a different claim from valuing the asset through burned fees. It needs its own evidence: why users choose to retain ETH, whether that demand persists through changing conditions, and how credibly the network preserves its properties over time.&lt;/p&gt;

&lt;p&gt;Collateral use or balances held can inform the discussion, but neither is conclusive. Collateral can be leveraged; balances can move between addresses controlled by the same owner. Transaction counts are also an incomplete proxy for demand to hold the asset.&lt;/p&gt;

&lt;p&gt;For builders, the practical question is: &lt;strong&gt;if applications attract more users while Ethereum fees stay low, which observable behavior would demonstrate durable demand for ETH itself?&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Watch the walkthrough
&lt;/h2&gt;

&lt;p&gt;The video follows one swap, then connects gas, burn, L2 economics and the store-of-value debate.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/sCzA9Cy5IYc" rel="noopener noreferrer"&gt;Watch the English video on YouTube&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/sCzA9Cy5IYc" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/cqDfH8x2Cs0" rel="noopener noreferrer"&gt;中文版：ETH 该怎么定价？&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: This article was written by an AI assistant using my video's transcript and the linked primary sources. The video uses an AI-generated narration voice.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ethereum</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>Why a Turing-complete EVM still runs out of gas</title>
      <dc:creator>苏格拉路易驴</dc:creator>
      <pubDate>Tue, 10 Nov 2026 10:19:31 +0000</pubDate>
      <link>https://dev.to/_c70a35c573ef632148/why-a-turing-complete-evm-still-runs-out-of-gas-3pm9</link>
      <guid>https://dev.to/_c70a35c573ef632148/why-a-turing-complete-evm-still-runs-out-of-gas-3pm9</guid>
      <description>&lt;p&gt;“Turing-complete” sounds like a promise to run anything. On a blockchain, that phrase needs a resource boundary.&lt;/p&gt;

&lt;p&gt;This is a written companion to my new visual explainer, moving from Turing machines to Bitcoin Script and the EVM.&lt;/p&gt;

&lt;h2&gt;
  
  
  Expressiveness is only the first question
&lt;/h2&gt;

&lt;p&gt;Turing completeness describes an idealized computational model that can simulate any Turing machine, given sufficient time and storage. Real machines have finite resources. Ethereum also imposes explicit execution limits.&lt;/p&gt;

&lt;p&gt;Bitcoin Script checks the conditions for spending a UTXO. Traditional Script is deliberately constrained and lacks general loops; that does not mean Bitcoin has no programmable spending rules. The EVM supports a broader execution model, including conditional jumps that can form loops.&lt;/p&gt;

&lt;h2&gt;
  
  
  A terminating loop can still fail
&lt;/h2&gt;

&lt;p&gt;Consider this pseudocode, not EVM bytecode or a gas estimate:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;result = 0
repeat 1,000 times:
    result = result + 3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The mathematical computation terminates. An execution can still run out of gas before finishing. Gas cost depends on the actual instructions and execution context, not just the number of loop iterations.&lt;/p&gt;

&lt;p&gt;A loop with no exit cannot force validators to execute forever either: a transaction has a finite gas budget. Metering bounds execution; it does not solve the general halting problem.&lt;/p&gt;

&lt;p&gt;Three questions help keep the concepts separate:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Can the idealized model express the computation?&lt;/li&gt;
&lt;li&gt;Will this particular program halt?&lt;/li&gt;
&lt;li&gt;Can this execution finish within its resource budget?&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Watch the visual walkthrough
&lt;/h2&gt;

&lt;p&gt;English, about 14 minutes:&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/n9033K1X1uM" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.bilibili.com/video/BV13eWT6iEb6/" rel="noopener noreferrer"&gt;中文 Bilibili 版本&lt;/a&gt; · &lt;a href="https://www.youtube.com/watch?v=v61uyog3t7c" rel="noopener noreferrer"&gt;中文 YouTube 版本&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Which of those three questions causes the most confusion when learning smart contracts?&lt;/p&gt;

&lt;p&gt;References: &lt;a href="https://ethereum.org/whitepaper/" rel="noopener noreferrer"&gt;Ethereum whitepaper — scripting and execution limits&lt;/a&gt;, &lt;a href="https://ethereum.org/developers/docs/evm/" rel="noopener noreferrer"&gt;EVM documentation&lt;/a&gt;. The whitepaper is a historical reference, not a current gas-price specification.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: this written companion was drafted by an AI assistant using my video topic, sampled video sections and the linked references.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ethereum</category>
      <category>beginners</category>
    </item>
    <item>
      <title>From bytecode to a token transfer: an EVM opcode primer</title>
      <dc:creator>苏格拉路易驴</dc:creator>
      <pubDate>Mon, 09 Nov 2026 05:06:23 +0000</pubDate>
      <link>https://dev.to/_c70a35c573ef632148/from-bytecode-to-a-token-transfer-an-evm-opcode-primer-3ec9</link>
      <guid>https://dev.to/_c70a35c573ef632148/from-bytecode-to-a-token-transfer-an-evm-opcode-primer-3ec9</guid>
      <description>&lt;p&gt;When a wallet says “send tokens,” the EVM executes a contract one instruction at a time. Understanding that gap makes transaction traces much easier to read.&lt;/p&gt;

&lt;p&gt;This is a short written companion to my opcode explainer. Start with three questions: what data enters the contract, where does execution go, and what state changes?&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Read a tiny stack program
&lt;/h2&gt;

&lt;p&gt;An opcode specifies an operation. Some instructions also consume immediate data from the bytecode. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;PUSH1 0x02   // stack: [2]
PUSH1 0x03   // stack: [2, 3] (top on the right)
ADD          // stack: [5]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The corresponding bytes are &lt;code&gt;60 02 60 03 01&lt;/code&gt;. Each &lt;code&gt;PUSH1&lt;/code&gt; consumes the next byte as data; those data bytes are not separate instructions. This example is illustrative, rather than a complete deployed contract.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Follow the input into a contract
&lt;/h2&gt;

&lt;p&gt;For a standard ABI function call, calldata begins with a four-byte selector, followed by encoded arguments. The selector comes from the first four bytes of the Keccak-256 hash of the canonical function signature.&lt;/p&gt;

&lt;p&gt;The readable function name is not sent as a string for the EVM to look up. Contract bytecode handles dispatch. Instructions such as &lt;code&gt;CALLDATALOAD&lt;/code&gt;, comparisons and conditional jumps can help implement that dispatch, but the actual sequence varies with compiler settings, optimisation and contract structure. A proxy may forward execution to another implementation.&lt;/p&gt;

&lt;p&gt;That is why an ERC-20 transfer is not one universal token-transfer opcode. The token contract implements the balance checks and updates.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Separate working data from persistent state
&lt;/h2&gt;

&lt;p&gt;Keep three places distinct when reading a trace:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Stack:&lt;/strong&gt; operands used by instructions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory:&lt;/strong&gt; temporary working space for the current call.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storage:&lt;/strong&gt; persistent contract state, accessed by instructions such as &lt;code&gt;SLOAD&lt;/code&gt; and &lt;code&gt;SSTORE&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a transfer, ask where the sender and recipient enter, where balances are read, which condition can revert, and which storage writes commit the result. The answer depends on the token implementation; do not assume every token has identical storage or behaviour.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Read gas in context
&lt;/h2&gt;

&lt;p&gt;Gas measures execution work. The gas price is the price paid per gas unit. Counting instructions alone does not give a reliable transaction cost: some costs depend on state access, memory expansion or other execution details. Use the relevant fork's rules when analysing a trace.&lt;/p&gt;

&lt;h2&gt;
  
  
  A current example: proposed SLOTDURATION
&lt;/h2&gt;

&lt;p&gt;As of November 9, 2026, Hadrien Croubois's &lt;a href="https://github.com/ethereum/EIPs/pull/12619" rel="noopener noreferrer"&gt;EIP-8484 proposal&lt;/a&gt; is an open draft. It proposes an opcode exposing the current slot duration in milliseconds, helping contracts avoid hardcoded duration assumptions. It does not itself shorten slots and is not a live mainnet instruction.&lt;/p&gt;

&lt;h2&gt;
  
  
  Video and references
&lt;/h2&gt;

&lt;p&gt;The English video also compares the EVM with Bitcoin Script:&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/4hWJWMTyhLE" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ethereum.org/en/developers/docs/evm/opcodes/" rel="noopener noreferrer"&gt;Ethereum opcode reference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.soliditylang.org/en/latest/abi-spec.html" rel="noopener noreferrer"&gt;Solidity ABI specification&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ethereum-magicians.org/t/eip-8484-slotduration-opcode/30276" rel="noopener noreferrer"&gt;SLOTDURATION proposal discussion&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;This written companion was drafted by an AI assistant using my video topics and the linked references.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ethereum</category>
      <category>blockchain</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
