Skip to content

Setup

Get the repository, install Docker with Swarm and a Rust toolchain, and create the one .env file every component reads.

Get the repository

The GitHub repository is private for now. You need access granted to your account before you can clone it. Ask the maintainers, then clone it with your own credentials:

git clone <repository-url>
cd IOTABridgeTestFramework

<repository-url> is the address shown on the repository page once you have access. Every path in this book is relative to the repository root.

Prerequisites

Tool Needed for Version
Docker with Swarm The deployed stack; deploy.sh runs docker swarm init for you None pinned
Rust toolchain (cargo) The host-side tools: bridge_aa_init, bridge_acl_add, bench_sweep, loadtest 1.88, pinned by stealth_name_service/backend/testing_backend/rust-toolchain.toml; rustup picks it up when you run cargo inside testing_backend/
python3 The analysis and comparison scripts None pinned
Funded agent addresses The first NUM_AGENTS keystore addresses need at least COINS_PER_REPLICA × replicas coins each on the network you target

You do not need Rust to run the stack itself. stealth_name_service/backend/testing_backend/Dockerfile builds the binaries inside the rust:1.88-slim-bookworm image, copies in the CometBFT binary from cometbft/cometbft:v0.38.26 and runs on debian:12.15-slim.

Keystore

The repository ships iota.keystore with about 5,000 ed25519 agent addresses (a JSON file with a keys list; each entry has alias, address and key). The services mount stealth_name_service/backend/testing_backend/iota.keystore; an identical copy sits in stealth_name_service/backend/. To use your own addresses, replace the testing_backend copy.

Test keys only

These are throwaway keys committed in plain text. Use them on Devnet and Testnet only, and never send real funds to them.

Configuration

Everything lives in one file, stealth_name_service/backend/.env, read by the containers and the host tools alike. Start from the sample, which documents every variable and its default:

cp stealth_name_service/backend/.env_sample stealth_name_service/backend/.env

One .env only

Do not create a testing_backend/.env. The host tools search the current directory and then its parents, so it would shadow backend/.env for them only.

The table below is a map of the groups. The full list, with defaults and which binary reads each variable, is in Configuration reference.

Variable What it sets
NUM_AGENTS, LOADTEST_REQUESTS, LOADTEST_INTERVAL Load generator: agents, requests per agent, seconds between requests. The backend also preloads gas-coin caches for the first NUM_AGENTS keystore addresses
LOADTEST_TARGET_URL, LOADTEST_JSON Endpoint the agents hit and the payload file they send
SENDER_ADDRESS Bridge sender; the backend preloads a coin cache for it
ENABLE_HTTPS, TLS_CERT_PATH, TLS_KEY_PATH TLS on port 8443 (not published by the deploy compose files)
ENABLE_AA, SPONSOR_ADDRESS Deprecated. ENABLE_AA exposes the legacy /api/SendAAPTB; SPONSOR_ADDRESS is read only by the legacy aa_init. Use Track C instead
EVENT_HANDLER_MODE static submits a fixed call; bridge derives the call from the event
BRIDGE_AA_PACKAGE_ID, BRIDGE_AA_ACCOUNT_ID The published bridge_abstract_account package and the BridgeAA account
BRIDGE_SOURCE_CHAIN_ID, BRIDGE_TARGET_CHAIN_ID Chain labels; they must agree with the account and the source config
BRIDGE_ACL_SOURCE_SENDERS Source addresses allowed to originate requests (used at account creation)
EVENT_HANDLER_SIGNER Relayer key that signs intents
EVENT_LISTENER_PACKAGE_ID, EVENT_LISTENER_MODULE, EVENT_LISTENER_EVENT_TYPE Source module to watch and an optional event filter
BRIDGE_PROTOCOL_PHASES 2 = request and execute; 3 adds an acknowledgement on the source chain
CONSENSUS_ENABLED, CONSENSUS_* The optional consensus committee

Check it worked

docker info | grep "Swarm"          # any value: deploy.sh initialises the swarm itself
cargo --version                     # run inside stealth_name_service/backend/testing_backend: 1.88.x
ls stealth_name_service/backend/.env

Next