Skip to main content

htlc-calc-secret-hash

Calculate the hash of a given HTLC secret.

Usage

htlc-calc-secret-hash <SECRET>

Arguments

  • <SECRET>: The hex-encoded HTLC secret to hash.

Notes

The resulting hash is what you provide to htlc-create-transaction when setting up the HTLC. The secret itself is kept off-chain and revealed only when spending the HTLC.