Return-Path: Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 65743C002A for ; Wed, 19 Apr 2023 19:37:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 388634209A for ; Wed, 19 Apr 2023 19:37:57 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 388634209A X-Virus-Scanned: amavisd-new at osuosl.org X-Spam-Flag: NO X-Spam-Score: -4.2 X-Spam-Level: X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AGdrZuRieEPW for ; Wed, 19 Apr 2023 19:37:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 4CD354208C Received: from smtpauth.rollernet.us (smtpauth.rollernet.us [208.79.240.5]) by smtp4.osuosl.org (Postfix) with ESMTPS id 4CD354208C for ; Wed, 19 Apr 2023 19:37:56 +0000 (UTC) Received: from smtpauth.rollernet.us (localhost [127.0.0.1]) by smtpauth.rollernet.us (Postfix) with ESMTP id 2E40E2800082; Wed, 19 Apr 2023 12:37:54 -0700 (PDT) Received: from webmail.rollernet.us (webmail.rollernet.us [IPv6:2607:fe70:0:14::a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by smtpauth.rollernet.us (Postfix) with ESMTPSA; Wed, 19 Apr 2023 12:37:53 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 19 Apr 2023 09:37:53 -1000 From: "David A. Harding" To: Dr Maxim Orlovsky In-Reply-To: References: <3089493b2f202e30af42a485efec3fd1@dtrt.org> User-Agent: Roundcube Webmail/1.4.10 Message-ID: X-Sender: dave@dtrt.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rollernet-Abuse: Contact abuse@rollernet.us to report. Abuse policy: http://www.rollernet.us/policy X-Rollernet-Submit: Submit ID 6b2.64404311.31eef.0 Cc: Bitcoin Protocol Discussion Subject: Re: [bitcoin-dev] RGB protocol announcement 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: Wed, 19 Apr 2023 19:37:57 -0000 On 2023-04-18 13:16, Dr Maxim Orlovsky wrote: > 1. Assume we have some BTC lifted to RGB, which we will name BTC*. > (let’s leave the question on how to do that aside; it can be > discussed separately). Hi Maxim, Ok, I think I understand you, but I'd like to try rephrasing what you wrote in a very brief format to see if you agree that it's correct and in the hopes that it might help other Bitcoin/LN developers understand. - Xavier and Yasmin create an RGB contract that says any BTC deposited into multi(2,x,y) can be used as BTC\* - Bob acquires some of this BTC\* - Bob offers his BTC\* to anyone who can provide x for (4 == 2 * x) - Alice knows x = 2 - Alice asks Xavier and Yasmin to sign an onchain transaction withdrawing Bob's BTC\*. She provides them proof that Bob offered his BTC\* and that she knew the answer. The both sign the the transaction. In short, I think this capability of RGB allows easily creating user-defined sidechains based on arbitrary scripts. This is similar to what Elements allowed last I looked at it, although RGB makes the process of creating new sidechains much smoother, reduces global state, and allows sidechain tokens (including tokens like lifted BTC) to be used with LN without sidechain-specific programming. That seems like a significant advance to me. What it doesn't provide is trustless contracting beyond the capabilities of Bitcoin script. To be fair, when I looked at your documentation again just now, I don't see it promising enhanced **trustless** contracting---I see it only promising enhanced contracting, which I (and perhaps others) seem to have interpreted as also being trustless. I hope I've understood you correctly. Regardless, thank you for your many detailed answers to my questions! -Dave