Skip to content

Commit

Permalink
Tests: forbid "HTLC expiry delta", correct term is "CLTV expiry delta"
Browse files Browse the repository at this point in the history
  • Loading branch information
harding committed Apr 4, 2024
1 parent 0172adc commit 70ad584
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ test-before-build: $(compatibility_validation) $(topic_validation)
## Check for mistakes typical spell checkers can't catch
! git --no-pager grep -i '[d]iscrete log contract'
! git --no-pager grep -i '[r]eplaca' # e.g., replaceability
! git --no-pager grep -i '[h]tlc expiry delta' # instead use: CLTV expiry delta

test-after-build: build
## Check for broken Markdown reference-style links that are displayed in text unchanged, e.g. [broken][broken link]
Expand Down
4 changes: 2 additions & 2 deletions _posts/cs/newsletters/2024-01-10-newsletter.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,12 @@ bitcoinovém páteřním software.
na placení pokut. Bylo by tedy lepší se podpory trestů vyvarovat, pokud by
nebyly nezbytně nutné pro bezpečnost.

- *Expiry delta:* LN-Symmetry vyžaduje delší HTLC expiry delta, než bylo
- *Expiry delta:* LN-Symmetry vyžaduje delší CLTV expiry delta, než bylo
očekáváno. Když Alice přepošle HTLC Bobovi, dá mu určitý počet bloků
na nárokování svých prostředků pomocí předobrazu. Po vypršení doby
si může prostředky vzít zpět. Pokud Bob HTLC dále přepošle Carol,
dá on jí nižší počet bloků na odhalení předobrazu. Rozdíl mezi těmito
dvěma hodnotami je _HTLC expiry delta_. Sanders zjistil, že tyto rozdíly
dvěma hodnotami je _CLTV expiry delta_. Sanders zjistil, že tyto rozdíly
musí být dostatečně dlouhé, aby zabránily protistraně v obohacení,
pokud by protokol v půlce přerušila.

Expand Down
4 changes: 2 additions & 2 deletions _posts/en/newsletters/2024-01-10-newsletter.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,13 @@ software.
some channel funds to pay the penalties, so it is preferable to
avoid supporting them if they are not necessary for safety.

- *Expiry deltas:* LN-Symmetry requires longer HTLC expiry deltas
- *Expiry deltas:* LN-Symmetry requires longer CLTV expiry deltas
than expected. When Alice forwards an HTLC to Bob, she gives him
a certain number of blocks to claim its funds with a preimage;
after that time expires, she can take back the funds. When Bob
further forwards the HTLC to Carol, he gives her a lower number of
blocks during which she must reveal the preimage. The delta
between those two expires is the _HTLC expiry delta_. Sanders
between those two expires is the _CLTV expiry delta_. Sanders
found that the delta needed to be long enough to prevent the
counterparty from benefiting if they aborted the protocol midway
through a commitment round.
Expand Down
4 changes: 2 additions & 2 deletions _posts/ja/newsletters/2024-01-10-newsletter.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ LN-Symmetryの研究実装の発表を掲載しています。また、Bitcoin C
ペナルティを支払うために一部のチャネル資金を確保する必要があるため、
安全のために必要でない場合はサポートを避けるのが望ましいでしょう。

- *Expiry delta:* LN-Symmetryでは、予想よりも長いHTLC expiry deltaが必要です。
- *Expiry delta:* LN-Symmetryでは、予想よりも長いCLTV expiry deltaが必要です。
アリスがHTLCをボブに転送する際、アリスはボブにプリメージを使用してその資金を請求するための特定のブロック数を与えます。
その時間が経過したら、アリスは資金を取り戻すことができます。ボブがHTLCをさらにキャロルに転送する場合、
キャロルがプリイメージを公開しなければならないブロック数を減らします。この2つの有効期限の差分が、
_HTLC expiry delta_ です。Sandersは、取引相手がコミットメントラウンドの途中でプロトコルを中止した場合に利益を得られないように、
_CLTV expiry delta_ です。Sandersは、取引相手がコミットメントラウンドの途中でプロトコルを中止した場合に利益を得られないように、
deltaは十分な長さである必要があることを発見しました。

Sandersは現在、Bitcoin Coreのmempoolとリレーポリシーの改善に取り組んでおり、
Expand Down

0 comments on commit 70ad584

Please sign in to comment.