-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathllms.txt
More file actions
74 lines (51 loc) · 2.56 KB
/
llms.txt
File metadata and controls
74 lines (51 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# SolMesh
> Send Solana transactions over Meshtastic/LoRa mesh networks. Enables cryptocurrency transfers in off-grid environments. Private keys never leave your device. Supports native SOL and SPL tokens (USDC, FXN). Built with Mirra.
## Install
```bash
pip install -e .
```
## Operating Modes
1. **Offline Sign + Relay**: Sign locally, relay signed tx over mesh to internet-connected gateway
2. **Wallet-to-Wallet**: Exchange Solana addresses over LoRa with ACK confirmation
3. **Full Gateway**: Gateway holds hot wallet, remote nodes send authenticated transfer requests (Ed25519)
## Quick Start
```bash
solmesh wallet create --name mywallet
solmesh gateway --rpc-url https://api.devnet.solana.com
solmesh send relay --wallet mywallet --to <ADDRESS> --amount 0.5 --auto-discover
solmesh send request --wallet mywallet --to <ADDRESS> --amount 0.1 --gateway-node '!aabbccdd'
solmesh balance --address <ADDRESS> --auto-discover
```
## SPL Token Support
```bash
solmesh send relay --wallet mywallet --to <ADDRESS> --amount 5.0 --token USDC --auto-discover
solmesh send request --wallet mywallet --to <ADDRESS> --amount 5.0 --token USDC --gateway-node '!aabbccdd'
solmesh balance --address <ADDRESS> --token USDC --auto-discover
```
Use `--create-ata` if the recipient doesn't have a token account yet.
## Store-and-Forward
Queue transactions offline, auto-flush when a gateway comes into range:
```bash
solmesh send deferred --wallet mywallet --to <ADDRESS> --amount 0.1 --mode 3
solmesh listen --wallet mywallet --auto-discover
```
## HTTP API
REST API for programmatic access:
```bash
solmesh gateway --http-port 8080 --api-key "your-key" --rpc-url https://api.devnet.solana.com
```
Endpoints: /v1/status, /v1/balance/{address}, /v1/blockhash, /v1/slot, /v1/transfer
## Protocol
Compact binary protocol for LoRa's ~237-byte limit. 10-byte header, up to 210 bytes payload per chunk. Magic bytes: 0x53 0x4D ("SM"). Typical SOL transfer (~215 bytes) fits in 2 chunks. SPL payloads include flags byte and optional 32-byte mint address.
## Security
- Private keys never transmitted over LoRa
- AES-256-GCM encrypted wallet files (PBKDF2, 480K iterations)
- BIP39 mnemonic backup (24 words)
- Mode 3: Ed25519 signature verification, pubkey allowlist, per-transfer limits
- Token bucket rate limiting, CRC-8 integrity
- Store-and-forward queue stores no secrets (wallet names and addresses only)
## Related
- [BaseMesh](https://github.com/LoserLab/basemesh): Same concept for Base/Ethereum L2
- [Mirra](https://x.com/mirra): AI personal OS, integration partner
## Author
Created by Heathen. Built with Mirra.