# Newsatoshi Layer-2 Expansion & Perfection Layers (`v0.28.3`)

**Hourglass Principle:** Layer 1 (`newsatoshi-rfc0021`, Mainnet v2 `nsM2`) stays radically small, pure FIPS SHA-2, and ossified. Layer 2 (`newsatoshi-commons`) delivers machine-speed throughput, private USD stability (`nsUSD`), and zero-custody escape hatches.

## The 4 Perfection Layers Above Layer 1

1. **Layer 2A — Microsecond Streaming (`O(1)` SHA-256 PayWords):**
   - `1` SHA-256 hash per API call (`~0.013 ms` verification, zero per-call gas, up to `1,000,000` ticks per channel).
   - Unilateral partial-claim L1 channel close (`RFC-0022`) eliminates counterparty griefing.
2. **Layer 2B — Stable Private Value (`nsUSD`, `RFC-0028`):**
   - **Sovereign `nsUSD` (`asset_id = 1`):** Over-collateralized Bitcoin (`>= 150%` MCR, `120%` liquidation), Liquity-style Stability Pool, direct `$1.00` permissionless collateral redemption floor, and `PriorLock` bonded median BTC/USD oracle (`50%` challenger slash / `50%` permanent `LOVE` burn on outlier spoofing).
   - **Bridged `nsUSD-B` (`asset_id = 2`):** Strictly isolated 1:1 `USDC`/`USDS`/`DAI` escrow receipts carrying honest underlying issuer-risk disclosure.
   - Live Stress-Test API: `POST /api/v2/nsusd/simulate-stress` (proves `-50%` flash-crash liquidation, bank-run redemption, oracle slash & stale circuit breaker live).
3. **Layer 2C — Shielded Rollup Batching & Winterfell STARK Proofs (`src/l2_rollup.rs`):**
   - Aggregates thousands of off-chain `LOVE` + `nsUSD` micro-transfers into a single deterministic `SHA-256` Merkle state root, proved by a real Winterfell 0.13 STARK conservation proof (`~22 KB`), anchored via a 32-byte commitment onto Mainnet v2 L1.
   - Live Benchmark API: `POST /api/v2/l2/benchmark` (runs a real live measured batch + Winterfell STARK prove/verify + Merkle escape-hatch proof).
4. **Layer 2D — Unilateral L1 Escape Hatch (Zero Sequencer Custody):**
   - Every L2 user receives a `SHA-256` Merkle inclusion proof (`L2EscapeHatchProof`) enabling trustless unilateral L1 exit via native `SHA-256` HTLC / `PriorLock` even if all sequencers go offline or attempt censorship.
