Post
Topic
Board Bitcoin Technical Support
Topic OP
Would P2WPKH v1/bech32m addressee be legal (and usable and spendable)?
by
BTCW
on 01/03/2024, 00:48:29 UTC
We have a public key. We have its RIPEMD(SHA256(pubkey)) hash, a.k.a. HASH160

We can easily construct a valid native segwit address by

Code:
> bitcoinutils.bech32.encode('bc',0,memoryview(bytes.fromhex(kuken_hash)).tolist())
> bc1qmgt5t6d4fx7sh7s626vhr3m7hgcv6kjt450t6x

So far, nothing strange. Works as intended.

But if we change the version from 0 to 1 and disregard all taproot standards, we get a bech32m public address like so:

Code:
> bitcoinutils.bech32.encode('bc',1,memoryview(bytes.fromhex(kuken_hash)).tolist())
> bc1pmgt5t6d4fx7sh7s626vhr3m7hgcv6kjttkgvj0

Good for anything? Will wallets accept it? Will nodes propagate a transaction to it over the BTC network? Can we use normal privkeys to spend from it with, as we do with regular native segwit?

Due to lack of better terminology, we can call them P2WPKH(Bech32m). A thing or not? That's the question.
.