d81a36f875
A bash command interface to trianglesd RPC designed for Hermes, Krystie, and Sami to manage TRI wallets and communicate via the built-in secure messaging system (smessage). Features: - Info: status, balance, peers, staking info - Wallet: addresses, send, transactions - Secure messaging: inbox, outbox, send (encrypted via ECDH over Tor P2P) - Raw RPC passthrough for any daemon command - Bash + zsh completion - SSH-tunneled RPC for remote node access - Config at /etc/tri/nodes.conf (shared between agents) Files: - scripts/tri/tri Main script - scripts/tri/nodes.conf.example Config template - scripts/tri/tri-completion.bash Bash completion - scripts/tri/_tri_zsh_completion Zsh completion - scripts/tri/README.md Documentation Tested against live DNS3 node (block 2,207,455, 4 peers). Secure messaging verified: send → inbox → outbox all working.
33 lines
1.5 KiB
Plaintext
33 lines
1.5 KiB
Plaintext
# /etc/tri/nodes.conf — Triangles node configuration
|
|
#
|
|
# Shared by Hermes and Krystie. Both agents on DNS2 tunnel RPC
|
|
# to the trianglesd node on DNS3 via SSH.
|
|
#
|
|
# Node: DNS3 (100.81.59.99)
|
|
|
|
# ─── Connection ──────────────────────────────────────────────────────────────
|
|
|
|
# RPC is only accessible on localhost at the node, so we SSH-tunnel
|
|
TRI_SSH_HOST="your-node-ip-here"
|
|
TRI_SSH_USER="root"
|
|
|
|
# RPC credentials (as set in triangles.conf on the node)
|
|
TRI_RPC_HOST="127.0.0.1"
|
|
TRI_RPC_PORT="19112"
|
|
TRI_RPC_USER="your-rpc-user-here"
|
|
TRI_RPC_PASS="your-rpc-password-here"
|
|
|
|
# ─── Wallet ──────────────────────────────────────────────────────────────────
|
|
|
|
# Wallet passphrase for unlocking (needed for messaging + sending)
|
|
# Leave empty if wallet is unencrypted or set via env var TRI_WALLET_PASSPHRASE
|
|
# TRI_WALLET_PASSPHRASE=""
|
|
|
|
# Default sender address for messages (set after creating addresses)
|
|
# TRI_DEFAULT_FROM=""
|
|
|
|
# ─── Agent Addresses ─────────────────────────────────────────────────────────
|
|
# When agents have their own TRI addresses, register them here:
|
|
# HERMES_TRI_ADDR="T..."
|
|
# KRYSTIE_TRI_ADDR="T..."
|