Hash Time-Locked Contracts


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


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


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


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