How to make segwit transaction and bech32 mandatory

-2

Is it possible to make segwit transactions (and possibly segwit address: Bech32) mandatory in the Bitcoin Core code?

In other words, when a transaction is created using the wallet, the transaction should be bech32 based segwit and when a transaction is passed to the node, the node should ensure its a segwit transaction with bech32 addresses.

This is a hard fork of Bitcoin and I am considering changing the code

picolo

Posted 2018-11-26T03:25:56.947

Reputation: 107

1Do you mean in the wallet code (so applying to transactions created and accepted), or in the consensus rules (applying to all transactions in the network)?Pieter Wuille 2018-11-26T03:40:13.197

Both, in other words, nothing but segwit addresses using bech32 should be created, accepted or parsed.picolo 2018-11-26T04:08:13.550

2That requires a change to Bitcoin's network rules, which a vast agreement among the ecosystem. As such a change would break almost all wallet software, that seems highly unlikely to happen.Pieter Wuille 2018-11-26T05:18:25.180

I am hard forking Bitcoin core by changing the codepicolo 2018-11-26T15:31:53.927

Answers

1

Bech32 is address encoding and cannot be enforced on the Bitcoin network as it is not part of the protocol.

James C.

Posted 2018-11-26T03:25:56.947

Reputation: 2 183