/ project / architecture / functional-v3.cspec
functional-v3.cspec
  1  # Functional Architecture Reference v3.0
  2  # Source: AD_Functional_Architecture_v3.md (2026-01-18)
  3  # Purpose: Machine-readable summary of network topology and economics
  4  
  5  metadata:
  6    version: 3.0
  7    source: AD_Functional_Architecture_v3.md
  8    date: 2026-01-19
  9    status: reference
 10  
 11  # === NETWORK TOPOLOGY ===
 12  network:
 13    validators:
 14      active:
 15        count: 60
 16        dx_stake: 10000
 17        ax_bond: 100000
 18        compensation: infrastructure_share_23_percent_divided
 19        duties: [consensus, mempool_acceptance]
 20      standby:
 21        count: 340
 22        dx_stake: 10000
 23        ax_bond: 100000
 24        compensation: infrastructure_share_23_percent_divided
 25        duties: [mempool_acceptance, api_hosting]
 26      shadow:
 27        count: unlimited
 28        dx_stake: 10000
 29        ax_bond: none
 30        compensation: dx_multiplier_1.5x_only
 31        duties: [api_hosting, shadow_mirror_audit_5_percent]
 32  
 33    provers:
 34      active:
 35        count: 2000
 36        compensation: infrastructure_share_77_percent_by_power_rating
 37        duties: [transaction_proofs, block_proofs]
 38      shadow:
 39        count: unlimited
 40        compensation: dx_multiplier_2.0x_plus_surge_overflow
 41        duties: [shadow_mirror_audit_5_percent, surge_overflow]
 42  
 43    tier_hardware:
 44      tier_1: H100_80GB
 45      tier_2: A100_80GB
 46      tier_3: RTX_4090
 47      tier_4: RTX_4070_Ti
 48      tier_5: CPU
 49  
 50  # === TIMING PARAMETERS ===
 51  timing:
 52    epoch_duration: 1_day
 53    validator_rotation: 7_epochs
 54    qualification_period: 7_epochs
 55    uptime_requirement: 99.9_percent
 56    block_time: 10_seconds
 57    finality: 30_seconds
 58    transaction_freshness: 3_blocks
 59  
 60  # === THREE-TOKEN MODEL ===
 61  tokens:
 62    ax:
 63      chain: ALPHA
 64      purpose: native_currency
 65      use_cases: [infrastructure_rewards, validator_bonds, fees]
 66  
 67    sax:
 68      chain: DELTA
 69      purpose: synthetic_ax
 70      backing: 1:1_locked_ax_on_alpha
 71      lifetime: ephemeral
 72      use_cases: [exchange, settlement]
 73  
 74    dx:
 75      chain: DELTA
 76      purpose: equity_token
 77      total_supply: 1B_fixed
 78      decimals: 0
 79      use_cases: [staking, dividends, governance]
 80      genesis_allocation:
 81        founders: 300M_30_percent_4yr_vest
 82        investors: 100M_10_percent_2yr_vest
 83        network: 250M_25_percent_grants
 84        reward: 350M_35_percent_incentives
 85  
 86  # === ECONOMICS ===
 87  economics:
 88    infrastructure_pool:
 89      provers: 77_percent
 90      validators: 23_percent
 91      shadow: 0_percent
 92  
 93    dx_multipliers:
 94      shadow_prover: 2.0x
 95      shadow_validator: 1.5x
 96      active_prover: 1.0x
 97      active_validator: 1.0x
 98      standby_validator: 1.0x
 99      pure_staker: 1.0x
