Return-Path: Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 016B1C000B for ; 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 ; 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 ; 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 ; Tue, 15 Mar 2022 17:28:18 +0000 (UTC) Received: by mail-lj1-x22e.google.com with SMTP id c15so10893131ljr.9 for ; 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: In-Reply-To: From: Jeremy Rubin Date: Tue, 15 Mar 2022 10:28:05 -0700 Message-ID: To: Lloyd Fournier , Bitcoin Protocol Discussion 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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
I've created a pro= totype of this protocol in Sapio for your perusal:


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>

I'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>

Cheers,

Jeremy
--0000000000004cff1905da451f08--