Ref Node Live| VIEW RUST CORE ON GITHUB →
INTRODUCTION
CHAIN
RESOURCES
INNOVATION
CONNECT
Sahyadri
A Sovereign Peer-to-Peer Digital Money System
Suraj Datir
surajdatir3@gmail.com
www.sahyadri.io

Abstract. A purely peer-to-peer version of electronic cash, built as a sovereign digital money system, would allow online payments to be sent directly from one party to another without going through a financial institution. Existing proof-of-work networks solve the double-spending problem but limit throughput to a single linear chain, discarding valid blocks when multiple miners discover them simultaneously. We propose a solution based on a directed acyclic graph structure, which accepts every valid block and orders them into a single deterministic history through a novel consensus protocol. The network is secured by a memory-hard proof-of-work algorithm that compresses the gap between specialized and general-purpose hardware, and uses 100% signatureless authorization (64-byte secret key sk mapped into Goldilocks F_p, p = 2^64 - 2^32 + 1, with 32-byte Poseidon2 addresses csm1s... / csmtest1s... at Bech32m version 130) — eliminating asymmetric keypairs, public keys, signatures, and elliptic-curve migration risk. State is managed through an Account + Crest model, enabling direct balance transfers without tracking individual unspent outputs, while a strictly capped supply with disinflationary emission ensures predictable monetary economics. On top of this, Sahyadri is proof-native: client Plonky3 STARK proofs are aggregated and folded by recursive Plonky3 STARKs (Goldilocks field, FRI commitments) into a root proof π_n, with size sublinear in the batch size (|π_n| = O(log N)) and verification time T_verify(π_n) independent of chain length n. Proofs are generated asynchronously after block acceptance and currently run in honest-prover mode; a fully sound single-root recursion is in progress. A light client can verify a block without downloading the chain and without trusting any RPC endpoint. Furthermore, Sahyadri natively integrates Web5 Decentralized Identifiers (DIDs) within its Crest model, providing a sovereign identity layer alongside its monetary system without introducing network state bloat. The network itself requires minimal structure. Messages are broadcast on a best effort basis, and nodes can leave and rejoin the network at will, accepting the finalized DAG ordering as proof of what happened while they were gone.

1. Introduction

State transition:
  σ_{n+1} = δ(σ_n, B_n)
  where σ = full state, B_n = block at height n, δ = deterministic transition

Sahyadri is implemented on SahyadriDAG, a directed acyclic graph (DAG) data structure that permits parallel block creation by independent miners. Unlike traditional single-chain blockchains that discard concurrent blocks as orphans, SahyadriDAG embraces them: every valid block contributes to the ledger, and the Ashwa Consensus protocol produces a single deterministic total ordering of all transactions. This eliminates the wasted-hash problem of single-chain designs. The DAG substrate (block storage, reachability, difficulty sampling and pruning proofs) is derived from the open-source rusty-kaspa codebase; the Account + Crest state model, SahyadriX proof-of-work, signatureless Plonky3 STARK authorization over Goldilocks F_p with Poseidon2, SyncWave, Flash Transactions, the Web5 identity layer and the recursive proof stack are Sahyadri's own work.

The network is secured by SahyadriX — a three-stage memory-hard Proof-of-Work. A BLAKE3 chain fills a 16 MB buffer, a 1024-round data-dependent mixing loop folds the buffer into a 32-byte state, and a Poseidon2 permutation over the Goldilocks field compresses that state into the difficulty-checked output. Every nonce attempt requires the full 16 MB working set, so mining cost is dominated by memory latency rather than raw arithmetic throughput — which is what compresses the ASIC/CPU gap. The acceptance condition is: pow(n) = Poseidon2_12( MemLoop_1024( B3Chain_524288( pre_pow ‖ t ‖ n ) ) ) ≤ target

Sahyadri operates on a hybrid Account + Crest model. Rather than tracking individual unspent outputs (UTXOs), the protocol maintains per-address balances. Each transaction atomically deducts from the sender and credits the receiver, with balance finality enforced at the block confirmation boundary. This model delivers account + crest based ergonomics with the security of Proof-of-Work.

1.1 Key Protocol Parameters

PropertySpecification
Ticker SymbolCSM (Cryptographic Sovereign Money)
Smallest UnitKana — 1 CSM = 100,000,000 Kana (8 decimals)
Maximum Supply21,000,000 CSM (hard cap, protocol-enforced)
Block Time1 second (deterministic)
ThroughputHigh TPS
Initial Block Reward0.08318123 CSM per block (8,318,123 Kana)
Halving IntervalEvery 4 years (126,230,400 blocks)
Block Reward Split95% Miner / 5% Sahyadri Treasury
TX Fee Split90% Miner / 10% Sahyadri Treasury
Minimum TX Fee0.00001 CSM (1,000 Kana) — fixed flat fee
ConsensusAshwa Consensus
Mining AlgorithmSahyadriX (BLAKE3 chain + 16 MB memory loop + Poseidon2 final)
State ModelAccount + Crest (balance + flash per address)
Address FormatCSM32 (Bech32-derived, prefix: csm1...)
Authorization & Proof SchemeSignatureless Plonky3 STARK + Poseidon2 (Goldilocks F_p, FRI)
Network PortsgRPC: 27113 | P2P: 26111 | wRPC: 27110

2. Account + Crest Model

Sahyadri employs a hybrid Account + Crest model stored in RocksDB. The Account layer manages balances for rapid money transfers, while the Crest layer anchors identity data without congesting the consensus layer. This eliminates the "dust" problem inherent in high-frequency UTXO systems at 1-second block times.

2.1 Account State Structure

Each account entry in RocksDB contains:

When a transaction is confirmed in a block, the state transition is atomic:

sender.balance    -= (amount + fee)
receiver.balance   += amount
miner.balance      += fee * 0.90
treasury.balance   += fee * 0.10
sender.recent_flashes.record(flash_id, expiry_daa_score)

2.2 Crest Layer — Sovereign Identity

The Crest layer stores state commitments in a Merkle trie rooted in each block header. Each block header commits to a crest-based state root — a hash cryptographically summarising the entire current ledger state.

Crest Documents support typed verification methods with explicit purposes (Authentication, KeyAgreement, CapabilityInvocation, CapabilityDelegation, Assertion) and dual-indexed storage for O(1) resolution by DID or controller address.

This enables:

2.3 Why Not Pure UTXO?

At high transaction volumes, pure UTXO models can generate millions of small outputs ("dust") that fragment user balances. The Account model resolves this: each address maintains a single unified balance. Atomic state transitions ensure that partial updates are impossible.

2.4 Native Web5 Identity Anchoring

The Crest layer serves as the cryptographic registry for Decentralized Identifiers (DIDs). Users can anchor their lightweight DID documents on-chain, acting as the foundational layer for Web5 Verifiable Credentials without congesting the consensus layer.

2.5 Sparse Merkle Tree (SMT)

