public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
From: ZmnSCPxj <ZmnSCPxj@protonmail.com>
To: Mostafa Sedaghat joo <mostafa.sedaghat@gmail.com>,
	Bitcoin Protocol Discussion
	<bitcoin-dev@lists.linuxfoundation.org>
Subject: Re: [bitcoin-dev] Stamping transaction
Date: Sun, 07 Jun 2020 00:40:51 +0000	[thread overview]
Message-ID: <c_8uFmqhKnoFYLB23sjYhJlKAXU5ZoCSQ2MsSgn_OePQoJKFOqIuzMjm7vhnCzevQkAwdJextCeNjA8D-f_p__-sUFSkOFMDI5_yS7k8ZM8=@protonmail.com> (raw)
In-Reply-To: <CAJr8eKuFv7R-1HRft-hLFTSdpWUL2uOtkDtisL2+iPaEvvH_hA@mail.gmail.com>

Good morning Mostafa,

First off, the proposed mechanism can be made into a softfork by using an unspendable `scriptPubKey` with 0 output value.

For example, a stamp could by convention be any 0-value output whose `scriptPubKey` is `<blockhash> OP_0`, which should be unspendable.

Post-softfork nodes would reject blocks where some transaction is stamped and the stamped `<blockhash>` is not within the last N blocks.
Pre-softfork nodes would not see anything special about the unspendable `scriptPubKey` and would just accept it (but would not relay such transactions due to standardness).

Engineering-wise, block validation now needs to memorize the last N block hashes.

The mempool design currently assumes that a transaction that enters the mempool is always valid unless any UTXOs it spends have been removed.
This is important since miner block selection algorithms assume the mempool contains transactions that are currently valid.
Thus, there is the additional need to drop transactions from the mempool if they are stamped with a block that has dropped from the stamp TTL.

Another issue is incentives.
The stamp takes up blockchain space that is paid for by the creator of the transaction.
Further, the creator of the transaction gains no advantage from the stamped transaction; it is others who gain an advantage (the stamped transaction is more likely to be dropped from the mempool).
Discounting the stamp somehow will probably make this into a hardfork.
It might be sneaked into the witness somehow by adding it as a field somewhere in the new parts of Taproot (there is, a new block of data in Taproot that can be used for this), but note that the cost will still be non-zero (and users of this feature will still have a disadvantage in that their transactions are more likely to be dropped from the mempool).

Finally, it is expected to increase bandwidth use since a dropped stamped transaction will probably be rebroadcast with a new stamp, so effectively the transaction is retransmitted again with a different stamp.


Regards,
ZmnSCPxj


  reply	other threads:[~2020-06-07  0:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-05 12:05 [bitcoin-dev] Stamping transaction Mostafa Sedaghat joo
2020-06-07  0:40 ` ZmnSCPxj [this message]
2020-06-07  7:27   ` Mostafa Sedaghat joo
2020-06-07 15:01     ` ZmnSCPxj
2020-06-09  9:34       ` Mostafa Sedaghat joo
2020-06-09 14:16         ` Chris Riley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='c_8uFmqhKnoFYLB23sjYhJlKAXU5ZoCSQ2MsSgn_OePQoJKFOqIuzMjm7vhnCzevQkAwdJextCeNjA8D-f_p__-sUFSkOFMDI5_yS7k8ZM8=@protonmail.com' \
    --to=zmnscpxj@protonmail.com \
    --cc=bitcoin-dev@lists.linuxfoundation.org \
    --cc=mostafa.sedaghat@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox