David A. Harding [ARCHIVE] on Nostr: π
Original date posted:2023-04-19 ποΈ Summary of this message: RGB allows for ...
π
Original date posted:2023-04-19
ποΈ Summary of this message: RGB allows for the creation of user-defined sidechains based on arbitrary scripts, reducing global state and allowing sidechain tokens to be used with LN. However, it does not provide trustless contracting beyond the capabilities of Bitcoin script.
π Original message: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
Published at
2023-06-07 23:20:29Event JSON
{
"id": "7a9b3422d6cfde3151c75c3bdd7d6c206fa8ca66ec71b88c3a6760473d167ee7",
"pubkey": "d3574a24208f4e3d0821bb4a69a0c3ae842043d444fa5c4a8c49c369918a6fb2",
"created_at": 1686180029,
"kind": 1,
"tags": [
[
"e",
"17c6b88eaabd27d18d00d5fd92c39900bd12338a2c8102c44983686a740531ea",
"",
"root"
],
[
"e",
"38cecde95ac08266c6997f225362aad365dd06f082a9168bdc89a160e35e83d0",
"",
"reply"
],
[
"p",
"e9df2c6568740a6df3ce993eccd824db95dc136a0c2410be397e2fbb82270e0e"
]
],
"content": "π
Original date posted:2023-04-19\nποΈ Summary of this message: RGB allows for the creation of user-defined sidechains based on arbitrary scripts, reducing global state and allowing sidechain tokens to be used with LN. However, it does not provide trustless contracting beyond the capabilities of Bitcoin script.\nπ Original message:On 2023-04-18 13:16, Dr Maxim Orlovsky wrote:\n\u003e 1. Assume we have some BTC lifted to RGB, which we will name BTC*.\n\u003e (letβs leave the question on how to do that aside; it can be\n\u003e discussed separately).\n\nHi Maxim,\n\nOk, I think I understand you, but I'd like to try rephrasing what you\nwrote in a very brief format to see if you agree that it's correct and\nin the hopes that it might help other Bitcoin/LN developers understand.\n\n- Xavier and Yasmin create an RGB contract that says any BTC deposited\n into multi(2,x,y) can be used as BTC\\*\n\n- Bob acquires some of this BTC\\*\n\n- Bob offers his BTC\\* to anyone who can provide x for (4 == 2 * x)\n\n- Alice knows x = 2\n\n- Alice asks Xavier and Yasmin to sign an onchain transaction\n withdrawing Bob's BTC\\*. She provides them proof that Bob offered his\n BTC\\* and that she knew the answer. The both sign the the \ntransaction.\n\nIn short, I think this capability of RGB allows easily creating\nuser-defined sidechains based on arbitrary scripts. This is similar to\nwhat Elements allowed last I looked at it, although RGB makes the\nprocess of creating new sidechains much smoother, reduces global state,\nand allows sidechain tokens (including tokens like lifted BTC) to be\nused with LN without sidechain-specific programming. That seems like a\nsignificant advance to me.\n\nWhat it doesn't provide is trustless contracting beyond the capabilities\nof Bitcoin script. To be fair, when I looked at your documentation\nagain just now, I don't see it promising enhanced **trustless**\ncontracting---I see it only promising enhanced contracting, which I (and\nperhaps others) seem to have interpreted as also being trustless.\n\nI hope I've understood you correctly. Regardless, thank you for your\nmany detailed answers to my questions!\n\n-Dave",
"sig": "090cc4cd6155fcccca30ccc2febc1833a6a0a1bb625209d522e970a7e6271edeb763cba28b90775c380d8758fd2a9b97ab0decf066b41f597bbb4ac93c749fe6"
}