Every block header commits to a Sparse Merkle Tree (SMT) root — a single 32-byte hash that summarises the entire account state. The tree has 256 levels; each account occupies exactly one leaf, keyed by the SHA3-256 hash of its CSM32 script.

The SMT is content-addressed: a node's hash is fully determined by its children, and the root depends only on the set of (key, value) pairs — never on insertion order, never on state transition history. Two independent nodes processing the same accounts arrive at the identical root.

Domain-Separated Hashing

Leaf:   Poseidon2_W8("SAHYADRI_SMT_LEAF_V1"   || key || value)
Branch: Poseidon2_W8("SAHYADRI_SMT_BRANCH_V1" || left || right)
Empty:  [0u8; 32]

The domain prefixes prevent second-preimage attacks that could otherwise substitute a leaf for a branch. They are enforced at the crate level — not a convention, an invariant.

Single-Leaf Compression

Subtrees holding a single leaf are compressed into that leaf. Effective depth is under 64 in practice. Proof sizes stay small; generation costs stay bounded — regardless of how many accounts the network holds.

Storage & Complexity

Nodes are content-addressed in RocksDB. Updating one account writes a fresh path from leaf to root; untouched nodes are shared with the previous block and never rewritten. Storage cost is proportional to state changes, not state size.

OperationTimeSpace
LookupO(depth)O(1)
Insert / UpdateO(depth)O(depth)
Proof generationO(depth)O(depth)
Proof verificationO(depth)O(depth)

The SMT is the state layer that powers state proofs (§10.1), light-client verification (§10.2), and SyncWave bootstrap (§9.5).

3. Transactions

A Sahyadri transaction is a cryptographically signed state-transition instruction authorizing a transfer of value from a sender account to a receiver account, subject to flash_id replay validation, balance sufficiency, and fee payment. Transactions are pending until included in a miner-confirmed block; only then do balance changes take effect.

3.1 Transaction Structure

Transaction {
  sender:    CSM32 address
  receiver:  CSM32 address
  amount:    u64 (in Kana)
  fee:       u64 (fixed: 1,000 Kana = 0.00001 CSM)
  expiry_daa_score: u64
  salt:      [u8; 16]
  flash_id:  SHA3-256(sender+recipient+amount+fee+expiry_daa_score+salt)
  tx_id:     SHA3-256(sender+receiver+amount+flash_id+timestamp)
}

3.2 Full Transaction Lifecycle

USER INITIATES TRANSACTION
  |
  +--> Submit to node (P2P)
         |
         +--> [VALIDATION]
         |     |-- Sender account exists?
         |     |-- balance >= (amount + fee)?
         |     |-- flash_id not in recent_flashes, expiry not passed?
         |
         +--> [MEMPOOL]
         |     |-- Add to pending queue
         |     |-- Lock balance (anti-spend)
         |     |-- Record flash_id (anti-replay)
         |
         +--> Return: { txid, status: 'pending' }
                              |
MINER MINES NEXT BLOCK (~1 second)
  |
  +--> Block produced
         |
         +--> [BLOCK REWARD]
         |     |-- miner.balance    += reward * 0.95
         |     |-- treasury.balance += reward * 0.05
         |
         +--> [TX CONFIRMATION]
               |-- sender.balance    -= (amount + fee)
               |-- receiver.balance  += amount
               |-- miner.balance     += fee * 0.90
               |-- treasury.balance  += fee * 0.10
               |-- status = 'confirmed'
Atomic transfer condition:
  valid(tx)  ⟺  VerifyStark(addr_sender, π_STARK, H_stark(tx)) = ⊤
              ∧  bal[sender] ≥ amount + fee
              ∧  current_daa ≤ tx.expiry_daa_score
              ∧  tx.flash_id ∉ sender.recent_flashes

State update (single atomic operation):
  bal[sender]  -= (amount + fee)
  bal[receiver] += amount
  bal[miner]    += fee × 0.90
  bal[treasury] += fee × 0.10

3.3 Mempool and Pending Queue

The mempool is maintained locally by each node in memory, providing persistence across node restarts and double-spend protection through locked-balance accounting.

# Double-spend prevention
# Check total locked in mempool for sender
locked = mempool.get_locked(sender)

# New TX accepted only if:
sender.balance >= locked + (new_amount + new_fee)

3.4 Mempool Fairness & Anti-Bot Shield

3.5 Replay Attack Prevention (Flash Transactions)

Every transaction carries a flash_id and an expiry_daa_score. The node checks the flash_id against the sender's bounded recent_flashes replay window and confirms the current DAA score has not passed expiry_daa_score, before accepting the transaction:

# Node validation
if current_daa_score > tx.expiry_daa_score:
    return error('FlashTx expired')
if account.is_flash_replay(tx.flash_id):
    return error('FlashTx replay detected')

# Record on mempool accept
account.recent_flashes.push(tx.flash_id, tx.expiry_daa_score)

3.6 Transaction Fee Model

Sahyadri uses a fixed flat fee of 0.00001 CSM (1,000 Kana) per transaction, regardless of transfer amount. This is the lowest transaction fee of any major blockchain:

MethodFee ModelFee at $100 transfer
SahyadriFixed flat0.00001 CSM
Payment ApplicationPercentage-based$1.50 – $3.00
Bank Transfer (domestic)Flat or percentage$1.00 - $10.00
Bank Wire (international)Flat + hidden fees$15.00 - $50.00
Money Transfer ServiceFlat + percentage$5.00 - $30.00

Even at CSM = $10,000 USD, the fee is only $0.10 per transaction. The fee is defined once in code and applies universally:

# Fixed fee parameters
TX_FEE_KANA           = 1000       # 0.00001 CSM - fixed forever
TX_FEE_MINER_SPLIT    = 0.90       # 90% to block miner
TX_FEE_TREASURY_SPLIT = 0.10       # 10% to treasury

4. SahyadriX — Proof of Work

SahyadriX is a three-stage memory-hard Proof-of-Work. The BLAKE3 chain provides the required computational depth; the Poseidon2 final binding makes the output verifiable inside a compact recursive proof system at low constraint cost. Formally: pow(n) = Poseidon2(MemLoop(B3Chain(pre_pow ‖ t ‖ n))) ≤ target where pre_pow is the block header with nonce and timestamp zeroed, t is the timestamp, and n is the nonce being searched.

4.1 Algorithm (Rust Implementation)

// SahyadriX: BLAKE3 chain + 16MB memory loop + Poseidon2 final
// File: crypto/hashes/src/pow_hashers.rs

const MEM_SIZE: usize = 16 * 1024 * 1024;  // 16 MiB buffer
const FILL_ITERS: usize = 524_288;          // BLAKE3 chain iterations
const ROUNDS:     usize = 1_024;            // memory mixing rounds
const WINDOW:     usize = 32;               // bytes per random read

pub fn hash(data: &[u8]) -> Hash {
    // Stage A: BLAKE3 chain fills 16 MB buffer
    // Stage B: 1024 rounds of data-dependent random access
    // Stage C: Poseidon2_12 over Goldilocks compresses state -> 32 bytes
    Hash::from_bytes(poseidon2_output(&buffer, &state))
}

