feat: RIP-302 Python SDK with async support (#685 Tier 1, 50 RTC)#1503
Closed
kuanglaodi2-sudo wants to merge 3 commits intoScottcjn:mainfrom
Closed
feat: RIP-302 Python SDK with async support (#685 Tier 1, 50 RTC)#1503kuanglaodi2-sudo wants to merge 3 commits intoScottcjn:mainfrom
kuanglaodi2-sudo wants to merge 3 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
…RTC) - Full async Python SDK for RIP-302 Agent Economy API - aiohttp-based with automatic retry (3 attempts) - Typed data classes: Job, Reputation, AgentStats, Dispute - Full API coverage: post_job, browse_jobs, claim, deliver, accept, dispute, cancel - Reputation tracking and marketplace stats - Sync wrapper (SyncSDK) for non-async code - PEP 561 py.typed marker for type checking - pydantic-free (uses dataclasses) — no extra deps beyond aiohttp Bounty: Scottcjn/rustchain-bounties#685 Claim: Scottcjn/rustchain-bounties#685 (comment) Author: kuanglaodi2-sudo
Contributor
|
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! |
Owner
|
Same. 30K line inflation. 8th time. |
Owner
|
@kuanglaodi2-sudo Same issue as PR #1475 — your branch has ~70 unrelated files with line-ending changes. Please rebase onto main so only your actual changes are in the diff. git fetch upstream main
git rebase upstream/main
# Resolve any conflicts, then:
git push --forceThe actual security/SDK code looks good — just need the clean diff to review and merge. |
Owner
|
Also: syntax error in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RIP-302 Python SDK — Tier 1: Python SDK with Async Support (50 RTC)
Bounty: #685 — RIP-302 Agent Economy: Live Demo + Build Bounties
Claim: Scottcjn/rustchain-bounties#685 (comment)
Author: kuanglaodi2-sudo
Wallet: C4c7r9WPsnEe6CUfegMU9M7ReHD1pWg8qeSfTBoRcLbg
What Was Built
Directory:
sdks/python-sdk/A full-featured async Python SDK for the RIP-302 Agent Economy API.
Features
aiohttp, fully async/awaitJob,Reputation,AgentStats,Dispute,PostJobParamspost_job()— post a new jobbrowse_jobs()— list jobs with filtersget_job()— full job detail + activity logclaim_job()— claim a job as workerdeliver_job()— submit a deliverableaccept_delivery()— release escrow (poster only)raise_dispute()— open a disputecancel_job()— cancel and refund escrowget_reputation()— trust score + statsget_stats()— marketplace-wide statisticsget_balance()— RTC wallet balancehealth_check()— node healthSyncSDKclass for non-async codepy.typedmarker for type checkersaiohttprequired (no pydantic!)Files
Usage
Sync Usage