Repository navigation
feat: RustChain Java SDK + CLI Miner — Bounty #675 - #1982
Merged
Merged
Conversation
- tools/java/rustchain-sdk/pom.xml Maven build, Java 11+, zero external runtime deps (java.net.http only), JUnit 5 for tests, shade plugin for executable fat JAR. - RustChainClient.java (~210 lines) HTTP client wrapping /health, /epoch, /api/miners, /api/stats, /attest/submit. Configurable base URL, timeout, retries with exponential back-off. Built-in minimal JSON serialiser; no external libs. - Fingerprint.java (~190 lines) Hardware fingerprint collector: CPU arch, logical cores, JVM heap, OS name/version, JVM version, clock-drift measurement via nanoTime loops, SHA-256 identity hash. Produces toDeviceMap() and toFingerprintMap() ready for attestation payloads. - Miner.java (~200 lines) CLI mining loop: fingerprint → submitAttestation → sleep. Args: --node-url, --miner-id, --interval. ANSI-coloured console output; graceful SIGINT shutdown hook; per-session cycle/success/failure summary. - RustChainClientTest.java (~100 lines) Offline unit tests: constructor config, URL normalisation, JSON serialisation (null/bool/int/string/map/list/escaping), ApiResponse.isSuccess(), extractField(). - tools/java/README.md Build instructions, CLI usage, full API reference with code examples.
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
|
Payment confirmed — LaphoqueRC was paid via on-chain RTC transfer as part of a batch settlement. Total paid to date: 2,155 RTC across all contributions. Thank you for the work. |
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.
Java Tools & Features — Bounty #675 (100 RTC)
Deliverables
RustChainClient.java(~210 lines) — HTTP client with retries, exponential backoffFingerprint.java(~190 lines) — Hardware fingerprinting in JavaMiner.java(~200 lines) — CLI mining loop with ANSI outputRustChainClientTest.java(~100 lines) — JUnit 5 offline testspom.xml— Maven build, Java 11+, zero external runtime depsREADME.md— Build, run, API referenceFeatures
Closes #675
RTC Wallet:
RTC2fe3c33c77666ff76a1cd0999fd4466ee81250ff