4.2 PoW Bound to Block Contents

SahyadriX is cryptographically bound to the exact block template. Any change to block contents requires full recomputation:

// PowHash - connects SahyadriX to specific block
pub fn finalize_with_nonce(&self, nonce: u64) -> Hash {
    let mut data = Vec::with_capacity(48);
    data.extend_from_slice(self.pre_pow_hash.as_bytes());
    data.extend_from_slice(&self.timestamp.to_le_bytes());
    data.extend_from_slice(&nonce.to_le_bytes());
    SahyadriX::hash(&data)  // 16MB computation
}

4.2.1 Comparative Design Philosophy

SahyadriX differs from existing Proof-of-Work algorithms in both memory profile and hardware optimization goals.

The primary objective of SahyadriX is not to eliminate specialized hardware entirely, but to compress the efficiency gap between commodity hardware and ASICs sufficiently to preserve broad mining accessibility.

4.3 Device Balance Comparison

DeviceMemoryCompatibilityRelative Efficiency
ASIC (custom)Limited on-chipConstrained by 16 MB req.~2-3x GPU
GPU (consumer)4+ GB VRAMFull parallel executionBaseline
CPU (modern)System RAMCompetitive~0.3-0.5x GPU

4.3.1 ASIC Resistance Philosophy

SahyadriX does not claim absolute ASIC resistance. The objective is to continuously preserve broad mining accessibility by maintaining a Proof-of-Work design that prioritizes memory-latency costs and real-world hardware balance.

The protocol may evolve its memory-hard parameters through future network upgrades when necessary. Sahyadri treats ASIC resistance as an ongoing security objective rather than a fixed one-time property.

4.4 Quantum-Resistant Hashing Layer

All transaction hashes, block headers, and Merkle trees use SHA3-256 (Keccak), providing 256-bit quantum security against Grover's algorithm attacks. This replaces Blake2b which offered only 128-bit quantum security.

ComponentAlgorithmQuantum Security
Transaction HashSHA3-256256-bit
Block HeaderSHA3-256256-bit
Merkle TreeSHA3-256256-bit
PoW (SahyadriX)BLAKE3 + Poseidon2256-bit classical / 128-bit quantum
AuthorizationSignatureless Plonky3 STARKPoseidon2 + FRI (Goldilocks F_p)

4.5 Post-Quantum Signature Layer

All wallet authorizations in Sahyadri are signatureless Plonky3 STARK preimage proofs over Goldilocks field F_p (p = 2^64 - 2^32 + 1) and Poseidon2 with FRI commitments — zero public keys, zero asymmetric signatures, zero elliptic curves, and no trusted setup.

PropertySignatureless Plonky3 STARK (Poseidon2 / Goldilocks)
Asymmetric Signature Size0 bytes (100% signatureless STARK)
Public Key / Signature Size0 bytes (no public keys or asymmetric signatures)
Secret Key Preimage (sk)64 bytes (512-bit, Goldilocks field F_p)
Field & CommitmentGoldilocks F_p (p = 2^64 - 2^32 + 1), Poseidon2 + FRI
Field & HashGoldilocks (p = 2^64 - 2^32 + 1) + Poseidon2 + FRI

Sahyadri uses SIMD and multi-core parallelism to accelerate Goldilocks field arithmetic, Poseidon2 hashing, and Plonky3 STARK proof generation and recursive verification.

5. Network Architecture

The Sahyadri network operates as a fully decentralized peer-to-peer system. Nodes communicate over three primary channels: gRPC (port 27113) for client-node communication; P2P (port 26111) for block and transaction propagation between nodes; wRPC/WebSocket (port 27110) for browser-based and light-client interfaces.

5.1 Full System Architecture

SAHYADRI NETWORK ARCHITECTURE

+-----------------------------------------------------------+
|                  sahyadrid (Rust Node)                    |
|   RocksDB: accounts { address, balance, recent_flashes }  |
|   SahyadriDAG: parallel blocks, 1s block time             |
|   SahyadriX PoW: BLAKE3 + 16MB loop + Poseidon2           |
|   coinbase.rs: 0.08318123 CSM reward, 4yr halving         |
+------------------+----------------------+-----------------+
                   | gRPC :27113          | P2P :26111
                   |                      |
+------------------+---------+   +--------+-----------------+
|   Client / Wallet          |   |  Other Sahyadri Nodes    |
|   - Send transactions      |   |  worldwide (P2P gossip)  |
|   - Check balance          |   +--------------------------+
|   - Query blocks           |
+----------------------------+

5.2 Node Types

Node TypeData RetainedUse CaseStorage
Full Archive NodeAll blocks + full TX historyExplorer, auditingGrowing (GB–TB)
Pruned Full NodeCurrent state + recent blocksMining, validation5–10 GB stable
Light ClientBlock headers + Merkle proofsWallet verificationMinimal

5.3 Network Security Matrix

Because Sahyadri uses 100% signatureless Plonky3 STARK proofs over Goldilocks F_p and supports stripping client STARK proofs once covered by block recursive STARK aggregation, on-chain proof data is folded into root proof π_n rather than growing linearly with per-tx asymmetric signatures.

6. Consensus — SahyadriDAG

Ashwa Consensus is a deterministic finality engine that operates on the SahyadriDAG data structure to produce a single, total, immutable ordering of all blocks and transactions.

Ordering relation:
  b_i ≺_ord b_j  ⟺  depth(b_i) < depth(b_j)
                 ∨  (depth(b_i) = depth(b_j) ∧ W(b_i) > W(b_j))

Cumulative weight:
  W(b) = d(b) + Σ_{p ∈ parents(b)} W(p)

6.1 Parallel Block Production

Multiple miners may simultaneously mine different blocks at the same height. All valid blocks contribute to the ledger — none are discarded as orphans:

Second 1:
+----------+   +----------+   +----------+
| Block A  |   | Block B  |   | Block C  |
+----+-----+   +----+-----+   +----+-----+
     |              |              |
     +--------------+--------------+
                    |
     Ashwa Consensus: deterministic ordering
                    |
     +--------------+-------------+
     |   FINALIZED BLOCK SET      |
     |  (all 3 contribute to DAG) |
     +----------------------------+

6.1.1 Deterministic Ordering and Bounded-Reversal Finality

Ashwa Consensus produces a deterministic total ordering through mathematical DAG ordering rather than validator voting, with reversal probability bounded geometrically in depth (Appendix A.3). The Sahyadri Score calculation is independently computable by every honest node without coordination or leader election.

Because every node deterministically derives the identical total ordering from the same finalized DAG structure, the network converges on a single immutable transaction history without requiring a validator committee, staking system, or delegated authority.

Under honest-majority assumptions, finalized blocks become computationally impractical to reorganize, providing deterministic finality characteristics comparable to Byzantine Fault Tolerant systems while preserving the permissionless security model of Proof-of-Work.

