<blockquote>
  <p>Why aren't they used instead of Segwit? It seems that they solve the exact same issues as Segwit, in a more clear way.</p>
</blockquote>

<p>Segwit existed long before FlexTrans first came out and was almost ready for release by the time FlexTrans was even conceived. It has received far more testing and review than FlexTrans. In order to deploy FlexTrans, it would need to have much more testing, and have much more review.</p>

<p>Furthermore, FlexTrans requires a hard fork and for wallet developers to completely rewrite their serializers and deserializers to understand the FlexTrans format. Since Segwit is really just an extension of the current transaction format, it only needs a soft fork. This means that people can upgrade their software when they are ready and wallet developers only need to slightly modify their software in order to support segwit. They can also do so at their own pace. FlexTrans would require every wallet developer to perform a full rewrite or a new addition to their code which adds complexity and is more error prone. The FlexTrans format itself is also exotic and much more complex than the current format, and that can lead to potentially disastrous bugs.</p>

<p>Lastly, a hard fork to FlexTrans only transactions would completely break every single transaction in-flight at the time of the fork. It would make every single unconfirmed transaction that uses the current format invalid by the new hard fork rules, so every single unconfirmed transaction would need to be remade in the FlexTrans format. This also causes issues for transactions that have a lock time and the private keys necessary to spend those lock-timed coins have been lost/thrown away.</p>

<p>If a FlexTrans hard fork were to allow the current transaction format, then it wouldn't solve any problems. People would just keep using the current transaction format since using FlexTrans has no requirements to switch to using it. At least with segwit, if you have segwit outputs and want to spend from them, you must use the segwit transaction format. There is no such requirement to use FlexTrans. Furthermore wallet developers would then have even more complexity as now they need to have code that figures out when to use the current transaction format and when to use FlexTrans for serializing and deserializing a transaction. That is additional complexity and possibility for failure.</p>

<p>Therefore Segwit is preferred over FlexTrans. Segwit breaks less things, is easier to implement, and is backwards compatible, all of which FlexTrans is not.</p>

CC BY-SA 3.0
2017-07-02T18:45:09.020Z
Can you please note in the answer that the serialization format (CMF - sort-of-binary XML) is exotic and adds complexity (and possible bugs)? It's what sticks the most to me when I am reading the specs and the discussion around it.
Karel Bílek
CC BY-SA 3.0
2017-07-02T16:59:16.027Z
2017-07-02T19:15:35.940Z
2017-07-02T19:15:35.940Z
Ava Chow
<p>What are the positives and negatives of <a href="https://bitcoinclassic.com/devel/Flexible%20Transactions.html" rel="nofollow noreferrer">Bitcoin Classic's Flexible Transactions</a>? (<a href="https://github.com/bitcoin/bips/blob/master/bip-0134.mediawiki" rel="nofollow noreferrer">related BIP 134</a>)</p>

<p>Why aren't they used instead of Segwit? It seems that they solve the exact same issues as Segwit, in a more clear way. </p>

<p>The only issue I can think of is hard-fork vs. soft-fork, which is indeed an important issue, but if the code was cleaner, it's probably better to hard-fork. Also there are plans to hard-fork anyway by some miners, why aren't those for flextrans instead of segwit+large blocks?</p>

<p>Classic people themselves write <em>There is no reason to choose SegWit over Flexible Transactions</em> <a href="https://bitcoinclassic.com/devel/FlexTrans-vs-SegWit.html" rel="nofollow noreferrer">here</a></p>

CC BY-SA 3.0
2017-07-02T14:12:53.233Z
I have found a [reddit thread with *some* discussion](https://www.reddit.com/r/btc/comments/5ijtzv/flextransvssegwit_by_tom_zander_of_bitcoin_classic/), but as bitcoin discussions go, it very quickly goes into personal attacks.
Karel Bílek
CC BY-SA 3.0
2017-07-02T14:17:56.717Z
Better discussion here - https://bitcointalk.org/index.php?topic=1822954.0
Karel Bílek
<segregated-witness>
What are the positives and negatives of "Flexible transactions"?
Karel Bílek
# What are the positives and negatives of "Flexible transactions"?

(Asked by: username_0 on 2017-07-02)

What are the positives and negatives of [Bitcoin Classic's Flexible Transactions](https://bitcoinclassic.com/devel/Flexible%20Transactions.html)? ([related BIP 134](https://github.com/bitcoin/bips/blob/master/bip-0134.mediawiki))

Why aren't they used instead of Segwit? It seems that they solve the exact same issues as Segwit, in a more clear way.

The only issue I can think of is hard-fork vs. soft-fork, which is indeed an important issue, but if the code was cleaner, it's probably better to hard-fork. Also there are plans to hard-fork anyway by some miners, why aren't those for flextrans instead of segwit+large blocks?

Classic people themselves write *There is no reason to choose SegWit over Flexible Transactions* [here](https://bitcoinclassic.com/devel/FlexTrans-vs-SegWit.html)

**Tags:** segregated-witness

> **Comments:**
> **username_0**: I have found a [reddit thread with *some* discussion](https://www.reddit.com/r/btc/comments/5ijtzv/flextransvssegwit_by_tom_zander_of_bitcoin_classic/), but as bitcoin discussions go, it very quickly goes into personal attacks.  
> **username_0**: Better discussion here - https://bitcointalk.org/index.php?topic=1822954.0  

---

## 1 answers

### Answer by username_1 on 2017-07-02. Score: 4 | Accepted answer

> Why aren't they used instead of Segwit? It seems that they solve the exact same issues as Segwit, in a more clear way.

Segwit existed long before FlexTrans first came out and was almost ready for release by the time FlexTrans was even conceived. It has received far more testing and review than FlexTrans. In order to deploy FlexTrans, it would need to have much more testing, and have much more review.

Furthermore, FlexTrans requires a hard fork and for wallet developers to completely rewrite their serializers and deserializers to understand the FlexTrans format. Since Segwit is really just an extension of the current transaction format, it only needs a soft fork. This means that people can upgrade their software when they are ready and wallet developers only need to slightly modify their software in order to support segwit. They can also do so at their own pace. FlexTrans would require every wallet developer to perform a full rewrite or a new addition to their code which adds complexity and is more error prone. The FlexTrans format itself is also exotic and much more complex than the current format, and that can lead to potentially disastrous bugs.

Lastly, a hard fork to FlexTrans only transactions would completely break every single transaction in-flight at the time of the fork. It would make every single unconfirmed transaction that uses the current format invalid by the new hard fork rules, so every single unconfirmed transaction would need to be remade in the FlexTrans format. This also causes issues for transactions that have a lock time and the private keys necessary to spend those lock-timed coins have been lost/thrown away.

If a FlexTrans hard fork were to allow the current transaction format, then it wouldn't solve any problems. People would just keep using the current transaction format since using FlexTrans has no requirements to switch to using it. At least with segwit, if you have segwit outputs and want to spend from them, you must use the segwit transaction format. There is no such requirement to use FlexTrans. Furthermore wallet developers would then have even more complexity as now they need to have code that figures out when to use the current transaction format and when to use FlexTrans for serializing and deserializing a transaction. That is additional complexity and possibility for failure.

Therefore Segwit is preferred over FlexTrans. Segwit breaks less things, is easier to implement, and is backwards compatible, all of which FlexTrans is not.

> **Comments:**
> **username_0**: Can you please note in the answer that the serialization format (CMF - sort-of-binary XML) is exotic and adds complexity (and possible bugs)? It's what sticks the most to me when I am reading the specs and the discussion around it.  

---

