bip350 bech32m – Does two witness addresses with same witnessProgram but with different witness version has the same owner

0
5


It depends.

In general, this isn’t the case. It could that this holds true for hypothetical witness versions that could be introduced in the future.
However, it is not true specifically for P2WSH (the bc1q address you posted) and P2TR (the bc1p address you posted). In fact, if you ever see two such address, it is almost certainly the case that one is unspendable.

  • P2WSH programs encode a SHA256 hash of a script.
  • P2TR programs encode the X coordinate of a (possibly, and likely) tweaked public key.

It is unfathomably unlikely that someone could find a public key they have the private key for, whose X coordinates match the hash of a script they know and can spend.



Source link

Leave a reply