6.2 Throughput Bound

Transaction throughput is governed by max_block_mass in consensus parameters. Each account-model transaction has a mass of approximately 3,000 units:

// consensus/core/src/config/params.rs
max_block_mass: 20_000_000,

// Calculation:
// 20,000,000 mass / 3,000 mass-per-tx
// ≈ 6,666 TX/s per block lane at 1 BPS; DAG parallelism and propagation set real throughput

6.3 Dual Finality: Transaction vs. Reward

Block creation occurs in ~1 second, but deterministic financial finality (where rewards are issued) is achieved within a few seconds based on Sahyadri Score confirmation.

6.4 Finality Properties

PropertySahyadriBitcoinEthereum
Finality typeDeterministic order; reversal probability boundedProbabilisticEconomic (Casper FFG)
Depth for finalitySet by target ε (Appendix A.3)6 blocks (convention)2 epochs
Reorg possible?Probability decays geometrically with depthYesOnly with slashing of ≥1/3 stake
Orphaned blocksParallel blocks are mergedYesRare

6.4.1 Security Assumptions

Ashwa Consensus operates under the standard honest-majority assumption used by Proof-of-Work systems. Finality is deterministic once blocks are ordered and finalized within the SahyadriDAG.

Network partitions, propagation delays, and temporary latency spikes may delay finalization but cannot create conflicting finalized histories among honest nodes.

6.5 Consensus Mechanics

Traditional blockchain architectures suffer from linear bottlenecks, where only one block can be processed at a time. Sahyadri fundamentally shifts this paradigm by utilizing a Directed Acyclic Graph (DAG) structure. Multiple miners can propose blocks concurrently, and parallel blocks are cryptographically woven into the DAG.

Sahyadri solves the finality problem by decoupling block generation from block finalization. The Ashwa Consensus algorithm calculates a deterministic 'Sahyadri Score' by weaving parallel blocks into a chronological order, delivering a deterministic total order, with reversal probability bounded by cumulative work (Appendix A.3), without requiring any validator committee.

6.6 Throughput Assumptions

Sahyadri is designed for high transaction throughput through parallel transaction processing and optimized consensus parameters. Actual throughput depends on network topology, hardware configuration, transaction complexity, and propagation latency.

7. Block Rewards and Fee Economics

Sahyadri's incentive structure combines predictable block issuance with a flat transaction fee. All monetary parameters are fixed at genesis and cannot be altered without a consensus-breaking hard fork.

7.1 Block Reward Calculation

// consensus/src/processes/coinbase.rs
pub fn calc_block_subsidy(&self, blue_score: u64) -> u64 {
    let base_reward: u64    = 8_318_123;
    let halving_interval: u64 = 126_230_400;
    let halvings = blue_score / halving_interval;
    if halvings >= 64 { return 0; }
    base_reward.checked_shr(halvings as u32).unwrap_or(0)
}

// Indexer split (indexer.rs)
BLOCK_TREASURY_SPLIT = 0.05
BLOCK_MINER_SPLIT    = 0.95

7.2 Halving Schedule

Epoch (k)Block Reward (CSM)YearsAnnual EmissionCumulative
0 (Genesis)0.083181230 – 4~2,625,000 CSM~10,500,000
10.041590624 – 8~1,312,500 CSM~15,750,000
20.020795318 – 12~656,250 CSM~18,375,000
30.0103976512 – 16~328,125 CSM~19,687,500
...............
63~0>252 years~0~21,000,000

"Halving is triggered by Sahyadri Score, not raw block count. Since parallel blocks exist in the DAG, raw block count is higher than Sahyadri Score. Halving occurs when Sahyadri Score reaches 126,230,400 (representing ~4 years of chronological time), maintaining the strict 21M cap."

8. Blockchain Data Storage

Sahyadri nodes store the complete blockchain data locally using RocksDB — a high-performance embedded key-value database. No external database, no cloud dependency, no centralized indexer required. Every node independently maintains the full ledger from genesis.

8.1 Node Data Storage

Node (RocksDB) Stores:
+---------------------------+
| Account balances          |
| Transaction history       |
| Block headers             |
| DAG structure             |
| Current state             |
+---------------------------+
Size: 5-10 GB (pruned) or full archive

8.2 Node Sync Process

NODE SYNC (sahyadrid):

1. Start node
2. Connect to P2P network (port 26111)
3. Download blocks from peers (genesis → current)
4. Validate each block independently
5. Build local RocksDB state
6. Node fully synced — ready to mine/validate

8.3 API Endpoints (Built-in)

APIEndpointDescription
NodeGET /api/blocksRecent blocks
NodeGET /api/block/:hashBlock detail
NodeGET /api/balance/:addrAccount balance
NodePOST /api/sendSubmit transaction
NodeGET /api/statsNetwork stats

9. Disk Space and Pruning

Sahyadri nodes are designed to be lightweight. The default node stores only current state and recent blocks, automatically pruning old data to maintain a stable 5-10 GB footprint. Archive nodes store the complete history for explorers and analytics.

Pruned Node (Default):          Archive Node:
+---------------------------+   +---------------------------+
| Current state             |   | Full history              |
| Recent blocks             |   | All transactions          |
| DAG structure             |   | All blocks                |
+---------------------------+   +---------------------------+
Size: 5-10 GB stable            Size: Grows continuously

9.1 State Management: 30-Hour Pruning & Archival Offloading

High-throughput blockchains typically suffer from massive state bloat, making it prohibitively expensive to run a full node. Sahyadri addresses this through a strict Blue Score-based pruning architecture, separating lightweight consensus from archival storage.

9.5 SyncWave — Fast Node Bootstrap

A fresh node does not need to replay the chain from genesis. It downloads a verified SyncWave — an untrusted snapshot of SMT state at a recent checkpoint block — proves it locally against the checkpoint header's account_commitment, and resumes ordinary sync from the checkpoint forward.

This collapses fresh-node startup from hours of full IBD to seconds of verified download, without weakening the trust model by a single bit.

The Bootstrap Problem

ApproachCostFailure Mode
Replay from genesisHours to daysWindow never closes on a growing chain
Trust a peer's stateSecondsPeer can lie, omit, or serve stale fork
SyncWaveSecondsNone — cryptographically verified

SyncWave offers a third path: download untrusted state, verify it cryptographically against a header the client already trusts. The peer's role collapses to that of a dumb pipe.

SyncWave Structure

SyncWave {
  metadata:       SyncWaveMetadata,
  smt_nodes:      Vec<(H256, SyncWaveNode)>,
  account_states: Vec<(Hash, SyncWaveState)>,
}

SyncWaveMetadata {
  block_hash:      Hash,     // checkpoint block
  block_height:    u64,      // Sahyadri Score
  account_root:    Hash,     // == header.account_commitment
  total_smt_nodes: u64,
  total_accounts:  u64,
  chunk_size:      u32,
  total_chunks:    u32,
}

Wire Protocol

