klidara.

Four modules, one statically linked binary

How Klidara is put together

Klidara is not a service you sign up for. It is a Rust library and a CLI you run on a host you control. The vault is the only module that touches plaintext key material; everything else works with signatures and public chain state.

The modules

ModuleResponsibility
vaultAES-256-GCM encrypted key storage for Ed25519 keypairs, one .wallet file per name.
chainUSDC transfer verification against Base, queried directly against your own RPC endpoint.
x402Invoice generation and payment verification for agent-to-service payments.
licenseEd25519-signed licence payloads, verified offline.

Where data lives

One directory, resolved through XDG_DATA_HOME, so a container can point it at a single volume:

$XDG_DATA_HOME/arca/
├── default.wallet          encrypted key material
└── recovery/
    ├── state.json
    └── <recovery-id>.json  shard requests

The CLI

The binary is arca. Every command is local unless you ask for the server.

arca create --name treasury           # generate a wallet
arca list                             # names only
arca balance treasury                 # USDC balance on Base
arca audit                            # local audit trail

arca shard treasury --total 5 --threshold 3
arca recover <share> <share> <share> --name restored

arca contract create "Q1 retainer" 0xPayer 0xPayee 250
arca invoice <contract_id> --output invoice.pdf
arca server start --port 3000         # HTTP API on 127.0.0.1

The HTTP API

arca server start binds 127.0.0.1 only. The routes below are the whole surface:

MethodPathReturns
GET/health{status, service}
GET/api/v1/wallets[{name, address}]
GET/api/v1/wallet/{name}{name, address, exists}
GET/api/v1/balance/{address}{address, usdc, eth, network}
GET/api/v1/transaction/{hash}{tx_hash, from, to, amount, confirmed, block_number}
GET/api/v1/contractslist of payment contracts
POST/api/v1/contract{status, contract_id, title, amount_usdc}
GET/.well-known/x402x402 discovery document
GET/api/v1/x402/invoice/{feature}{feature, amount_usdc, receiver, network, currency, expires_at}
POST/api/v1/x402/verify{valid, message}

The API has no authentication layer yet, which is why it is loopback-only and not published. See Security for the release gates.

Build it yourself

Rust 1.98.1, edition 2024. No Python, no Node, no runtime to install.

git clone https://github.com/MethodWhite/Arca
cd Arca
cargo build --release --locked
./target/release/arca-cli --help