Hash Lock and Lightning Network
Content
Hash Lock, the full name of Hash Time Lock Contract (Hash Time Lock Contract), is a new technical implementation form proposed in the Lightning Network.
The hash lock mode refers to a mechanism in which the user guesses the original value of the hash value in a specified period of time to pay. Simply put, based on the smart contract, both parties lock the assets first, and if they both enter the original value of the correct hash value within a limited time, the transaction can be completed.
Under such a mechanism, the rapid confirmation of micropayments can be achieved, that is to say, the goal of rapid confirmation of the Lightning Network can be achieved.
Next, Dabai will use the asset exchange of the application scenario of hash lock as an example to show you how to realize the science of hash lock.