How octra-labs/webcli works
Octra Wallet is a local-server web client for managing an Octra wallet and interacting with the network. The main workflow is browser access to the local UI, wallet creation/import and PIN protection, then wallet actions such as sending transactions or encrypting/decrypting balances through the network RPC client. The tree also shows distinct stealth, Circle, and contract/program capabilities. The excerpts establish server/UI mounting and selected RPC and PVAC interfaces; many feature links rely on README statements or remain unverified because their handlers were not sampled.
Main entry points: wallet.hpp Wallet operations · wallet.js Browser UI · rpc_client.hpp Octra RPC client · main.cpp Local HTTP server
Components 17
Web client and server
- Browser UI
static/wallet.js - Local HTTP server
main.cpp - Session protection
lib/session_http.hpp
Wallet and transactions
- Wallet storage
lib/wallet_file.hpp - Wallet operations
wallet.hpp - Transaction builder
lib/tx_builder.hpp - Transaction journal
lib/tx_journal.hpp - Stealth transfers
lib/stealth.hpp
Privacy cryptography
- Wallet cryptography
crypto_utils.hpp - PVAC C API
pvac/pvac_c_api.cpp - Encrypted operations
pvac/include/pvac/ops/encrypt.hpp - PVAC primitives
pvac/include/pvac/crypto/ristretto255.hpp
Network capabilities
- Octra RPC client
rpc_client.hpp - Circle features
static/circles.js - Contract and program actions
lib/resource_compute_intent.hpp
Other components
- Wallet user
- Octra network
Connections 21
- Wallet user → Browser UI: uses
- Browser UI → Local HTTP server: calls local API
main.cpp - Local HTTP server → Session protection: protects routes
lib/session_http.hpp - Wallet user → Wallet operations: creates or imports
- Wallet operations → Wallet storage: stores encrypted wallet
wallet.hpp - Wallet user → Wallet operations: authorizes with PIN
- Browser UI → Wallet operations: requests wallet actions
- Wallet operations → Transaction builder: builds transfers
- Wallet operations → Octra RPC client: requests network actions
- Transaction builder → Octra RPC client: submits transactions
- Wallet operations → Transaction journal: records transaction state
- Octra RPC client → Octra network: sends RPC requests
rpc_client.hpp - Wallet user → Wallet operations: sends transfers
- Wallet user → PVAC C API: encrypts or decrypts balances
- PVAC C API → Encrypted operations: invokes
pvac/pvac_c_api.cpp - Encrypted operations → PVAC primitives: uses primitives
pvac/include/pvac/ops/encrypt.hpp - Wallet operations → Wallet cryptography: uses key utilities
wallet.hpp - Wallet user → Stealth transfers: conducts stealth transfers
- Browser UI → Circle features: uses Circle interface
- Wallet user → Contract and program actions: uses contract features
- Contract and program actions → Octra RPC client: queries or submits