A unified playground Adjudicator for exploring three off-chain payment-channel protocols—Ultraviolet, Lightning Network, and Sleepy Channels—together with a on-chain cost analysis script.
- Go 1.23 or newer.
go build
Produces a single executable, adjudicator.
./adjudicator -p -a 0.0.0.0:<port>
| Flag | Default | Description |
|---|---|---|
-p |
— | Run in payee mode. |
-a, --address |
0.0.0.0:8081 |
Local bind address & port to listen on. |
./adjudicator \
--address 0.0.0.0:<port> \
--payer-public-address <payer_ip>:<payer_port> \
--payee-public-address <payee_ip>:<payee_port> \
--payer-balance <sats> \
--payee-balance <sats> \
--single-payment-amount <sats> \
--total <count> \
--protocol <ultraviolet|lightning_network|sleepy_channel>
| Flag | Required? | Description |
|---|---|---|
--address |
No | Local bind address; default 0.0.0.0:8081. |
--payer-public-address |
Yes | Routable host:port where this payer can be contacted. |
--payee-public-address |
Yes | Routable host:port of the payee. |
--payer-balance |
Yes | Initial balance allocated to the payer. |
--payee-balance |
Yes | Initial balance allocated to the payee. |
--single-payment-amount |
Yes | Amount for each individual payment. |
--total |
Yes | Total number of payments to send over the channel. |
--protocol |
Yes | One of ultraviolet, lightning_network, sleepy_channel. |
--detail |
No | Show detail information (latencies, etc.) |
pip install bitcoin-utils
cd scripts
python3 cost.py