The Lightning Network as it is today enables payment routing by using the Hash Time-Locked contract, the HTLC. In simple terms, this contract enables the trustless, atomic routing of payments in the network by guaranteeing that the sender commits to sending money to the receiver only if the receiver reveals a secret that generated a specific hash. If the receiver doesn’t reveal the secret then the sender can get its coins back after a specific period of time.