summaryrefslogtreecommitdiff
path: root/cf/ad7dd390ae74f79c15fe65d814e7061824bed1
blob: 24f5f5f066ee389892743c04efc1a4c8eab59df2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
Return-Path: <jeremy.l.rubin@gmail.com>
Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133])
 by lists.linuxfoundation.org (Postfix) with ESMTP id 016B1C000B
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Tue, 15 Mar 2022 17:28:21 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by smtp2.osuosl.org (Postfix) with ESMTP id E19CB40A3E
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Tue, 15 Mar 2022 17:28:20 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level: 
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: smtp2.osuosl.org (amavisd-new);
 dkim=pass (2048-bit key) header.d=gmail.com
Received: from smtp2.osuosl.org ([127.0.0.1])
 by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id uqIaJrzTm_B9
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Tue, 15 Mar 2022 17:28:18 +0000 (UTC)
X-Greylist: whitelisted by SQLgrey-1.8.0
Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com
 [IPv6:2a00:1450:4864:20::22e])
 by smtp2.osuosl.org (Postfix) with ESMTPS id 8BEDC40A20
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Tue, 15 Mar 2022 17:28:18 +0000 (UTC)
Received: by mail-lj1-x22e.google.com with SMTP id c15so10893131ljr.9
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Tue, 15 Mar 2022 10:28:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=DL0AmRSNtrqoBiH0EdLYuTL2KGTl3B2XCCykpNhd+y4=;
 b=KmAgrrbcYOjfNP/XGuMOU1GRvux3DetoX35QTnteNlUbsvD8mgFGeN+dGhHFHWa/Tt
 8Wfu4vXLlP1VM+EsiCGk6gzVdEm2GaCcW3HOtCJOrHuWpNdNHY4KhKXOo+hNTdCUlZ4Z
 EwxuK5iaZbCvzNGAJbREOw2MevEK3OYWazcKzhdsKJl8s+TF9IvpupNYJVJ0yc84OmnW
 67xqkcxZRRazmhrUXgjiLX/Gt1xYsmwAEwh/YynVk8R/wvkoCeXMN74cUC9QaeBwEW52
 9k076XCQu8nfHAlDoVTpcnw+bZw0kM1zaXPZah3JJMJjYKbcLdspUEMcLjDaDnGrrM/s
 BAmQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=DL0AmRSNtrqoBiH0EdLYuTL2KGTl3B2XCCykpNhd+y4=;
 b=cG+WoZm6v95oBU0LZZSbN4MfA9apJcrFy8rQwTZB4jxlH+XKobxour25Cua+Sp2YkS
 EuwBGzGMcydpUYC5IXbCARIhdZnWvavKvg5yexeIoxYs2UOtvUODm2oftEoLuKphw2rx
 9hpm5FB/VH30gCfnpF6HmMPr7c4Sm5UlXvnr955NvZBucg16T7KfM5HAAgWzlBdYKhfp
 iGnGvh3h+zvySFkIxgVB3xn0Ad1Z4RyRMhyff1kHPNnS8goFUuzUl1iSUr/09gHFpILi
 pBHMo1QqRs62+HFtupcNfRDID/HsnkbXBYCe3hU/fUh3kYmc+Fwu5XWJszm95fQ6M7nm
 8r5g==
X-Gm-Message-State: AOAM533G7G3nMxhr7iZs4WDHHkKuDmYWKKSbVQE4xzsd8dsKR3e+Oaq0
 jIWDtPGRjbrZhigNlKA4BGwxpHROfsETHmxRlmI=
X-Google-Smtp-Source: ABdhPJz5j97b7jrFbOBsykxPNquyIOiMrLXduCvSmGLq2UONSnfNlDGcOaOMLCh67tGxfeOP6/YEPU7ZdzMs23T0x6o=
X-Received: by 2002:a2e:aa14:0:b0:245:fd1d:4eba with SMTP id
 bf20-20020a2eaa14000000b00245fd1d4ebamr17706482ljb.425.1647365296290; Tue, 15
 Mar 2022 10:28:16 -0700 (PDT)
MIME-Version: 1.0
References: <CAH5Bsr2vxL3FWXnJTszMQj83jTVdRvvuVpimEfY7JpFCyP1AZA@mail.gmail.com>
In-Reply-To: <CAH5Bsr2vxL3FWXnJTszMQj83jTVdRvvuVpimEfY7JpFCyP1AZA@mail.gmail.com>
From: Jeremy Rubin <jeremy.l.rubin@gmail.com>
Date: Tue, 15 Mar 2022 10:28:05 -0700
Message-ID: <CAD5xwhiMxGjLAkQAcyb8Fd3H1jBi+1+FmzWNoxD138A-nFC+Lw@mail.gmail.com>
To: Lloyd Fournier <lloyd.fourn@gmail.com>, 
 Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: multipart/alternative; boundary="0000000000004cff1905da451f08"
Cc: dlc-dev@mailmanlists.org
Subject: Re: [bitcoin-dev] CTV dramatically improves DLCs
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Bitcoin Protocol Discussion <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>, 
 <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>, 
 <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe>
X-List-Received-Date: Tue, 15 Mar 2022 17:28:21 -0000

--0000000000004cff1905da451f08
Content-Type: text/plain; charset="UTF-8"

I've created a prototype of this protocol in Sapio for your perusal:

https://github.com/sapio-lang/sapio/blob/master/sapio-contrib/src/contracts/derivatives/dlc.rs

Feel free to tweak the test and use it as a benchmark, i tested 1 oracle
with 100,000 different payouts and saw it take around 13s on a release
build.

I'll be playing around with this a bit (I doubt Sapio Studio can handle a
gui for 100,000 nodes), but I figured it was worth a share.

Cheers,

Jeremy

--0000000000004cff1905da451f08
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:arial,he=
lvetica,sans-serif;font-size:small;color:rgb(0,0,0)">I&#39;ve created a pro=
totype of this protocol in Sapio for your perusal:</div><div class=3D"gmail=
_default" style=3D"font-family:arial,helvetica,sans-serif;font-size:small;c=
olor:rgb(0,0,0)"><br></div><div class=3D"gmail_default" style=3D"font-famil=
y:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><a href=3D"h=
ttps://github.com/sapio-lang/sapio/blob/master/sapio-contrib/src/contracts/=
derivatives/dlc.rs" target=3D"_blank">https://github.com/sapio-lang/sapio/b=
lob/master/sapio-contrib/src/contracts/derivatives/dlc.rs</a></div><div cla=
ss=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif;font-s=
ize:small;color:rgb(0,0,0)"><br></div><div class=3D"gmail_default" style=3D=
"font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)">F=
eel free to tweak the test and use it as a benchmark, i tested 1 oracle wit=
h 100,000 different payouts and saw it take around 13s on a release build.<=
/div><div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans=
-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class=3D"gmail_defa=
ult" style=3D"font-family:arial,helvetica,sans-serif;font-size:small;color:=
rgb(0,0,0)">I&#39;ll be playing around with this a bit (I doubt Sapio Studi=
o can handle a gui for 100,000 nodes), but I figured it was worth a share.<=
/div><div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans=
-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class=3D"gmail_defa=
ult" style=3D"font-family:arial,helvetica,sans-serif;font-size:small;color:=
rgb(0,0,0)">Cheers,</div><div class=3D"gmail_default" style=3D"font-family:=
arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div=
 class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif;fo=
nt-size:small;color:rgb(0,0,0)">Jeremy</div></div>

--0000000000004cff1905da451f08--