Newsatoshi Layer-2 Expansion & Perfection Layers (v0.28.3)
Hourglass Architecture: Layer 1 (newsatoshi-rfc0021, Mainnet v2 nsM2) stays minimal, pure FIPS SHA-2, and ossified. Layer 2 (newsatoshi-commons) delivers machine-speed throughput, private USD stability (nsUSD), and zero-custody escape hatches.
Live APIs: Full Markdown Spec (/l2.md) · GET /api/v2/l2/status · GET /api/v2/nsusd/state · Lean 4 Proof (11 Theorems, 0 sorry) · nsUSD Spec (/nsusd) · Whitepaper v2.2 PDF
Layer 2A — Microsecond Streaming (O(1) SHA-256 PayWords)
1SHA-256 hash per API call (zero per-call gas, up to1,000,000ticks per channel) backed by unilateral partial-claim L1 settlement (RFC-0022).
Layer 2B — Stable Private Value (nsUSD, RFC-0028)
- Sovereign
nsUSD(asset_id = 1): Integer-exact BTC CDPs (>= 150%MCR,120%liquidation), Stability Pool, permissionless$1.00BTC redemption floor, andPriorLockbonded median BTC/USD oracle (50%challenger slash /50%permanentLOVEburn + stale-feed mint halt). - Bridged
nsUSD-B(asset_id = 2): Strictly isolated 1:1USDC/USDS/DAIescrow receipts with honest issuer-risk disclosure.
Layer 2C — Shielded Rollup Batching & Winterfell STARK Conservation
- Compresses thousands of off-chain
LOVE+nsUSDmicro-transfers into one deterministicSHA-256Merkle state root, proved by a live Winterfell 0.13 STARK (~22 KB), and anchored via a 32-byte commitment to Mainnet v2 L1.
Layer 2D — Unilateral L1 Escape Hatch (Zero Sequencer Custody)
- Every L2 leaf carries a verifiable
SHA-256Merkle inclusion proof enabling trustless unilateral L1 exit via nativeSHA-256HTLC /PriorLockeven if every sequencer goes offline.
Run Live Sandbox Verification via curl
# 1. Run 4-scenario adversarial nsUSD stress suite (-50% BTC crash, bank run, +40% oracle spoof, stale halt):
curl -sS -X POST https://commons.newsatoshi.org/api/v2/nsusd/simulate-stress -H 'Content-Type: application/json' -d '{"crash_pct":50}'
# 2. Run live 2,000-tx L2 PayWord + Winterfell STARK + Escape-Hatch benchmark:
curl -sS -X POST https://commons.newsatoshi.org/api/v2/l2/benchmark -H 'Content-Type: application/json' -d '{"tx_count":2000}'