Hash Time-Locked Contracts


#1

In connection with the Lightning network thread it would be nice to implement HTLC at the network level.


#2

There is no significant barriers for HTLC and Lightning network.

sha256 (plus keccak and blake2b) already available at the network level: https://docs.wavesplatform.com/en/technical-details/waves-contracts-language-description/standard-library.html


#3

Thanks, I know it.
So, every time the channel updates we will need to create two new contracts (broadcasted)?
Am I misunderstanding something?


#5

Why not? Channel locks money publicly, what’s wrong?