<p>Short answer: No.</p>

<p>Longer answer: depends on the rules of the B chain.</p>

<p>A coinbase transaction creates coins out of thin air, but is typically only valid if the block itself is valid. Typically if the block is valid on chain A it's not valid on chain B: because a block usually points to it's previous block, which should be on the same chain.</p>

<p>On the other hand, the rules of B chain can literally be anything, as crazy as the creators imagination allows. If the B chain is specifically designed to also allow A blocks, then the answer would be yes. But the coins would still belong to the miner, so it's hardly an attack.</p>

CC BY-SA 3.0
2017-10-15T19:58:53.537Z
So what makes coinbase transactions impossible to replay, as opposed to regular tx's, is that they come together with a block, and that block is typically illegal on chain B.
Nathan Wallheimer
CC BY-SA 3.0
2017-10-16T03:11:03.067Z
Yes. And if it were accepted on chain B, that money is still owned by the miner who has the private key to that coinbase address. Hardly an attack.
Jannes
CC BY-SA 3.0
2017-10-15T19:29:07.237Z
2017-10-16T03:14:28.583Z
2017-10-16T03:14:28.583Z
Jannes
<p>I'm pretty sure that I understand how replay attacks work:
A malicious node takes a valid transaction from chain A, and replays it on chain B. Other nodes on chain B see the transaction as valid and therefore it is included in both chains, instead of just A.</p>

<p>My question is whether the first transaction in a block, that generates new bitcoins, can be also replayed.</p>

CC BY-SA 3.0
2017-10-15T20:00:13.520Z
Are you literally asking if a coinbase transaction from one chain can be used as a coinbase in a block on the other chain?  Under certain assumptions, yes, but it's pointless to do so: if you mine a block using a "replayed" coinbase you are just donating your block reward to the previous miner.  It hurts the "attacker" and benefits the "victim".
Nate Eldredge
<coinbase-transaction><replay-attack>
Replay attacks: can a coinbase transaction be replayed?
Nathan Wallheimer
# Replay attacks: can a coinbase transaction be replayed?

(Asked by: username_0 on 2017-10-15)

I'm pretty sure that I understand how replay attacks work:
A malicious node takes a valid transaction from chain A, and replays it on chain B. Other nodes on chain B see the transaction as valid and therefore it is included in both chains, instead of just A.

My question is whether the first transaction in a block, that generates new bitcoins, can be also replayed.

**Tags:** coinbase-transaction, replay-attack

> **Comments:**
> **username_1**: Are you literally asking if a coinbase transaction from one chain can be used as a coinbase in a block on the other chain?  Under certain assumptions, yes, but it's pointless to do so: if you mine a block using a "replayed" coinbase you are just donating your block reward to the previous miner.  It hurts the "attacker" and benefits the "victim".  

---

## 1 answers

### Answer by username_2 on 2017-10-15. Score: 1 | Accepted answer

Short answer: No.

Longer answer: depends on the rules of the B chain.

A coinbase transaction creates coins out of thin air, but is typically only valid if the block itself is valid. Typically if the block is valid on chain A it's not valid on chain B: because a block usually points to it's previous block, which should be on the same chain.

On the other hand, the rules of B chain can literally be anything, as crazy as the creators imagination allows. If the B chain is specifically designed to also allow A blocks, then the answer would be yes. But the coins would still belong to the miner, so it's hardly an attack.

> **Comments:**
> **username_0**: So what makes coinbase transactions impossible to replay, as opposed to regular tx's, is that they come together with a block, and that block is typically illegal on chain B.  
> **username_2**: Yes. And if it were accepted on chain B, that money is still owned by the miner who has the private key to that coinbase address. Hardly an attack.  

---

