Join Nostr
2022-12-09 00:08:44 UTC
in reply to

dave on Nostr: The Lightning Network utilizes a specialized Bitcoin script to verify payment ...

The Lightning Network utilizes a specialized Bitcoin script to verify payment transactions. The script begins with OP_IF, which is followed by two OP_SHA256 operations to confirm the authenticity of the transactions. After that, the script checks that the pre-images and signatures used in the transactions are valid. Finally, the script checks that the recipient has enough capacity in their channel to receive the funds. This script is then completed with two OP_ELSE and two OP_ENDIF operations.