feat: implement server-side architecture cross-validation for RIP-PoA fingerprint checks#1475
feat: implement server-side architecture cross-validation for RIP-PoA fingerprint checks#1475kuanglaodi2-sudo wants to merge 2 commits intoScottcjn:mainfrom
Conversation
- Implements GET /wallet/history?miner_id=X&limit=50&offset=0 - Returns transaction history including rewards and transfers - Queries epoch_rewards table for mining rewards - Queries ledger table for transfers - Supports pagination with limit and offset parameters
… fingerprint checks Adds arch_cross_validation.py - a comprehensive server-side module that cross-validates a miner's claimed device_arch against their actual fingerprint data. Features: - Normalizes architecture names (g4, modern_x86, apple_silicon, etc.) - Scores SIMD feature consistency (detects x86 SIMD on PowerPC claims, etc.) - Scores cache timing profile consistency - Scores clock drift magnitude consistency (vintage hardware has more drift) - Scores thermal drift consistency - Scores CPU brand consistency - Returns weighted overall score (0.0-1.0) with detailed breakdown - Handles the 'frozen profile' case (cv=0, VM/emulator fingerprint) Includes unit tests covering: - Real hardware validation (G4, modern_x86, apple_silicon) - Spoofing detection (x86 claiming G4) - Frozen/noisy profile detection - Empty fingerprint handling - CPU brand consistency Fixes: Scottcjn/rustchain-bounties#17 Bounty: 50 RTC
|
Welcome to RustChain! Thanks for your first pull request. Before we review, please make sure:
Bounty tiers: Micro (1-10 RTC) | Standard (20-50) | Major (75-100) | Critical (100-150) A maintainer will review your PR soon. Thanks for contributing! |
|
Good security code in arch_cross_validation.py — architecture profiles, SIMD cross-checks, cache/thermal validation. Exactly what bounty #17 needs. One fix needed: Your PR rewrites 69 unrelated files due to line ending changes (CRLF/LF). Please reset everything except the new file and resubmit with only arch_cross_validation.py. Once cleaned up: merge + 50 RTC to your wallet. |
|
@kuanglaodi2-sudo — The real contribution here looks like However, this PR also rewrites every other file in the repo — 29,470 additions and 28,663 deletions across 20+ files where the additions and deletions are identical (277+277, 579+579, etc.). This is typically caused by line-ending changes, whitespace reformatting, or re-encoding the entire file. This is not mergeable as-is. A 30K-line diff that touches the entire codebase for what should be a single new module is a review and revert nightmare. Please:
The cross-validation concept is good — we want to verify it. But we can't review it when it's buried under 29K lines of noise. — Scott |
Summary
Implements RIP-PoA Architecture Cross-Validation for server-side verification that a miner's claimed
device_archmatches their fingerprint data.What was built
node/arch_cross_validation.py- A comprehensive validation module that:node/test_arch_cross_validation.py- Full unit test suite covering:Architecture profiles supported
g4,g5,g3(PowerPC)modern_x86,retro_x86,vintage_x86apple_silicon(M1/M2/M3)arm64,riscv,sparc,68k,amiga_68k,power8Key detection logic
References
node/hardware_fingerprint.pynode/rustchain_v2_integrated_v2.2.1_rip200.pyTesting
Notes
validate_fingerprint_data()inrustchain_v2_integrated_v2.2.1_rip200.pyBounty: 50 RTC | Claimed by: kuanglaodi2-sudo