arXiv:2610.30183cs.CROct 2026

Manuscript Offprint

arXiv:2610.30183

When EVM Defaults Break: Three SDK Patterns for UTXO-Family Wallets

Hanzheng Zhang, Hongzhou Chen

Hanzheng Zhang ID^{ID}

Common Knowledge Base Association

China

0@hanssen0.com

Hongzhou Chen ID∗^{ID*}

Common Knowledge Base Association

Baoliang Education (HK) Group Ltd.

Hong Kong SAR

hongzhouchen@ieee.org

Abstract—Mainstream Web3 SDKs (e.g., ethers.js, viem) bundle three coupled assumptions: an account-based ledger, a single secp256k1 signer, and input-selection-free transaction construction. These assumptions fail once a chain adopts an extended-UTXO model (here, the Cell model on Nervos CKB), and once the wallet population spans heterogeneous cryptographic primitives (secp256k1, WebAuthn, Schnorr). Using CKBers' Codebase (CCC), a TypeScript SDK, this retrospective case study extracts three recurring patterns from release history and exported APIs: a Transaction Composer that makes capacity-aware input completion and fee estimation declarative, a Unified Signer Abstraction that normalizes signing across heterogeneous wallets behind one interface, and a Connector UI component that ships per-wallet onboarding as a drop-in. The contribution is the articulation of these patterns as transferable design lessons for SDKs targeting UTXO-family ledgers and heterogeneous wallet populations.

Index Terms—Web3 SDK, wallet abstraction, extended UTXO, key management, design patterns.

I. INTRODUCTION

The dominant client-side Web3 toolchain is shaped by Ethereum. Libraries such as ethers.js and viem encode three load-bearing defaults [1]–[3]: state lives in accounts rather than unspent outputs [4], a single secp256k1 key behind an externally owned account (EOA) signs every transaction, and a transaction is a nonce-ordered payload constructed without selecting concrete inputs. On extended-UTXO chains, these defaults fail together. Extended-UTXO chains [5], including the Cell model of Nervos CKB [6] studied here, place state inside typed UTXO-like units (cells) guarded by user-defined scripts, with capacity rather than gas as the scarce resource. Such chains also serve a heterogeneous wallet population: deployed CKB wallets sign with secp256k1 ECDSA, WebAuthn passkeys, or Schnorr keys (Nostr), each with its own signing path and key-management model [7], [8]. Through CKBers' Codebase (CCC), a TypeScript SDK with over 330 tagged releases, this poster identifies and contributes three reusable design patterns.