ZmnSCPxj [ARCHIVE] on Nostr: 📅 Original date posted:2022-02-27 📝 Original message:Good morning again Paul, > ...
📅 Original date posted:2022-02-27
📝 Original message:Good morning again Paul,
> With sidechains, changing the ownership set requires that the sidechain produce a block.
> That block requires a 32-byte commitment in the coinbase.
> What is more, if any transfers occur on the sidechain, they cannot be real without a sidechain block, that has to be committed on the mainchain.
The above holds if the mainchain miners also act as sidechain validators.
If they are somehow separate (i.e. blind merge mining), then the `OP_BRIBE` transaction needed is also another transaction.
Assuming the sidechain validator is using Taproot as well, it needs the 32+1 txin, a 64-byte signature, a 32-byte copy of the sidechain commitment that the miner is being bribed to put in the coinbase, and a txout for any change the sidechain validator has.
This is somewhat worse than the case for channel factories, even if you assume that every block, at least one channel factory has to do an onboarding event.
> Thus, while changing the membership set of a channel factory is more expensive (it requires a pointer to the previous txout, a 64-byte Taproot signature, and a new Taproot address), continuous operation does not publish any data at all.
> While in sidehchains, continuous operation and ordinary payments requires ideally one commitment of 32 bytes per mainchain block.
> Continuous operation of the sidechain then implies a constant stream of 32-byte commitments, whereas continuous operation of a channel factory, in the absence of membership set changes, has 0 bytes per block being published.
>
> We assume that onboarding new members is much rarer than existing members actually paying each other in an actual economy (after the first burst of onboarding, new members will only arise in proportion to the birth rate, but typical economic transactions occur much more often), so optimizing for the continuous operation seems a better tradeoff.
Perhaps more illustratively, with channel factories, different layers have different actions they can do, and the only one that needs to be broadcast widely are actions on the onchain layer:
* Onchain: onboarding / deboarding
* Channel Factory: channel topology change
* Channel: payments
This is in contrast with merge-mined Sidechains, where *all* activity requires a commitment on the mainchain:
* Onchain: onboarding / deboarding, payments
While it is true that all onboarding, deboarding, and payments are summarized in a single commitment, notice how in LN-with-channel-factories, all onboarding / deboarding is *also* summarized, but payments *have no onchain impact*, at all.
Without channel factories, LN is only:
* Onchain: onboarding / deboarding, channel topology change
* Channel: payments
So even without channel factories there is already a win, although again, due to the large numbers of channels we need, a channel factory in practice will be needed to get significantly better scaling.
Finally, in practice with Drivechains, starting a new sidechain requires implicit permission from the miners.
With LN, new channels and channel factories do not require any permission, as they are indistinguishable from ordinary transactions.
(the gossip system does leak that a particular UTXO is a particular published channel, but gossip triggers after deep confirmation, at which point it would be too late for miners to censor the channel opening.
The miners can censor channel closure for published channels, admittedly, but at least you can *start* a new channel without being censored, which you cannot do with Drivechain sidechains.)
Regards,
ZmnSCPxj
Published at
2023-06-07 23:03:38Event JSON
{
"id": "9bf55edf2c2578a2a35745520a026effc9b8e43de3b02d11ec7f0bf1f98ca56d",
"pubkey": "4505072744a9d3e490af9262bfe38e6ee5338a77177b565b6b37730b63a7b861",
"created_at": 1686179018,
"kind": 1,
"tags": [
[
"e",
"59ef3747260b332a5c157c2d93ab417af21ce8ed38e69348e0cc8995183e6119",
"",
"root"
],
[
"e",
"849fdc644c81ac4c99478754d6950377eb862c2eba614d11ab4c4b1c6978b0a9",
"",
"reply"
],
[
"p",
"4505072744a9d3e490af9262bfe38e6ee5338a77177b565b6b37730b63a7b861"
]
],
"content": "📅 Original date posted:2022-02-27\n📝 Original message:Good morning again Paul,\n\n\u003e With sidechains, changing the ownership set requires that the sidechain produce a block.\n\u003e That block requires a 32-byte commitment in the coinbase.\n\u003e What is more, if any transfers occur on the sidechain, they cannot be real without a sidechain block, that has to be committed on the mainchain.\n\nThe above holds if the mainchain miners also act as sidechain validators.\nIf they are somehow separate (i.e. blind merge mining), then the `OP_BRIBE` transaction needed is also another transaction.\nAssuming the sidechain validator is using Taproot as well, it needs the 32+1 txin, a 64-byte signature, a 32-byte copy of the sidechain commitment that the miner is being bribed to put in the coinbase, and a txout for any change the sidechain validator has.\n\nThis is somewhat worse than the case for channel factories, even if you assume that every block, at least one channel factory has to do an onboarding event.\n\n\u003e Thus, while changing the membership set of a channel factory is more expensive (it requires a pointer to the previous txout, a 64-byte Taproot signature, and a new Taproot address), continuous operation does not publish any data at all.\n\u003e While in sidehchains, continuous operation and ordinary payments requires ideally one commitment of 32 bytes per mainchain block.\n\u003e Continuous operation of the sidechain then implies a constant stream of 32-byte commitments, whereas continuous operation of a channel factory, in the absence of membership set changes, has 0 bytes per block being published.\n\u003e\n\u003e We assume that onboarding new members is much rarer than existing members actually paying each other in an actual economy (after the first burst of onboarding, new members will only arise in proportion to the birth rate, but typical economic transactions occur much more often), so optimizing for the continuous operation seems a better tradeoff.\n\nPerhaps more illustratively, with channel factories, different layers have different actions they can do, and the only one that needs to be broadcast widely are actions on the onchain layer:\n\n* Onchain: onboarding / deboarding\n* Channel Factory: channel topology change\n* Channel: payments\n\nThis is in contrast with merge-mined Sidechains, where *all* activity requires a commitment on the mainchain:\n\n* Onchain: onboarding / deboarding, payments\n\nWhile it is true that all onboarding, deboarding, and payments are summarized in a single commitment, notice how in LN-with-channel-factories, all onboarding / deboarding is *also* summarized, but payments *have no onchain impact*, at all.\n\nWithout channel factories, LN is only:\n\n* Onchain: onboarding / deboarding, channel topology change\n* Channel: payments\n\nSo even without channel factories there is already a win, although again, due to the large numbers of channels we need, a channel factory in practice will be needed to get significantly better scaling.\n\n\nFinally, in practice with Drivechains, starting a new sidechain requires implicit permission from the miners.\nWith LN, new channels and channel factories do not require any permission, as they are indistinguishable from ordinary transactions.\n(the gossip system does leak that a particular UTXO is a particular published channel, but gossip triggers after deep confirmation, at which point it would be too late for miners to censor the channel opening.\nThe miners can censor channel closure for published channels, admittedly, but at least you can *start* a new channel without being censored, which you cannot do with Drivechain sidechains.)\n\n\nRegards,\nZmnSCPxj",
"sig": "0e33c85493559806955a5cb35e8e317814ea2dd4f315e4946159a149bbdc53a3173da16f0863b971c06caa76b8e4701029cd02f404dd9b531b52147e83e67bee"
}