From ba56797b439f4bb62b82e788f8e00df5530e3b79 Mon Sep 17 00:00:00 2001 From: Joseph Poon Date: Tue, 29 Dec 2015 05:46:03 -0800 Subject: [PATCH] Ohhh... right. --- lnwire/ESCROWED_HTLC_NOTES | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lnwire/ESCROWED_HTLC_NOTES b/lnwire/ESCROWED_HTLC_NOTES index 10c52d4b7..b4a946cfa 100644 --- a/lnwire/ESCROWED_HTLC_NOTES +++ b/lnwire/ESCROWED_HTLC_NOTES @@ -105,16 +105,19 @@ Recipient+Sender agree to cancel the payment immediately (otherwise it will wait until the timeout). Also: THE ABOVE SCRIPT IS NOT THE MOST EFFICIENT SCRIPT POSSIBLE FOR THIS USE -CASE!!! This is to illustrate a similar conceptual use as current 2-of-3 -multisig. Realistically, you want to do *OR* - since the recipient will always redeem if they can. So the -hash code block would be instead: +CASE! This is to illustrate a similar conceptual use as current 2-of-3 +multisig. You want to do *OR* since the +recipient will always redeem if they can. So the hash code block would be +instead: OP_HASH160 OP_EQUAL //Stack: <0> - OP_SWAP + OP_SWAP //Stack: <0> OP_HASH160 OP_EQUAL //Stack: OP_BOOLOR //Stack: OP_VERIFY +The tradeoff is that if the escrow fucks up, then payment can be forced. +Whereas the original script doesn't have that problem if the receiver does not +misbehave.