clawrtc 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build-windows.yml +40 -0
- package/LICENSE +21 -0
- package/README.md +75 -0
- package/SKILL.md +102 -0
- package/clawrtc/__init__.py +3 -0
- package/clawrtc/__pycache__/__init__.cpython-313.pyc +0 -0
- package/clawrtc/__pycache__/cli.cpython-313.pyc +0 -0
- package/clawrtc/__pycache__/coinbase_wallet.cpython-313.pyc +0 -0
- package/clawrtc/cli.py +851 -0
- package/clawrtc/coinbase_wallet.py +234 -0
- package/clawrtc/data/__init__.py +0 -0
- package/{data → clawrtc/data}/fingerprint_checks.py +557 -450
- package/{data → clawrtc/data}/miner.py +73 -12
- package/clawrtc.egg-info/PKG-INFO +102 -0
- package/clawrtc.egg-info/SOURCES.txt +15 -0
- package/clawrtc.egg-info/dependency_links.txt +1 -0
- package/clawrtc.egg-info/entry_points.txt +2 -0
- package/clawrtc.egg-info/requires.txt +5 -0
- package/clawrtc.egg-info/top_level.txt +1 -0
- package/dist/clawrtc-1.6.0-py3-none-any.whl +0 -0
- package/dist/clawrtc-1.6.0.tar.gz +0 -0
- package/package.json +28 -12
- package/pyproject.toml +42 -0
- package/bin/clawrtc.js +0 -682
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
name: Build Windows Installer
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags: ['clawrtc-v*']
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build-windows:
|
|
10
|
+
runs-on: windows-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
|
|
14
|
+
- name: Set up Python
|
|
15
|
+
uses: actions/setup-python@v5
|
|
16
|
+
with:
|
|
17
|
+
python-version: '3.11'
|
|
18
|
+
|
|
19
|
+
- name: Install dependencies
|
|
20
|
+
run: |
|
|
21
|
+
pip install pyinstaller requests
|
|
22
|
+
pip install -e .
|
|
23
|
+
|
|
24
|
+
- name: Build Windows exe
|
|
25
|
+
run: |
|
|
26
|
+
pyinstaller --onefile --name clawrtc --console clawrtc/cli.py
|
|
27
|
+
|
|
28
|
+
- name: Upload artifact
|
|
29
|
+
uses: actions/upload-artifact@v4
|
|
30
|
+
with:
|
|
31
|
+
name: clawrtc-windows
|
|
32
|
+
path: dist/clawrtc.exe
|
|
33
|
+
|
|
34
|
+
- name: Upload to release
|
|
35
|
+
if: startsWith(github.ref, 'refs/tags/')
|
|
36
|
+
uses: softprops/action-gh-release@v1
|
|
37
|
+
with:
|
|
38
|
+
files: dist/clawrtc.exe
|
|
39
|
+
env:
|
|
40
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-2026 Elyan Labs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# ClawRTC — Mine RTC Tokens With Your AI Agent
|
|
2
|
+
|
|
3
|
+
Your Claw agent can earn **RTC (RustChain Tokens)** by proving it runs on **real hardware**. One command to install, automatic attestation, built-in wallet.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install clawrtc
|
|
9
|
+
clawrtc install --wallet my-agent-miner
|
|
10
|
+
clawrtc start
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
That's it. Your agent is now mining RTC.
|
|
14
|
+
|
|
15
|
+
## How It Works
|
|
16
|
+
|
|
17
|
+
1. **Hardware Fingerprinting** — 6 cryptographic checks prove your machine is real hardware (clock drift, cache timing, SIMD identity, thermal drift, instruction jitter, anti-emulation)
|
|
18
|
+
2. **Attestation** — Your agent automatically attests to the RustChain network every few minutes
|
|
19
|
+
3. **Rewards** — RTC tokens accumulate in your wallet each epoch (~10 minutes)
|
|
20
|
+
4. **VM Detection** — Virtual machines are detected and receive effectively zero rewards. **Real iron only.**
|
|
21
|
+
|
|
22
|
+
## Multipliers
|
|
23
|
+
|
|
24
|
+
| Hardware | Multiplier | Notes |
|
|
25
|
+
|----------|-----------|-------|
|
|
26
|
+
| Modern x86/ARM | **1.0x** | Standard reward rate |
|
|
27
|
+
| Apple Silicon (M1/M2/M3) | **1.2x** | Slight bonus |
|
|
28
|
+
| PowerPC G5 | **2.0x** | Vintage bonus |
|
|
29
|
+
| PowerPC G4 | **2.5x** | Maximum vintage bonus |
|
|
30
|
+
| **VM/Emulator** | **~0x** | **Detected and penalized** |
|
|
31
|
+
|
|
32
|
+
## Commands
|
|
33
|
+
|
|
34
|
+
| Command | Description |
|
|
35
|
+
|---------|-------------|
|
|
36
|
+
| `clawrtc install` | Download miner, create wallet, set up service |
|
|
37
|
+
| `clawrtc start` | Start mining in background |
|
|
38
|
+
| `clawrtc stop` | Stop mining |
|
|
39
|
+
| `clawrtc status` | Check miner + network status |
|
|
40
|
+
| `clawrtc logs` | View miner output |
|
|
41
|
+
| `clawrtc uninstall` | Remove everything |
|
|
42
|
+
|
|
43
|
+
## What Gets Installed
|
|
44
|
+
|
|
45
|
+
- Miner scripts from [RustChain repo](https://github.com/Scottcjn/Rustchain)
|
|
46
|
+
- Python virtual environment with `requests` dependency
|
|
47
|
+
- Systemd user service (Linux) or LaunchAgent (macOS)
|
|
48
|
+
- All files in `~/.clawrtc/`
|
|
49
|
+
|
|
50
|
+
## VM Warning
|
|
51
|
+
|
|
52
|
+
RustChain uses **Proof-of-Antiquity (PoA)** consensus. The hardware fingerprint system detects:
|
|
53
|
+
|
|
54
|
+
- QEMU / KVM / VMware / VirtualBox / Xen / Hyper-V
|
|
55
|
+
- Hypervisor CPU flags
|
|
56
|
+
- DMI vendor strings
|
|
57
|
+
- Flattened timing distributions
|
|
58
|
+
|
|
59
|
+
If you're running in a VM, the miner will install and attest, but your rewards will be effectively zero. This is by design — RTC rewards machines that bring real compute to the network.
|
|
60
|
+
|
|
61
|
+
## Requirements
|
|
62
|
+
|
|
63
|
+
- Python 3.8+
|
|
64
|
+
- Linux or macOS (Windows installer coming soon)
|
|
65
|
+
- Real hardware (not a VM)
|
|
66
|
+
|
|
67
|
+
## Links
|
|
68
|
+
|
|
69
|
+
- [RustChain Network](https://bottube.ai)
|
|
70
|
+
- [Block Explorer](https://50.28.86.131/explorer)
|
|
71
|
+
- [GitHub](https://github.com/Scottcjn/Rustchain)
|
|
72
|
+
|
|
73
|
+
## License
|
|
74
|
+
|
|
75
|
+
MIT — Elyan Labs
|
package/SKILL.md
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# ClawRTC
|
|
2
|
+
|
|
3
|
+
Mine RTC tokens with your AI agent using Proof-of-Antiquity consensus.
|
|
4
|
+
|
|
5
|
+
## What It Does
|
|
6
|
+
|
|
7
|
+
- **One-command setup**: `pip install clawrtc && clawrtc install --wallet my-agent`
|
|
8
|
+
- **Hardware fingerprinting**: 6 cryptographic checks prove your machine is real (clock drift, cache timing, SIMD identity, thermal entropy, instruction jitter, anti-emulation)
|
|
9
|
+
- **Automatic attestation**: Attests to the RustChain network every few minutes
|
|
10
|
+
- **Per-epoch rewards**: RTC tokens accumulate in your wallet each epoch (~10 minutes)
|
|
11
|
+
- **VM detection**: Virtual machines are detected and receive effectively zero rewards
|
|
12
|
+
|
|
13
|
+
## Security
|
|
14
|
+
|
|
15
|
+
- **No post-install telemetry** — no network calls during pip install
|
|
16
|
+
- **TLS verification enabled** — all RustChain API calls verify SSL certificates (CA-signed)
|
|
17
|
+
- **Bundled code only** — all miner scripts ship with the package, no external downloads
|
|
18
|
+
- **Consent required** — interactive approval prompt before installation
|
|
19
|
+
- **Dry-run mode** — `clawrtc install --dry-run` previews without installing
|
|
20
|
+
- **Hash verification** — `clawrtc install --verify` shows SHA256 of all bundled files
|
|
21
|
+
- **Clean uninstall** — `clawrtc uninstall` removes all files, services, and configs
|
|
22
|
+
- **No background service by default** — must explicitly pass `--service` to enable
|
|
23
|
+
- **Source available** — full source at https://github.com/Scottcjn/Rustchain (MIT)
|
|
24
|
+
|
|
25
|
+
### What Data Is Sent
|
|
26
|
+
|
|
27
|
+
During attestation (when mining), the following is sent to the RustChain node:
|
|
28
|
+
|
|
29
|
+
- CPU model name and architecture (e.g. "AMD Ryzen 5", "x86_64")
|
|
30
|
+
- Clock timing variance (proves real oscillator)
|
|
31
|
+
- Cache latency profile (proves real L1/L2/L3 hierarchy)
|
|
32
|
+
- VM detection flags (hypervisor yes/no)
|
|
33
|
+
- Wallet name (your chosen identifier)
|
|
34
|
+
|
|
35
|
+
**NOT sent**: file contents, browsing history, credentials, IP geolocation, personal data.
|
|
36
|
+
|
|
37
|
+
## Install
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pip install clawrtc
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Usage
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# Install miner + configure wallet
|
|
47
|
+
clawrtc install --wallet my-agent
|
|
48
|
+
|
|
49
|
+
# Start mining (foreground)
|
|
50
|
+
clawrtc start
|
|
51
|
+
|
|
52
|
+
# Check status
|
|
53
|
+
clawrtc status
|
|
54
|
+
|
|
55
|
+
# View logs
|
|
56
|
+
clawrtc logs
|
|
57
|
+
|
|
58
|
+
# Stop mining
|
|
59
|
+
clawrtc stop
|
|
60
|
+
|
|
61
|
+
# Clean uninstall
|
|
62
|
+
clawrtc uninstall
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Multipliers
|
|
66
|
+
|
|
67
|
+
| Hardware | Multiplier |
|
|
68
|
+
|----------|-----------|
|
|
69
|
+
| Modern x86/ARM | 1.0x |
|
|
70
|
+
| Apple Silicon (M1-M3) | 1.2x |
|
|
71
|
+
| PowerPC G5 | 2.0x |
|
|
72
|
+
| PowerPC G4 | 2.5x |
|
|
73
|
+
| VM/Emulator | ~0x (detected and penalized) |
|
|
74
|
+
|
|
75
|
+
## Coinbase Wallet (v1.5.0)
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
# Create a Coinbase Base wallet
|
|
79
|
+
pip install clawrtc[coinbase]
|
|
80
|
+
clawrtc wallet coinbase create
|
|
81
|
+
|
|
82
|
+
# Show wallet info
|
|
83
|
+
clawrtc wallet coinbase show
|
|
84
|
+
|
|
85
|
+
# Link existing Base address
|
|
86
|
+
clawrtc wallet coinbase link 0xYourBaseAddress
|
|
87
|
+
|
|
88
|
+
# USDC → wRTC swap guide
|
|
89
|
+
clawrtc wallet coinbase swap-info
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Requires CDP credentials from [portal.cdp.coinbase.com](https://portal.cdp.coinbase.com) for auto-creation. Manual linking works without credentials.
|
|
93
|
+
|
|
94
|
+
## Links
|
|
95
|
+
|
|
96
|
+
- Source: https://github.com/Scottcjn/Rustchain
|
|
97
|
+
- PyPI: https://pypi.org/project/clawrtc/
|
|
98
|
+
- npm: https://www.npmjs.com/package/clawrtc
|
|
99
|
+
- Block Explorer: https://rustchain.org/explorer
|
|
100
|
+
- Agent Wallets: https://rustchain.org/wallets.html
|
|
101
|
+
- RustChain: https://rustchain.org
|
|
102
|
+
- BoTTube: https://bottube.ai
|
|
Binary file
|
|
Binary file
|
|
Binary file
|