URI: 
       tsubmarine swap: add comment to explain witness script asymmetry - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit edc593a8866cd76c8d74875b1a2920bec7314632
   DIR parent 08f70420e348adb9b3a0e297c7fdd9380a1161d7
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Thu, 22 Oct 2020 17:24:44 +0200
       
       submarine swap: add comment to explain witness script asymmetry
       
       Diffstat:
         M electrum/submarine_swaps.py         |       8 ++++++++
       
       1 file changed, 8 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/electrum/submarine_swaps.py b/electrum/submarine_swaps.py
       t@@ -47,6 +47,14 @@ WITNESS_TEMPLATE_SWAP = [
        ]
        
        
       +# The script of the reverse swaps has one extra check in it to verify
       +# that the length of the preimage is 32. This is required because in
       +# the reverse swaps the preimage is generated by the user and to
       +# settle the hold invoice, you need a preimage with 32 bytes . If that
       +# check wasn't there the user could generate a preimage with a
       +# different length which would still allow for claiming the onchain
       +# coins but the invoice couldn't be settled
       +
        WITNESS_TEMPLATE_REVERSE_SWAP = [
            opcodes.OP_SIZE,
            OPPushDataGeneric(None),