Category

Crypto

Notes on the concepts and risks behind crypto, checked against official sources.

CRYPTO5 min read

Ethereum event logs and the contract state they do not replace

How Ethereum smart contract event logs differ from contract state, when Transfer events and real balances diverge—fee-on-transfer tokens, rebasing tokens, fake events—and how to query and verify logs, with a hypothetical comparison.

CRYPTO5 min read

ERC-4626 vault shares and asset conversion risks

How ERC-4626 vaults set the conversion rate between deposited assets and shares, how preview and convert functions differ, and how an inflation attack on an empty vault distorts the rate through direct donations, with a hypothetical calculation.

CRYPTO5 min read

ERC-20 decimals and the units shown in a wallet

How ERC-20 tokens store balances as integers and use decimals to set the display unit, why the same raw value can mean wildly different amounts, and what to watch with approval amounts and look-alike tokens, with a hypothetical table.

CRYPTO5 min read

Ethereum chain IDs and the role of replay protection

How the chain ID keeps a transaction signed for one Ethereum-compatible network from being replayed on another despite shared addresses, why older transaction formats without it were risky, and how to check the network before signing.

CRYPTO5 min read

Bitcoin address reuse and privacy on a public ledger

What reusing a Bitcoin address reveals on the public ledger, how input merging and change patterns can link even fresh addresses, and how hierarchical deterministic wallets help manage addresses, with a hypothetical case and table.

CRYPTO5 min read

Ethereum base fees, priority fees, and the cost of a transaction

What base fee, priority fee, and max fee mean in EIP-1559 Ethereum transactions, how the actual charge is calculated, how the base fee moves block to block, and what happens when it exceeds your max fee, with a hypothetical calculation.

CRYPTO5 min read

Bitcoin dust UTXOs and the cost of spending them

Why tiny Bitcoin UTXOs can cost more in fees to spend than they are worth, how the same UTXO's economics change with the fee rate, and how unsolicited small deposits can be used to link addresses, with a hypothetical table.

CRYPTO5 min read

What archive nodes preserve from blockchain history

How Ethereum full nodes and archive nodes differ in the data they keep, why querying balances or contract state at past blocks needs archive data, and which node suits which task, with a hypothetical query and comparison table.

CRYPTO5 min read

Understanding Ethereum nonces and replacing a pending transaction

How an Ethereum account's nonce orders transactions, why one stuck transaction blocks everything after it, and how replacing or cancelling with the same nonce and a higher fee works and where it fails, with a hypothetical pending queue.