Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.22 KB

File metadata and controls

53 lines (36 loc) · 1.22 KB

hydra-lightning-router

Demonstration of routing a payment between two hydra heads using the htlc validator and the invoice representation.

Note

In our implementation, "Ida" in the picture above is called "Carol" in the code and TUI, and our demo videos.

This is an implementation of HTLC across two Hydra Heads and, for a setup with:

  • Alice in Head 1
  • Bob in Head 2
  • Carol in Head 1 and Head 2

demonstrates:

  1. Transferring Ada between Alice and Bob via a HTLC,
  2. Transferring a CNT between Alice and Bob, via a HTLC.

Demo

Running

Because of the nature of our tests we can't run multiple tests without re-spinning the devnet.

# In one terminal
nix run .#demo

# wait to see prepare-devnet and seed-devnet jobs as completed
# In another terminal

cabal test hydra-lightning-router-e2e --test-options='--match="hydra lightning router"'
# or 
cabal test hydra-lightning-router-e2e --test-options='--match="can refund from HTLC after timelock"'

Tests

nix develop
cabal test all