nopara73 / ZeroLink

The Bitcoin Fungibility Framework
MIT License
348 stars 76 forks source link

Evaluate if makes a difference: Require Bech32 for higher anonymity set? #64

Open nopara73 opened 6 years ago

nopara73 commented 6 years ago

https://twitter.com/hrdng/status/955516803425464320

The main difference is that P2SH-wrapped segwit puts the witness program in the redeemScript, adding 22+ bytes when you spend the input, but native segwit puts the witness program is the scriptPubKey and leaves the whole scriptSig blank.

@harding

harding commented 6 years ago

Native segwit (bech32) is cheaper but still extremely rare:

$ bitcoin-cli getblock $( bitcoin-cli getbestblockhash ) 2 | grep type | sort | uniq -c | sort -n
      1             "type": "witness_v0_keyhash"
      4             "type": "witness_v0_scripthash"
     19             "type": "nulldata"
   1013             "type": "scripthash",
   5202             "type": "pubkeyhash",

You might want to wait for more people using it before adopting it in any situation where you want your transactions to blend into the background noise.