htlc calc-secret-hash
Legacy spelling: this command was previously spelled
htlc-calc-secret-hash. Both spellings work, but only the nested spelling shown here appears inhelpand tab completion (v1.4.5+).
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 when setting up the HTLC. The secret itself is kept off-chain and revealed only when spending the HTLC.
Related
htlc generate-secret: Generate a random HTLC secret.htlc create: Create an HTLC output using the hash.utxo-spend: Spend an HTLC by providing the secret.