Skip to content

htlc calc secret hash Command Guide

Enrico Rubboli edited this page Apr 10, 2026 · 1 revision

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.

Related

Clone this wiki locally