  tips :

Hash time locked contracts for routing.

For routing, you send a valid Bitcoin tx to a channel partner with 2 spending conditions

. They get some coin if they know a secret number (revealed when who they are routing to accepts payment)