Metadata is fetched first — a few hundred bytes — so the client knows the checkpoint block hash, its height, and how many chunks to expect. Chunks are bincode-encoded slices of the concatenated [smt_nodes..., account_states...] sequence. The client fetches chunks from any peer, in any order, retrying from alternate peers on corrupt chunks.

Verification

Verification is entirely local — no network calls. It runs four checks:

If all four pass, the SyncWave is the state at the checkpoint block. There is exactly one tree with that root, and the client has reconstructed it.

Atomic Load

Nodes and states are content-addressed, so writes are idempotent — a crash mid-load leaves a partial but self-consistent tree. Re-running the load completes it. The checkpoint root mapping lands in a single write batch and is either fully persisted or absent.

Bootstrap Flow

  1. Fetch metadata from any peer
  2. Verify the checkpoint header (PoW, DAG ordering, account_commitment)
  3. Download all chunks, retrying from alternate peers on failure
  4. Reassemble and run verify() — sub-millisecond for typical trees
  5. Insert nodes and states; persist the checkpoint root last
  6. Sync tip from checkpoint forward — seconds, not hours
  7. Node online, serving RPC and P2P

CLI

sahyadrid \
    --sync-wave grpc://seed-node:27113 \
    --sync-wave-checkpoint <optional-hash>

Bootstrap runs before the node opens its RPC and P2P ports. A node launched with --sync-wave is fully synced to the checkpoint by the time it appears on the network. Every full node serves SyncWave on its standard gRPC port; no special configuration is required on the serving side.

Security Analysis

ThreatMitigation
Forged SyncWaveRoot is committed in the PoW-protected header; fabrication requires a SHA3-256 preimage
Truncated SyncWaveDangling-reference check rejects partial trees
Inflated metadataDeclared node count must equal walk count
Stale SyncWaveClient binds download to a specific verified block hash
Malicious peer mid-downloadChunks are self-contained; bad chunks caught at reassembly
Replay across forksEach block has a unique root; cross-fork replay is impossible

There is no trusted third party. The verifier's only assumption is that the checkpoint header was produced by honest consensus — the same assumption every full node makes. SyncWave adds zero new trust assumptions.

Measured Performance

On a 2-node local testnet (real mining, real SMT state, real cryptographic verification), bootstrap completed in ~10 ms for a small state of 5 SMT nodes and 2 accounts. Production-scale networks project to seconds — dominated by download bandwidth, not verification cost, which stays O(depth) regardless of state size.

10. Instant Payment Verification (IPV)

Instant Payment Verification allows lightweight clients to confirm transaction finality without downloading the full blockchain. Because Sahyadri orders blocks deterministically from the DAG, the cost of reversing a confirmed transaction grows geometrically with depth (Appendix A.3).

A light client verifying a payment needs only: the finalized block header (contains state root and block hash), a compact Merkle inclusion proof linking the TX to the block, and proof that the block has been finalized by Ashwa Consensus. Sahyadri IPV accepts a payment once its block reaches the depth required for the target reversal probability (Appendix A.3). This enables point-of-sale terminals to accept payments as fast as block confirmation, merchants to settle with cash-equivalent confidence, and embedded payment processors to operate with minimal bandwidth.

The Merkle inclusion proof consists of:

(01) the transaction hash,
(02) sibling hashes along the path from the TX leaf to the state root,
(03) the finalized block header containing the state root.

Verification requires O(log n) hashes — feasible on any mobile device or embedded processor.

State proof verification:
  Verify(path, leaf, root) → {⊤, ⊥}
  
  Recomputed root = walk(path, query_key_bits, leaf)
  
  Accept ⟺ Recomputed root == trusted root
          ∧ leaf.key == query_key

10.1 State Proofs

A state proof is a compact cryptographic witness that a key-value pair is (or is not) present in the SMT at a specific block. It lets any client verify an account balance without holding the full database, without trusting the node that served the proof, and without replaying any block history.

Proof Structure

Proof {
  siblings: Vec<H256>,    // one hash per level, root-down
  terminal: Terminal,     // leaf or empty subtree at the end
}

Terminal::Empty                     // proof of absence
Terminal::Leaf { key, value }       // proof of presence

Verification

The verifier reconstructs the root upward from the terminal, choosing left/right at each level based on the corresponding bit of the query key. Success requires:

The second condition binds the proof to the actual key being asked about — without it, an adversary could substitute a leaf with a different key and still produce a valid path.

Exclusion Proofs

An SMT proves not only what exists, but what does not. If the path terminates in an empty subtree, the account is provably absent. If it terminates at a leaf whose key differs from the query but shares the correct prefix up to the divergence, the account is absent via a divergent leaf.

Proof Size & Verification Cost

PropertyValue
Sibling size32 bytes
Typical proof< 2 KB
Worst case~8.2 KB
VerificationO(depth) SHA3, < 1 ms on any device

Recursive and chain STARK proofs are compact and transparent. The verification path contains no elliptic-curve operations, no pairings, no trusted setup. The only assumption is that the block header was produced by honest consensus — the same assumption every full node makes.

10.2 Light Client Architecture

A Sahyadri light client stores only block headers and requests state proofs on demand. It does not hold the SMT, the state database, or the transaction history. Total storage is bounded by the header chain the client chooses to retain.

Trust Model

The client trusts exactly one thing: the header chain it has independently verified. Everything else — every balance it displays, every payment it authorizes — is a cryptographic consequence of a header the client already trusts. The node that serves a proof carries no trust weight.

Verification Flow

  1. Verify a block header (or fetch a trusted checkpoint); extract account_commitment.
  2. Request get_account_proof(address, block_hash) from any peer.
  3. Recompute the SMT root from the proof — a few hundred SHA3 hashes, under 1 ms.
  4. Compare against the trusted root. Match means valid; mismatch means the peer is lying.
  5. Use the verified state.

Storage Footprint

ComponentSize
Header chain (finalized window)~10 MB / year
Recent proofs (working set)< 1 MB
SMT verification library< 100 KB
Total< 15 MB

Deployment Targets

The verification core is designed for browser deployment, to no_std + alloc for embedded POS terminals, and to native mobile targets through the Sahyadri JS SDK, with additional platform targets planned. The algorithm and proof format are identical on every platform.

Security Properties

11. Web5 and Sovereign Identity

Sahyadri extends the concept of sovereignty beyond digital money into digital identity by natively supporting Web5 protocols at the base layer. Traditional Layer-1 networks treat identity as an afterthought, often relying on centralized off-chain servers or state-heavy smart contracts. Sahyadri integrates identity directly into its Account + Crest model, alongside its high-throughput architecture and 30-hour pruning design.

11.1 Decentralized Identifiers (DIDs)

Users can cryptographically generate and control a unique Sahyadri DID (e.g., did:sahyadri:csm1...). The DID_STARK document—authorized by a Plonky3 STARK proof over sk with zero public keys—is anchored in the Sahyadri Crest. This allows passwordless authentication and true self-sovereign ownership of digital identity.

11.2 Decentralized Web Nodes (DWNs) for State Efficiency

To maintain high throughput and prevent state bloat, heavy identity metadata (such as profile information, KYC documents, or encrypted messages) is never stored on the Sahyadri blockchain. Instead, the network utilizes Decentralized Web Nodes (DWNs). The on-chain DID simply points to the user's off-chain DWN, ensuring the Ashwa Consensus node remains ultra-lightweight (5-10 GB) while users retain absolute, censorship-resistant control over their personal data.

11.3 Verifiable Credentials (VCs) and Compliance

Sahyadri's native DID support enables seamless integration with institutional platforms, payment gateways, and Centralized Exchanges (CEXs) through Verifiable Credentials (VCs). Users can cryptographically prove real-world attributes (e.g., KYC clearance or jurisdiction) to an exchange without exposing their underlying sensitive data. This provides a compliant, privacy-preserving bridge between sovereign digital money and regulatory frameworks, solving the compliance trilemma natively.

11.4 Decentralized Web Nodes (DWN) and Encrypted Data Vaults

To complement the sovereign identity layer, Sahyadri implements a Local-First Data Architecture utilizing Decentralized Web Nodes (DWNs). This ensures that while the blockchain handles financial finality, the user's personal data remains under their absolute cryptographic control.

12. Privacy

Privacy in Sahyadri is achieved by separating value transfer from identity. All transactions are publicly verifiable on the explorer, but the protocol does not associate transfers with real-world identities. Account control is defined by knowledge of a 64-byte secret key sk proven in a Plonky3 STARK over Poseidon2 and Goldilocks, with zero public keys or asymmetric signatures.

Each user derives a 32-byte Poseidon2 address (Bech32m version 130, csm1s... / csmtest1s...) from a 64-byte secret key sk in Goldilocks F_p, with zero public keys. The Account model provides less transaction graph ambiguity than UTXO systems, but the protocol does not require identity disclosure. Sahyadri does not include built-in mixing or confidential transactions at the base layer — privacy emerges from standard cryptographic primitives and normal transaction behavior.

However, through the Web5 identity layer, users have the power of 'Opt-in Identity.' They can choose to selectively disclose verified attributes via Verifiable Credentials (VCs) when interacting with compliant entities or exchanges, maintaining a perfect balance between base-layer pseudonymity and institutional composability.

Each signatureless address (csm1s... / csmtest1s..., Bech32m version 130) encodes a 32-byte Poseidon2 digest derived from the 64-byte secret key sk in Goldilocks field F_p. The mapping from address to real-world identity is never stored on-chain. Users are advised to generate a new address for each transaction to minimize transaction graph analysis.

Sahyadri natively integrates Plonky3 recursive STARK aggregation for post-quantum signature compression. Client Plonky3 STARK authorizations and block attestations are recursively aggregated into a single root proof π_n per block: |π_n| = O(log N) in the batch size N and independent of chain length, T_verify(π_n) = O(1). Measured on commodity hardware (Core Ultra 5, 18 threads): N = 8 proofs compress to a 735 KB root proof in ~31 s with ~35 ms verification time. Proof size asymptotes rather than grows linearly. Combined with the ~200 KB chain-state proof, a light client verifying an entire block downloads approximately 935 KB — still smaller than a single HD photo.

13. Calculations and Economic Model

13.1 Emission Formulas

s_k = s_0 × 2^(-k) (block reward at epoch k)
I_k = H × s_k (total emission in epoch k)
S(n) = 2 × H × s_0 × (1 - 2^(-n)) (cumulative after n epochs)
S(∞) = 2 × H × s_0 = 21,000,000 CSM (hard cap)

Where s_0 = 0.08318123 CSM, H = 126,230,400 blocks (4 years at 1 BPS), k = halving epoch number.

13.2 Revenue and Fee Formulas

R_k = s_k + f_avg (total per-block miner revenue)
φ_k = f_avg / (s_k + f_avg) (fee fraction of revenue)
AnnualRevenue_k = r_yr × (s_k + f_avg) (r_yr = 31,536,000 blocks/yr)

13.3 Fee Revenue at Scale

Daily TX VolumeDaily Fee RevenueMiner (90%)Sahyadri Treasury (10%)
10,000 TX/day0.1 CSM0.09 CSM0.01 CSM
1,000,000 TX/day10 CSM9 CSM1 CSM
100M TX/day1,000 CSM900 CSM100 CSM
864M TX/day (design-target capacity)8,640 CSM7,776 CSM864 CSM

14. Security Model

Double-spend resistance at four layers: mempool, confirmation, flash-id replay, and consensus. Signatureless Plonky3 STARK security over Goldilocks and Poseidon2 with FRI commitments. The protocol's security rests on three independent mathematical bounds, each of which would have to fail for the network to be compromised:

Signature security:
  ∀A : Pr[A forges π_STARK] ≤ Adv_Poseidon2(λ) + ε_STARK(λ) + negl(λ)

Consensus security:
  Pr[reorg(k)] ≤ (α/β)^k,  α < β

State integrity:
  Verify(path, leaf, root) → {⊤, ⊥}

None of these bounds depends on trusting any party. Each is a mathematical consequence of the design. An adversary would need to break all three simultaneously to compromise the network — and each one is itself at the edge of known cryptographic hardness.

14.1 Formal Conditions

FLASH_STARK transactions and DID_STARK operations are validated via Plonky3 STARK preimage proofs over sk and the domain-separated challenge digest. The security of account ownership relies on post-quantum cryptographic assumptions rather than elliptic-curve discrete logarithms.

Verify(tx) = TRUE  iff
  stark_valid(tx.auth_proof, sender_addr_32, tx_hash_32)  AND
  accounts[sender].balance >= (amount + fee)  AND
  current_daa_score <= tx.expiry_daa_score  AND
  tx.flash_id NOT IN accounts[sender].recent_flashes
Accept(B) = TRUE  iff
  VerifySahyadriX(B.header)  AND
  For all tx in B: Verify(tx) = TRUE  AND
  ConsensusFinalized(B) = TRUE
P_attack = a  (attacker hash fraction)
For a < 0.5: attack is economically irrational
After finalization: probability of successful
reorganization approaches zero

14.2 Double-Spend Resistance

Double-spend attacks are prevented at four independent layers:

14.3 Network Layer Protection

The P2P layer (port 26111) includes in-built IP banning for transaction flooding, protecting nodes from DDoS attacks at the network edge.

14.4 Post-Quantum Security

Sahyadri uses signatureless Plonky3 STARK proofs over Goldilocks and Poseidon2 instead of asymmetric signatures. The protocol therefore provides resistance against attacks enabled by large-scale fault-tolerant quantum computers that could compromise traditional elliptic-curve signature systems.

14.5 Post-Quantum STARK Attestation Compression

To preserve post-quantum security while maintaining high throughput, Sahyadri integrates Plonky3 recursive STARK aggregation. Once covered by block recursive STARK aggregation, client STARK proofs can even be stripped to 0 stored bytes on-chain while preserving full cryptographic verifiability.

Measured benchmarks (live implementation):

Batch SizeRoot Proof SizeAggregation TimeVerify Time
N = 2626 KB8.4 s35 ms
N = 4710 KB44.6 s35 ms
N = 8735 KB31.0 s (parallel)35 ms

Verification time is constant regardless of N. Proof size grows sub-linearly and asymptotes near ~750 KB as N increases. The STARK system relies on Plonky3, Goldilocks field arithmetic (2⁶⁴ − 2³² + 1), Poseidon2 W8 hashing, FRI commitments with 100 queries, and Poseidon2-based Fiat-Shamir transcript generation. Mining hashrate is preserved at 89–99% during aggregation.

15. Governance

Minimal governance — all core monetary parameters are permanently fixed at genesis. Changing them requires a hard fork.

Sahyadri adopts a minimal governance model. All core monetary parameters are permanently fixed at genesis and not subject to modification through proposals or voting. The following are immutable at the protocol level:

Changing any monetary parameter requires a consensus-breaking hard fork, effectively creating a new chain. No central governance body, no token-weighted voting, and no on-chain governance process exists. The protocol evolves through rough consensus and running code.

15.1 Treasury Transparency

Treasury funds originate exclusively from protocol-defined allocations: 5% of block rewards and 10% of transaction fees. Treasury addresses are publicly visible on-chain and auditable through the Sahyadri Explorer. Treasury expenditures, development grants, infrastructure funding, audits, and ecosystem support initiatives are expected to be publicly disclosed to maintain transparency and community trust.

16. Threat Model

16.1 Hashpower Attacks

An adversary controlling a majority of network hashpower may attempt transaction censorship, delayed confirmations, or chain manipulation. Ashwa Consensus increases attack cost by requiring dominance across both Proof-of-Work production and deterministic DAG ordering.

16.2 Spam Attacks

Spam attacks are mitigated through fixed transaction fees, mempool limits, per-account rate controls, and emergency admission rules.

16.3 Eclipse Attacks

Nodes maintain multiple peer connections and independently validate all received consensus data. Future releases may introduce additional peer diversity protections.

16.4 Long-Range Attacks

Deterministically finalized blocks are treated as immutable. Historical rewrites become computationally impractical under honest-majority assumptions.

17. References

[1] Nakamoto, S. (2008). Bitcoin: A Peer-to-Peer Electronic Cash System.

[2] Sompolinsky, Y., Zohar, A. (2015). Secure High-Rate Transaction Processing in Bitcoin (GHOST Protocol).

[3] Sompolinsky, Y. et al. (2020). PHANTOM and GHOSTDAG Protocols.

[4] O'Connor, J., Aumasson, J.-P., Neves, S., Wilcox-O'Hearn, Z. (2020). BLAKE3: one function, fast everywhere.
[4a] Goldilocks Prime Field (p = 2^64 - 2^32 + 1) & Poseidon2 Algebraic Hash / Plonky3 FRI STARK Specification.

[5] W3C. (2022). Decentralized Identifiers (DIDs) v1.0.

[6] Aumasson, J. et al. RandomX Proof-of-Work Algorithm.

[7] TBD / Block Inc. Web5 Initiative — Decentralized Identity and Personal Data Sovereignty Architecture (2022).

[8] TBD (Jack Dorsey). Web5 — A Decentralized Web Platform. Public announcement, 2022.

[9] Plonky3 Project – High Performance STARK Proving System.

[10] Poseidon2 Permutation over Goldilocks F_p — Signatureless Address & STARK Constraint Design.

