Skip to content

cardano-scaling/hydra-lightning-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •