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

  • 1
    Do 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 Nov 26 '18 at 3:40
  • Both, in other words, nothing but segwit addresses using bech32 should be created, accepted or parsed. – picolo Nov 26 '18 at 4:08
  • 2
    That 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 Nov 26 '18 at 5:18
  • I am hard forking Bitcoin core by changing the code – picolo Nov 26 '18 at 15:31

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.