Questions tagged [bip350-bech32m]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
14 votes
1 answer
739 views

Will a Schnorr soft-fork introduce a new address format (i.e. not bech32)

When we (hopefully) soft-fork to Schnorr signatures will the address be indistinguishable from bech32 addresses?
user avatar
11 votes
2 answers
762 views

How does the bech32 length-extension mutation weakness work?

A bech32 address ending with p can be modified be inserting or removing q characters immediately before the final p character to make a new valid bech32 address. Why does this work? Are there any ...
user avatar
  • 900
7 votes
1 answer
2k views

What is the difference between "native segwit" and "bech32"?

People seem to be using "native segwit" and "bech32" interchangeably. Are they really the same thing?
user avatar
  • 64.6k
6 votes
1 answer
974 views

How can I create P2TR addresses with Bitcoin Core 22.0?

I'm trying to test P2TR with Bitcoin Core, and I don't know how to get taproot addresses. How should I create them using 22.0?
user avatar
4 votes
0 answers
254 views

P2TR bech32m mismatch

When attempting to create a p2tr address using the private key 0x0000...01 I get, bc1pmfr3p9j00pfxjh0zmgp99y8zftmd3s5pmedqhyptwy6lm87hf5sspknck9 which does not match the provided test vectors provided ...
user avatar
  • 5,243
3 votes
2 answers
1k views

How to use python reference for encoding a bech32 address?

Could someone provide an example of how to use the python reference implementation for generating a bech32 address? For example, generating a mainnet bech32 address for this scriptPubKey: "...
user avatar
  • 701
3 votes
1 answer
544 views

What problems identified with bech32 addresses have been resolved with the updated bech32m?

What problems identified with bech32 addresses have been resolved with the updated bech32m? I am aware of one problem with the original bech32, namely length extension mutation weakness but I don't ...
user avatar
3 votes
1 answer
160 views

Tests for Pay To Taproot addresses?

I am having trouble finding examples showing a known WIF to a valid mainnet P2TR address. I am working on a tool and want to see if my P2TR conversions/encodings are outputting the correct P2TR ...
user avatar
  • 5,243
2 votes
1 answer
358 views

What is the prefix number, in bytes, of a native segwit address?

I've seen lots of tables on which bytes to use as the prefix for types of addresses. For example 0x00 for legacy addresses starting with a 1. But what's the prefix for native segwit 'bc1q'? I've tried ...
user avatar
  • 131
2 votes
1 answer
429 views

Identifying address types using v1+ segwit outputs

Please correct me if i'm wrong: So, with segwit v0 we know that 20 bytes is equal to P2WPKH, and 32 bytes is equal to P2WSH, and thus we can identify the address type by decoding the 31 byte or 43 ...
user avatar
2 votes
1 answer
61 views

Can you derive the witness program from a taproot address?

Say I have a taproot address with a valid scriptpath (along with the mandatory keypath). Is it possible to derive the witness program (schnorr signature of the taproot key) from the address?
user avatar
  • 1,379
1 vote
1 answer
34 views

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

With BIP 350 a new version of witness is introduced. Take these two address from the mainnet: bc1pmfr3p9j00pfxjh0zmgp99y8zftmd3s5pmedqhyptwy6lm87hf5sspknck9 and ...
user avatar
0 votes
1 answer
27 views

Actively used bech32(m) address with invalid checksum?

The following address uses witness version 0 and its checksum is the one expected for bech32m addresses. However, the combination of the two is not valid. ...
user avatar
  • 260