From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 7ECD4C0051 for ; Tue, 1 Sep 2020 20:07:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7AF58866A9 for ; Tue, 1 Sep 2020 20:07:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cbsrLSEDylpD for ; Tue, 1 Sep 2020 20:07:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-vk1-f182.google.com (mail-vk1-f182.google.com [209.85.221.182]) by fraxinus.osuosl.org (Postfix) with ESMTPS id BE29386670 for ; Tue, 1 Sep 2020 20:07:25 +0000 (UTC) Received: by mail-vk1-f182.google.com with SMTP id h23so663508vkn.4 for ; Tue, 01 Sep 2020 13:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=7dhu53RiPa7zdBTk9hZwHe9Dzn4mOsL/HzNeRJMcM78=; b=UjYYK2afo7B0rqXibSo0ZnXNXYEZ7lZCWlmDBpW4NSH4coocCxDaAyyJTSD0ddOx4D l4s8B2JdQBYGOwSbQ4x4i8R4u9z57MsQ1dnpagBy01z9uyurUHl0tKSXNKYX+iffpUsx fWCg3ySGz3pni3DmekvV6lA6R8op1JoHHzu7brNQWzdTGf3C/TrkCm+QVv9FlxqDD8u3 e0ayhmA5UnLF04zjXIEqw88KeU++lDtBv9HGtImuuxQQa29JB7f9q35Eq+CRljEYiBBn rQUOiZs3Ck+GwXB01xkdRzJGaxn5KWYXZNyDsGSQQa/odvcuxF+3caUc+XPebHD8qJLZ GiMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=7dhu53RiPa7zdBTk9hZwHe9Dzn4mOsL/HzNeRJMcM78=; b=CAv0P2j8iE/wL80gUqfDgN8soheqSfthPvNZomyVtiLFQU6RJvjDI3q7l9Tlf2Dd8+ 20vfGI69AyykRRNooPBKDebYgiM2sJtDOAvpnkhljhr9M1wwF3dIstDe9QBWvigkwLSB zRC3kE7mkDNwZII68ybUz99r1Oaizd56K5BguMKienC9adNT5dL8CcjzuNqOhb/bUEzv myDCzFLPlmwLECbkCNhmmXIuU5Ya9MFDTkv1aBnCDYs4ZjYif8zSFA0fOgyDTspJZT4v Y1yuECX79z1h0h2i/evLGE0OStxKeTfnnhXY/Q7qqk04+U2eOViACOjgv6qDj6uwUl0a Mtcg== X-Gm-Message-State: AOAM53046VKTFw5taDrEgBbNReZsW4QaShk2AL1X4TyGYP128pQ7pxq1 NGh7moval9MAUfdALViYopaqDgyL1ngQZA== X-Google-Smtp-Source: ABdhPJy7S6VEm3M0wqZ0yjiQvFtoRG+q9XSa+25E6JHdwDO1Y3Y7Lz09jPZqFSHqMXtZRw8atFZ9Lw== X-Received: by 2002:a1f:a8d4:: with SMTP id r203mr3265692vke.49.1598990844242; Tue, 01 Sep 2020 13:07:24 -0700 (PDT) Received: from [192.168.0.2] ([70.45.100.193]) by smtp.gmail.com with ESMTPSA id q2sm337733vsd.6.2020.09.01.13.07.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Sep 2020 13:07:23 -0700 (PDT) From: Thomas Hartman Message-Id: <966B6C4B-3EA0-4E5A-BDE9-C7EB3E8C1EF0@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_6685B6C6-0F2F-4B2D-BBBC-6B3AD50B4FDE" Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Date: Tue, 1 Sep 2020 16:07:21 -0400 In-Reply-To: To: Bitcoin Protocol Discussion References: X-Mailer: Apple Mail (2.3445.9.1) X-Mailman-Approved-At: Tue, 01 Sep 2020 20:59:18 +0000 Cc: jr@mit.edu Subject: Re: [bitcoin-dev] reviving op_difficulty X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Bitcoin Protocol Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 20:07:26 -0000 --Apple-Mail=_6685B6C6-0F2F-4B2D-BBBC-6B3AD50B4FDE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 This is in reply to David harding=E2=80=99s message at=20 = https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2020-August/018129= .html = (For some reason didn=E2=80=99t arrive in my inbox, so I was late = noticing it, and I am replying in this way. Sorry if it screws up = threading.) Powswap sounds great! And it doesn=E2=80=99t require any protocol = changes! Very cool. One potential problem I see with powswap is iiuc you need something like = watchtowers, or the loser of the bet can sweep the funds if the winner = is napping. Related, I=E2=80=99d also like to have trades happening in = lightning channels, and I=E2=80=99m not sure how this race affects the = security assumptions there.=20 Further question about powswap.=20 It=E2=80=99s currently block 64632 with retarget in 808 blocks. I=E2=80=99= d like to bet that=20 * the first 6 blocks after the retarget are found in under an hour * AND the new difficulty exceeds some threshold. Is such a bet currently = possible with powswap? I see how pow swap lets you bet on hashrate (ie block times) from = current time till some future time. But I would like to also bet on = hashrate of slices of time in the future. Possible?=20 --Apple-Mail=_6685B6C6-0F2F-4B2D-BBBC-6B3AD50B4FDE Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 This = is in reply to David harding=E2=80=99s message at 

(For some reason didn=E2=80=99t arrive in my inbox, so I was = late noticing it, and I am replying in this way. Sorry if it screws up = threading.)

Powswap sounds great! And it doesn=E2=80=99t require any = protocol changes! Very cool.

One potential problem I see with = powswap is iiuc you need something like watchtowers, or the loser of the = bet can sweep the funds if the winner is napping. Related, I=E2=80=99d = also like to have trades happening in lightning channels, and I=E2=80=99m = not sure how this race affects the security assumptions = there. 

Further question about powswap. 

It=E2=80=99s currently block 64632 with retarget in 808 blocks. I=E2=80=99d like to bet = that 

* = the first 6 blocks after the retarget are found in under an = hour
* = AND the new difficulty exceeds some threshold. Is such a bet = currently possible with powswap?

I see how pow swap lets you bet on hashrate (ie = block times) from current time till some future time. But I would like = to also bet on hashrate of slices of time in the future. = Possible? 


= --Apple-Mail=_6685B6C6-0F2F-4B2D-BBBC-6B3AD50B4FDE--