<p>I think you are correct.
It is perfectly reasonable that a colored-coins transaction is malformed while its bitcoin-level data is correct.</p>

<p>Indeed, most colored-coins transactions are legal bitcoin transaction in any case. Think of wallets like Colu, which cover every transaction for you. It's very unlikely that something done automatically comes out malformed.</p>

<p>Anyway, I wouldn't say that colored-coin nodes "forget" this transaction.
They will just consider it as a non-colored transaction or an invalid colored-transaction, depending on the error.
However, since it is a valid bitcoin transaction, it will be included in the blockchain (which is the same for both colored and non-colored nodes);
and then "visible" to all nodes.</p>

<p>Generally speaking, I would say it will be simply considered as the other (non-colored) bitcoin transactions.</p>

CC BY-SA 3.0
2016-09-19T09:56:59.700Z
2016-09-19T13:38:24.010Z
2016-09-19T13:38:24.010Z
FedFranz
<p>Yes. That is exactly correct.
A valid CC tx is a valid Bitcoin tx with extra structure that only CC nodes see. Bitcoin nodes do not validate the color aspect.</p>

CC BY-SA 3.0
2016-09-21T18:07:47.257Z
2016-09-21T18:07:47.257Z
Assaf Shomer
<p>I'm not sure what you mean by a "colored coin", so I'll just answer question 1.</p>

<p>Usually the wallet software would reject the transaction. If it got past the wallet software, it's likely someone will be doing something malicious. This is where the network comes in. No matter how many malicious nodes the attacker has, there will be much much more clean nodes. They will reject the transaction.</p>

<p>However if the attacker somehow managed to get a majority of nodes, the miner's node will still have to be tricked. The miner will reject it unless they are in on it.</p>

CC BY-SA 3.0
2016-09-17T01:57:11.510Z
Look up colored coins before answering a question about colored coins :)
Pieter Wuille
CC BY-SA 3.0
2016-09-16T21:57:40.187Z
2016-09-16T21:57:40.187Z
Whyte the Weeabear
<p>I need some help to clarify Bitcoin and colored coin mechanics.</p>

<p>Are the assumptions below correct (and complete)?</p>

<ol>
<li>If an error (maybe a fraud) is presented in a Bitcoin transaction, nodes (including the miner) reject this transaction and do not forward it to other nodes. This transaction will never be included in a valid block.</li>
<li>If an error (maybe a fraud) is presented in the "color code" (included after OP_RETURN) of a colored Bitcoin transaction, this is a legal Bitcoin transaction accepted by (non-colored) nodes and mined by a miner. But these colored transactions are verified, rejected and ignored by colored nodes and therefore they are forgotten by the colored coin network. </li>
</ol>

<p>Thank you!</p>

<transaction-verification><colored-coins>
How do Bitcoin and Colored Coin react to malformed transactions?
Ricardo Zylbergeld
# How do Bitcoin and Colored Coin react to malformed transactions?

(Asked by: username_0 on 2016-09-16)

I need some help to clarify Bitcoin and colored coin mechanics.

Are the assumptions below correct (and complete)?

1. If an error (maybe a fraud) is presented in a Bitcoin transaction, nodes (including the miner) reject this transaction and do not forward it to other nodes. This transaction will never be included in a valid block.
2. If an error (maybe a fraud) is presented in the "color code" (included after OP\_RETURN) of a colored Bitcoin transaction, this is a legal Bitcoin transaction accepted by (non-colored) nodes and mined by a miner. But these colored transactions are verified, rejected and ignored by colored nodes and therefore they are forgotten by the colored coin network.

Thank you!

**Tags:** transaction-verification, colored-coins


---

## 3 answers

### Answer by username_1 on 2016-09-19. Score: 1

I think you are correct.
It is perfectly reasonable that a colored-coins transaction is malformed while its bitcoin-level data is correct.

Indeed, most colored-coins transactions are legal bitcoin transaction in any case. Think of wallets like Colu, which cover every transaction for you. It's very unlikely that something done automatically comes out malformed.

Anyway, I wouldn't say that colored-coin nodes "forget" this transaction.
They will just consider it as a non-colored transaction or an invalid colored-transaction, depending on the error.
However, since it is a valid bitcoin transaction, it will be included in the blockchain (which is the same for both colored and non-colored nodes);
and then "visible" to all nodes.

Generally speaking, I would say it will be simply considered as the other (non-colored) bitcoin transactions.


---

### Answer by username_2 on 2016-09-21. Score: 1

Yes. That is exactly correct.
A valid CC tx is a valid Bitcoin tx with extra structure that only CC nodes see. Bitcoin nodes do not validate the color aspect.


---

### Answer by username_3 on 2016-09-16. Score: -1

I'm not sure what you mean by a "colored coin", so I'll just answer question 1.

Usually the wallet software would reject the transaction. If it got past the wallet software, it's likely someone will be doing something malicious. This is where the network comes in. No matter how many malicious nodes the attacker has, there will be much much more clean nodes. They will reject the transaction.

However if the attacker somehow managed to get a majority of nodes, the miner's node will still have to be tricked. The miner will reject it unless they are in on it.

> **Comments:**
> **username_4**: Look up colored coins before answering a question about colored coins :)  

---