100  
101    dx_epoch_distribution:
102      pool_allocation: 1_bip_per_day  # 0.01% of Reward Pool
103      eligibility: [validators, provers, top_50_percent_traders]
104      governor_exclusion: true
105  
106    wallet_cap:
107      dx_maximum: 25000
108      overflow_action: automatic_sell_to_treasury
109      payment_currency: sax
110      price_formula: 30d_twap_x_365_x_5
111  
112  # === POWER RATING SYSTEM ===
113  power_rating:
114    circuit_weights:
115      alpha_privacy_proof: 8.0
116      delta_defi_swap: 4.5
117      standard_transfer: 1.0
118  
119    calculation:
120      on_proof_verified: prover.weighted_total += circuit_weight
121      at_settlement: prover_share = (weighted_total / network_total) × 77%
122  
123    shadow_scoring:
124      faster_than_mainnet: circuit_weight_x_1.2
125      equal_to_mainnet: circuit_weight_x_1.0
126      slower_than_mainnet: circuit_weight_x_0.8
127      failed_timeout: 0
128  
129  # === GOVERNANCE ===
130  governance:
131    alpha:
132      scope: alpha_chain_only
133      voters: governors_in_gid
134      voting_power: 1_governor_equals_1_vote
135      quorum: 100_percent
136      non_participation: auto_cast_against
137      thresholds:
138        config_changes: 67_percent
139        software_updates: 90_percent
140        contract_deployment: 90_percent
141        joint_approval: 67_percent
142  
143    delta:
144      scope: delta_chain_only
145      voters: dx_stakers
146      min_stake_to_vote: 10k_DX
147      min_stake_to_propose: 1M_DX
148      voting_power: 1_staked_wallet_equals_1_vote  # NOT token-weighted
149      quorum: 100_percent
150      non_participation: slashed
151      thresholds:
152        config_changes: 67_percent
153        software_updates: 67_percent
154        slashing_rate_change: 90_percent
155        joint_approval: 51_percent
156  
157    joint:
158      scope: platform_wide_software_changes
159      requirement: both_chains_must_approve
160      alpha_threshold: 67_percent
161      delta_threshold: 51_percent
162  
163    proposal:
164      concurrent_max: 20
165      per_identity_limit: 1_per_month
166      signers_required: 5
167      stake_per_signer: 20000_DX
168      voting_period: 7_days_minimum
169  
170    emphatic_voting:
171      slots_per_side: 50
172      stake_required: 100_DX
173      winner_bonus: 10_percent_from_reward_pool
174      loser_penalty: stake_lost_to_reward_pool
175  
176  # === SLASHING ===
177  slashing:
178    alpha_ax_bond:
179      erroneous_messaging: 5_percent_to_validator_pool
180      bad_transaction: 5_percent_to_validator_pool
181      bad_block: 10_percent_to_validator_pool
182      downtime_governor: 2_percent_to_validator_pool
183      downtime_non_governor: immediate_slot_loss
184  
185    delta_dx_stake:
186      non_voting: governance_adjustable_to_reward_pool
187  
188  # === CROSS-CHAIN ===
189  cross_chain:
190    hard_dependency: delta_requires_alpha_attestation
191    attestation_latency: 15_seconds_typical
192    delay_behavior:
193      0_30_sec: normal_operations
194      30_sec_5_min: degraded_closes_only
195      5_min_plus: paused_closes_only
196  
197  # === MEMPOOL ARCHITECTURE ===
198  mempool:
199    unverified:
200      contents: raw_proven_txs
201      writers: users_and_transaction_provers
202      readers: all_400_validators
203  
204    verified:
205      contents: accepted_txs_with_receipt
206      writers: any_validator_after_verification
207      readers: active_60_for_block_building
208  
209    ordering:
210      normal: pure_fcfs
211      congested: high_fee_first_then_fcfs
212  
213  # === SHADOWNET ===
214  shadownet:
215    purpose: [performance_testing, upgrade_staging, promotion_queue]
216    mirror_slice: 5_percent  # hash(tx_id) mod 20 == 0
217    promotion_tie_breaker: [power_rating, dx_stake, uptime_history]
218  
219    upgrade_staging:
220      phase_1: dev_release_to_shadownet
221      phase_2: shadow_validation_5_percent_mirror
222      phase_3: certification_7_epochs_stable
223      phase_4: mainnet_rollout_with_rollback
224  
225    certification_thresholds:
226      uptime: 99.9_percent_7_epochs
227      performance: 95_percent_of_current_speed
228      consensus_failures: zero
229      challenge_success: 99_percent
230      critical_bugs: zero_unresolved
231  
232  # === COMPONENT LINKS ===
233  implements:
234    - A003-circuits.component.cspec: alpha_proof_generation
235    - A004-gid_system.component.cspec: governor_registry
236    - A007-governance.component.cspec: alpha_governance
237    - D003-hybrid_privacy.component.cspec: delta_privacy_model
238    - D008-governance.component.cspec: delta_governance
239    - F010-contracts.component.cspec: staking_contracts
240    - T002-dx_token.component.cspec: dx_tokenomics