pull down to refresh

There is definitely a weakness in embedding arbitrary data

If we believe this to be true (and I do), what do you think is a reasonable response?

There have been many proposals over the last few years, and I feel that most of them have failed to be better than paying higher fees. Yes, this will lead to small utxos being priced out, but it seems to me that we are very far from that being a consistent state. And with things like taproot addresses, I wouldn't be surprised if a 1m sat utxo is pretty much always economically viable (I recognize that 1m sats is still quite a lot of money, but in the world where things less than that start to look too expensive, I doubt there will be very much spam at all on the chain).

If we are worried about the cost to noderunners, I believe the blocksize limit is a very safe control there.

There is definitely a weakness in embedding arbitrary data
If we believe this to be true (and I do), what do you think is a reasonable response?

Activate Cross-Input Signature Aggregation and remove the witness discount.

reply

Can you remove the witness discount without ignoring incentive formed by having 2 separate limits? I challenged the "witness discount has to be a fork" for a while and I got challenged right back and couldn't find a way to do it without underutilizing available blockspace (i.e. requiring non-profit-maxxing mining).

CISA is awesome conceptually.

reply

Removing the witness discount does not hurt miner incentives.
They were mining 1000000 vBytes before, they will be mining 1000000 vBytes afterwards. And vBytes (or Weight Units) are the unit by which fees are measured.


Also since I haven't seen anyone do this before, let's do the math on transaction sizes under different consensus rules.

Consensus Rule ScenariosConsensus Rule Scenarios

  • Current Rules: No CISA, 75% witness discount
  • BIP459: CISA Full-Agg, 75% witness discount
  • BIP459 + Remove Witness Discount: CISA Full-Agg, No witness discount

Transaction TypesTransaction Types

  • Simple payment with change (1 input, 2 outputs)
  • 3 UTXO Consolidation (3 inputs, 1 output)
  • 5 UTXO Consolidation (5 inputs, 1 output)
  • 10 UTXO Consolidation (10 inputs, 1 output)
  • Coinjoin (14 inputs, 18 outputs)
  • ~50 kB JPEG Inscription (1 input with data, 1 dust output)

CalculationCalculation

Assuming the use of Schnorr Signatures.

is the witness cost factor.

is the input count.

is the output count.

TX size without CISA:

TX size with CISA Full-Agg (Might be off by a byte or two, depends on how it is ultimatelly implemented):

Simple payment with change (1 input, 2 outputs)Simple payment with change (1 input, 2 outputs)

  • Current Rules: vBytes
  • BIP459: vBytes
  • BIP459 + Remove Witness Discount: vBytes

33.12% increase

3 UTXO Consolidation (3 inputs, 1 output)3 UTXO Consolidation (3 inputs, 1 output)

  • Current Rules: vBytes
  • BIP459: vBytes
  • BIP459 + Remove Witness Discount: vBytes

7.96% increase

5 UTXO Consolidation (5 inputs, 1 output)5 UTXO Consolidation (5 inputs, 1 output)

  • Current Rules: vBytes
  • BIP459: vBytes
  • BIP459 + Remove Witness Discount: vBytes

4.4% decrease

10 UTXO Consolidation (10 inputs, 1 output)10 UTXO Consolidation (10 inputs, 1 output)

  • Current Rules: vBytes
  • BIP459: vBytes
  • BIP459 + Remove Witness Discount: vBytes

15.51% decrease

Coinjoin (14 inputs, 18 outputs)Coinjoin (14 inputs, 18 outputs)

  • Current Rules: vBytes
  • BIP459: vBytes
  • BIP459 + Remove Witness Discount: vBytes

10.29% decrease

~50 kB JPEG Inscription (1 input with data, 1 dust output)~50 kB JPEG Inscription (1 input with data, 1 dust output)

TX size:

  • Current Rules: vBytes
  • Remove Witness Discount: vBytes

397.76% increase


Let's put it into a table:

Current RulesBIP459 + Remove Witness DiscountChange (%)
Simple payment with change154 vB205 vB+33.12%
3 UTXO Consolidation226 vB244 vB+7.96%
5 UTXO Consolidation341 vB326 vB-4.4%
10 UTXO Consolidation628.5 vB531 vB-15.51%
Coinjoin1589.5 vB1426 vB-10.29%
50 kB JPEG Inscription12594.5 vB50096 vB+397.76%
reply

Correction: The change from 12594.5 vB to 50096 vB for the 50 kB JPEG inscription is actually a +297.76% increase.

reply
252 sats \ 1 reply \ @optimism 7 Aug

I don't know. If I will find out a good way in the future, I promise that I will write a BIP, get consensus on the change, all that. Burn out on it if I have to. I just know that I've not seen a proposal yet that hits the tradeoffs at the right spot, so until then, I think we should just practice the philosophy shared in Darth's clip from this morning: