May I know is off-chain atomic swap using Lighting Network requires both blockchain to have the same cryptographic hash function? If it is true, then how is it possible for Litecoin that has scrypt algorithm and Bitcoin that has Sha-256 algorithm to be able to perform atomic swap?
https://twitter.com/satoshilite/status/911328252928643072?lang=enI'm still a newbie. Hope that anyone here can help this noob.
I think for what you are asking - the answer is yes.
Both coins need to be able to use the same hash function so that an atomic swap can take place. I need to show the pre-image of some hashed value to collect my side of the deal, and this will allow the other party to collect their side. We both need to be able to speak the same 'hash'.
This, as achow101 points out, is independent of what the coin uses for it's actual POW / consensus.
Sooo.. LITECOIN needs to be able to perform a SHA256 in it's script to communicate with the BTC chain. (Since I don't think BTC will ever get s-crypt)
ps.. Litecoin does support sha256