[11] Plonky3 STARK Prover/Verifier & FRI Polynomial Commitment Architecture.

  • Appendix A — Mathematical Foundations
  • [12] Grassi, L., Khovratovich, D., Schofnegger, M. (2023). Poseidon2: A Faster Version of the Poseidon Hash Function. AFRICACRYPT.

    [13] Ben-Sasson, E., Bentov, I., Horesh, Y., Riabzev, M. (2018). Fast Reed-Solomon Interactive Oracle Proofs of Proximity (FRI). ICALP.

    [14] Ben-Sasson, E., Bentov, I., Horesh, Y., Riabzev, M. (2018). Scalable, transparent, and post-quantum secure computational integrity. IACR ePrint 2018/046.

    [15] Ben-Sasson, E., Carmon, D., Ishai, Y., Kopparty, S., Saraf, S. (2020). Proximity Gaps for Reed-Solomon Codes. FOCS.

    [16] Valiant, P. (2008). Incrementally Verifiable Computation or Proofs of Knowledge Imply Time/Space Efficiency. TCC.

    [17] Bitansky, N., Canetti, R., Chiesa, A., Tromer, E. (2013). Recursive Composition and Bootstrapping for SNARKs and Proof-Carrying Data. STOC.

    18. Conclusion

    Sahyadri presents a comprehensive design for a sovereign peer-to-peer digital money system with deterministic finality, high throughput, and a strictly capped supply. The protocol combines a directed acyclic graph structure for parallel block production, a memory-hard Proof-of-Work architecture designed to preserve long-term mining accessibility, an Account + Crest state model for simplified value transfer, and a fixed flat fee structure for predictable costs.

    Sahyadri is proof-native: each block with transactions is attested by two proof layers, generated asynchronously after block acceptance. (1) A chain-state proof of ~200 KB serialized (grows sublinearly with tree depth, O(log N), bounded at ~430 KB for 65,536-leaf trees), verifiable in 1.5 ms, attesting to state transitions across blocks. (2) A signature-attestation proof of 735 KB (N=8; sublinear in N, asymptoting near 750 KB), verifiable in 35 ms, aggregating N=8 signatureless STARK proofs. A light client verifying an entire block downloads approximately 935 KB and verifies in approximately 37 ms; both costs are constant in chain length and batch size respectively. This is achieved through Plonky3 recursive STARK aggregation with a mining-aware thread pool that preserves 89–99% of Proof-of-Work hashrate during aggregation. To our knowledge, no other Proof-of-Work chain combines deterministic DAG finality, 100% signatureless Plonky3 STARK authorization, Poseidon2 over Goldilocks, and recursive STARK aggregation into a single coherent design.

    The strictly capped monetary supply, transparent halving schedule, and protocol-enforced immutable parameters provide a stable, auditable, and predictable foundation for global value transfer — digital money that works reliably, fairly, and forever.

    Appendix A. Mathematical Foundations

    This appendix states the quantitative models behind the protocol's claims: emission, proof-of-work, reversal probability, proof-system soundness, state commitments, signature bandwidth and the proving pipeline. Bounds that are conjectural or conditional are marked as such.

    A.1 Monetary Supply

    Epoch reward:   s_k = ⌊ s_0 / 2^k ⌋ ,  s_0 = 8,318,123 kana ,  k = ⌊ score / H ⌋ ,  H = 126,230,400
    
    Total supply:   S = H · Σ_{k=0}^{63} s_k  <  H · s_0 · Σ_{k≥0} 2^{-k}  =  2 H s_0  ≈ 2.1000 × 10^15 kana
    
    Exact sum (with integer flooring):  S ≈ 20,999,979.67 CSM  <  21,000,000 CSM
    
    Cumulative emission after n epochs:  Σ_{k<n} s_k / S ≈ 1 − 2^{-n}
       n = 1 (4 y): 50%    n = 2 (8 y): 75%    n = 7 (28 y): 99.2%

    A.2 Proof-of-Work and DAG Width

    Per-attempt success:   p = target / 2^256 ,   E[attempts] = 1/p
    Block discovery:       Poisson process, rate λ = h · p   (h = network hashrate, attempts/s)
    Propagation delay D:   blocks mined within D ~ Poisson(λD)  ⇒  mean concurrent width  w̄ ≈ λD
    
    Single-chain wasted work:  1 − e^{−λD}     (parallel blocks that would be orphaned)
    SahyadriDAG:               these blocks are merged into the ordering instead
    
    Cost per attempt:   C = F · c_B3 + R · t_mem
       F = 524,288 chained BLAKE3 compressions,  R = 1,024 data-dependent reads of W = 32 B,
       working set M = 16 MiB.
       Design goal: C is dominated by t_mem, which narrows the ASIC advantage.
       (No formal time-memory tradeoff lower bound is claimed.)

    A.3 Reversal Probability and Confirmation Depth

    Let the honest fraction of hashpower be β = 1 − α with α < β. The attacker's lag behind the honest chain is a random walk with steps +1 (probability β) and −1 (probability α). By gambler's ruin, the probability that the attacker ever catches up from a deficit of k blocks is:

    P(catch-up | deficit k) = (α/β)^k
    
    Required depth for target ε:   k(ε) = ⌈ ln ε / ln(α/β) ⌉
    Attacker αα/βk for ε = 10⁻⁶
    10%0.1117
    25%0.33313
    30%0.42917
    40%0.66735

    This is the catch-up bound. The full double-spend probability also includes the attacker's head start (Poisson-distributed), and in a DAG it depends on propagation delay and parallel width; both raise the required depth modestly. Confirmation time is k times the interval between DAG layers.

    A.4 Recursive Proof Composition

    Chain accumulator:   C_n = H(C_{n−1} ‖ B_n)
    
    Step relation  R_step( x = (C_{n−1}, C_n, B_n) ;  w = π_{n−1} ):
         Verify(vk, C_{n−1}, π_{n−1}) = 1
       ∧ C_n = H(C_{n−1} ‖ B_n)
       ∧ Valid(B_n)                       (header rules, PoW, attested signatures)
    
    Proof:           π_n = Prove( R_step ; x, w )
    Verifier cost:   T_verify(π_n) = O(|V|) = O(1) in n,   because the in-circuit verifier V has fixed size
    
    Aggregation of N attestations (binary tree):   depth ⌈log2 N⌉ ,  |π| = O(log N) ,  T_verify = O(1) in N

    Soundness status. Knowledge-extraction through recursion depth n compounds the extractor's cost; standard analyses give guarantees for bounded depth or in idealised models [16][17]. Sahyadri's current composition (Path B) assumes an honest prover and does not claim adversarial soundness; a fully sound single-root recursion (Path A) is the open milestone.

    A.5 FRI Soundness Accounting

    With rate ρ = 2−r (r = log_blowup), q queries and w grinding bits, the query-phase security is approximately q · b + w bits, where b depends on the proximity regime:

    Unique decoding:        b = log2( 2 / (1 + ρ) )      (proven)
    Johnson bound:          b = −log2( √ρ ) = r / 2      (proven, up to the Johnson radius)
    Capacity (conjectured): b = log2( 1 / ρ ) = r        (proximity-gaps conjecture [15])
    Regime (ρ = 1/4, q = 100, w = 16)bits / queryQuery-phase bits
    Unique decoding0.678≈ 84
    Johnson1.000≈ 116
    Capacity (conjectured)2.000≈ 216

    These figures cover the query phase only; commit-phase, out-of-domain and batching terms and the extension-field size add further terms, and a production deployment should publish a full soundness certificate. SMT and transcript hashing use Poseidon2 (W8: rate 4, capacity 4 elements over Goldilocks), whose generic collision resistance is ≈ 2c/2 = 2128 for capacity c = 256 bits.

    A.6 State Commitment and Proof Size

    SMT proof size:      |proof| = 32 · d  bytes ,   E[d] ≈ log2 n + O(1)
        n = 10^6 accounts:  ≈ 0.7 KB        n = 10^9:  ≈ 1.0 KB        worst case d = 256:  8,192 B
    
    Binding:  an accepting proof for a wrong value yields a Poseidon2 collision,
              so  Adv_forge ≤ Adv_coll(Poseidon2)

    A.7 Signature Bandwidth and Aggregation Break-Even

    Signatureless STARK proof: client proof π_auth over sk; stripped to 0 B once folded in block root π_n
    Block recursive batch:   |π_n| = O(log N) across N proofs,  T_verify(π_n) = O(1)
        Measured recursion:    N = 8 → 735 KB root proof (~31 s parallel, ~35 ms verify)
    
    Aggregated attestation proof:  |π| ≈ 750 KB (asymptote),  T_verify(π) = 35 ms
    Size scaling:        Sublinear growth asymptoting near ~750 KB; 0 B after strip
    Time break-even:   N*_time = T_verify(π) / t_stark      (t_stark = single STARK verification time)
    
    At N = 8:  735 KB recursive root proof + ~200 KB chain-state proof ≈ 935 KB total light-client proof.

    Aggregation therefore reduces bandwidth only for batches larger than roughly 230 signatures. At small N its value is constant-time verification and the recursive link to the chain proof, not size.

    A.8 Asynchronous Proving Pipeline

    λ_p = rate of blocks needing a proof,  S = proving time per block,  m = prover workers
    
    Stability:   ρ = λ_p · E[S] / m  <  1       (otherwise the proof backlog grows without bound)
    Latency:     L = S + W_queue
    
    Batching B blocks per proof, with sublinear cost S(B):   ρ_B = λ_p · S(B) / (B · m)
    
    Example:  S = 15 s
       λ_p = 0.1 /s :  ρ = 1.5 / m   ⇒  m ≥ 2 workers
       λ_p = 1 /s   :  ρ = 15 / m    ⇒  m ≥ 16 workers  (batching is required)

    Proofs are asynchronous so that block production is never gated by S. The same condition shows why batched, sublinear aggregation is needed before proofs can become consensus-binding at high block rates.

    A.9 Light-Client Cost

    T_LC = T_chain + T_att + T_SMT ≈ 1.5 ms + 35 ms + <1 ms ≈ 37.5 ms
    Data = 200 KB (chain-state proof) + 735 KB (attestation proof, N = 8) + <2 KB (state proof) ≈ 937 KB

    Read Full Whitepaper

    Sahyadri Whitepaper