- setup: create initial stellar's accounts according to starlight spec + additional
htlc_resolution_account
if necessary - open_channel: open channel according to starlight spec
- unilateral_close: force close channel(publish latest ratchet's tx and settle_with_*'s tx)
- simple_payment: off-chain payment according to starlight spec
- htlc_payment: payment over htlc(details of htlc implementation see below)
- htlc_timeout_payment: receiver of payment does not know rpreimage funds back to the sender in timelock time
- htlc_success_payment: receiver of payment knows rpreimage funds belong to receiver immediately
- unilateral_close_with_active_htlc: like unilateral_close but with active htlc
- htlc_resolution_process
repository contains four demos(see help for details)
./starlight-demo-impl -unilateral_close
- setup
- open_channel
- unilateral_close
./starlight-demo-impl -payment
- setup
- open_channel
- simple_payment
- unilateral_close
./starlight-demo-impl -htlc_timeout_payment
- setup
- open_channel
- htlc_timeout_payment
- unilateral_close_with_active_htlc
- htlc_resolution_process(htlc timeout)
./starlight-demo-impl -htlc_success_payment
- setup
- open_channel
- htlc_success_payment
- unilateral_close_with_active_htlc
- htlc_resolution_process(htlc success)
original htlc scheme(on Bitcoin blockchain): https://github.com/bitcoin/bips/blob/master/bip-0199.mediawiki