2022 Developer Survey is open! Take survey.

Questions tagged [bech32-address]

A checksummed base32 format, "Bech32", and a standard for native segregated witness output addresses using it.

Filter by
Sorted by
Tagged with
1 vote
0 answers
313 views

crypto.com defiwallet sends bitcoin to random segwit address if a bitcoin taproot address is selected after confirmation of the correct address [closed]

When scanning the QR code of a taproot address with the DefiWallet of crypto.com the app will correctly show the taproot address, not give any warning of unsupported format or other error message (...
user avatar
0 votes
1 answer
33 views

How does Bitcoin Core know about a new address created in a different wallet?

Using importprvkey, I imported all the private keys of an Electrum wallet into a Bitcoin Core wallet (courtesy the electrum2core script; 🎩-tip: somedude). Then, in Electrum, I created a new bech32 ...
user avatar
  • 4,307
1 vote
0 answers
40 views

Solution for P2SH non-standard derivation paths

Creating P2SH (Nested Segwit) addresses from an imported BECH32 (Native Segwit) XPUB, when running Bitcoin Core (pre-2020 software) wallet (as watch-only, with private keys disabled) can lead to non-...
user avatar
2 votes
0 answers
27 views

Bitcoin core imported wallet

I have a friend that has an issue with his core: He generated a wallet with coldcard, imported in bitcoin core.. received on both bech32 addresses and nested ones. Lost access to that pc and now when ...
user avatar
  • 113
0 votes
1 answer
63 views

Bitaddress.org gives me legacy address instead of Bech32 address

I have my private key, but when I put it into bitaddress.org, it gives me a legacy address (starting with "1") and not the Bech32 address (starting with "bc1") that I was expecting....
user avatar
2 votes
1 answer
61 views

Why does SegWit implement new address formats?

I would consider myself quite up-to-par with the concept and in-depth functionalities of SegWit (segregated witness). I just don't understand one key aspect of it; P2SH and bech32 addresses. why on ...
user avatar
1 vote
1 answer
72 views

Taproot: Multisig Keypath - different bech32 addresses for same keys

I have a keypath (which is a 2-of-2 multisig) and a tweak attached to it, this tweak is responsible for the scriptpath. The scriptpath only has a backup public key (used rarely). Alice + Bob's public ...
user avatar
  • 133
0 votes
1 answer
36 views

Keypath spending: Verify destination address across address formats

In a Tapscript Keypath Transaction (there is an unrelated Scriptpath too) I can have outputs to all possible address? (I.e. to P2PKH, P2SH, P2WPKH / P2WSH and P2TR) I have a list of addresses in all ...
user avatar
  • 133
1 vote
2 answers
61 views

Do Bech32 transactions map to 1-prefixed-addresses?

I recently installed Bitcoin Core and let it synchronize just to play around with different buttons in the latest version and see if I still understand it. One thing I noticed are the Bech32 addresses,...
user avatar
  • 163
21 votes
1 answer
5k views

Is it possible to convert a taproot address into a native segwit address?

A few days ago I requested a BTC withdrawal on Binance, I used a bc1p address and the request went through as usual without any issue or warning. (my first time using taproot address). Binance checked ...
user avatar
  • 213
0 votes
1 answer
111 views

Witness Version bech32 and P2TR

I don't fully understand the meaning of the witness version byte. I am not sure if I confuse the address format prefix bc1 with the witness version. My understanding: The extra byte reserved for the ...
user avatar
0 votes
0 answers
17 views

How to generate a 62 character bc1 address [duplicate]

I know bech32 addresses can have 42 or 62 characters. How can I generate a 62 character address? I couldn't find the option in Bitcoin Core.
user avatar
0 votes
1 answer
215 views

Compute checksum for Bech32 address

The Bitcoin Wiki page for Bech32 addresses explains how one can create a bech32 address from a public key. In step 6 it says- Compute the checksum by using the data from step 5 and the H.R.P (bc for ...
user avatar
  • 103
2 votes
1 answer
322 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
  • 121
2 votes
1 answer
403 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
4 votes
2 answers
385 views

Why are P2WSH addresses larger than P2SH addresses?

One would, perhaps naively, assume that both addresses are hashes of scripts and therefore ought to be the same size.
user avatar
2 votes
3 answers
195 views

How hard is it for an exchange to adopt native segwit? Is it not as simple as updating the address regex checker on the front-end?

Just wondering, maybe I'm missing something. Are there changes on the backend needed to be implemented as well? Not as simple as changing the regex validation on the front end?
user avatar
  • 123
0 votes
2 answers
600 views

how do i convert bc1 address to hex? for coinbase transaction

Im trying to create a coinbase transaction so that I can do some mining. I have a bech32 bitcoin address, how do I convert that to hex so that I can include it in the coinbase transaction data? ...
user avatar
0 votes
1 answer
89 views

Verifying a P2WSH by hand

To test my understanding of the signing and verifying process i tried to verify some random Bitcoin transactions by hand. Sadly i got stuck with a P2WSH transaction, i choose the following transaction ...
user avatar
  • 3
3 votes
1 answer
474 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
0 votes
1 answer
52 views

How I can delete useless addresses?

In Bitcoin app wallet I created many addresses, which I need to delete. I tried to press, clamp, enter the settings. Nothing helped. Is it possible to remove unnecessary addresses?
user avatar
4 votes
1 answer
390 views

Why did bech32 define a new base32 encoding scheme rather than use an existing one?

There are multiple existing base32 encodings (RFC 3548/4648, z-base-32, Crockford's etc). Why did bech32 define a new one rather than use an existing one?
user avatar
4 votes
1 answer
671 views

Can you break down what data is encoded into a bech32 address?

Can you break down what data is encoded into a bech32 address? e.g. bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4 How do bech32 addresses on testnet, regtest, signet compare?
user avatar
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
  • 62.5k
9 votes
1 answer
4k views

Why does Taproot require a new address format?

Dawid Ciężarkiewicz asked on Twitter: Hey #bitcoin ers. I'm trying to figure out why taproot needs a new address format, as I missed it. If you have a good link or something - please share. I thought ...
user avatar
  • 62.5k
2 votes
2 answers
927 views

What is needed to generate a bech32 address?

So I wrote a vanity address generator in c# with the NBitcoin lib. When I use the private key used to generate the address and input it in Mycelium it outputs a different address. This does not occur ...
user avatar
1 vote
2 answers
645 views

Can a single wallet generate (and use) both SegWit and non-SegWit addresses?

Is a Segwit wallet able to generate and use non-Segwit addresses? I'm using Bitpay's Bitcore to create wallets and generate new addresses for the users of my platform. I'm also using Bitcore-wallet-...
user avatar
-1 votes
1 answer
255 views

How to get the raw signature data of a transaction?

With the use of segwit, signature data is no longer part of transaction body and thus can’t be retrieved from block explorers. So is there a Bitcoin rpc method in order to get it directly without ...
user avatar
1 vote
1 answer
1k views

Why is BIP32 root key different for different standards(purposes)?

When generating key on https://iancolemen.com/bip39/, the BIP32 Root Key changes as I change the derivation path tab, e.g. BIP32, BIP44, BIP39 etc. Why is this the case? Isn't BIP32 Root Key the m at ...
user avatar
  • 189
1 vote
1 answer
133 views

How Many Clients Could Not Send to Bech32 Addresses?

For my client, I have set up a custom BTC payment solution using BTCPay Server. The wallets I have configured in BTCPay Server produce only bech32 (bc1xxx) addresses for payments (cheapest ...
user avatar
  • 309
1 vote
1 answer
609 views

how to generate bech32/segwit address from pubkey in golang

I am trying to generate bech32/segwit address in golang with the following code: var pubkey *btcec.PubKey address, err := btcutil.NewAddressPubKey(pubkey.SerializeCompressed(), chainParams) if err != ...
user avatar
  • 189
4 votes
1 answer
3k views

Are Bitcoin addresses case sensitive?

I sent $20 to my wallet ex. bc1qa4dk0fqvw7jfpvzgy9xpf7572kv9env9y748ct. But instead I sent it to that address in all caps. I haven't received the money and it's been 3 hours. Are BTC addresses cap ...
user avatar
1 vote
0 answers
926 views

Bitcoin address to Hash160 for brainflayer

I took a script to translate the bitcoin address to hash160: http://lenschulwitz.com/b58/base58perl.txt replaced the lines for working with the list from the file: #Sample test taken from https://en....
user avatar
0 votes
0 answers
147 views

Generate p2sh-segwit and address bech32

When I use bitcoin-cli getnewaddress "" "p2sh-segwit" which kind of script is inside And can I convert if in bech32?
user avatar
3 votes
1 answer
127 views

Checksum P2WSH failed

My goal is replicate the same P2WSH of https://en.bitcoin.it/wiki/BIP_0173 tb1qrp33g0q5c5txsp9arysrx4k6zdkfs4nce4xj0gdcccefvpysxf3q0sl5k7 I'm able to generate the "first" part before checksum. ...
user avatar
1 vote
2 answers
215 views

Why does Bisq claim that my "native segwit" receive addresses are "invalid"?

Every time I'm transferring over the funds from Bisq to Bitcoin Core, I get the error: Invalid address. (Or something along those lines.) Only after generating another receive address in Bitcoin ...
user avatar
  • 11
14 votes
4 answers
14k views

Are all three Bitcoin address types interoperable (legacy, segwit, native segwit)?

is it possible to send transactions back and forth between all 3 address types (legacy, segwit, native segwit-bech32)? Or is one of them not able to send to another?
user avatar
4 votes
1 answer
2k views

How to generate legacy receiving address in Bitcoin core 0.19.x.x

I must have missed the memo. I see Bitcoin Core 19.1.0.1 defaults to generating Bech32 receive addresses (prefixed with "bc1"), and offers a checkmark to generate P2SH addresses instead (prefixed ...
user avatar
  • 163
1 vote
3 answers
9k views

Convert bech32 Bitcoin address to legacy

I know that similar tools exist for BCH (e.g. https://cashaddr.bitcoincash.org/). Is there a way to convert a native segwit bech32 Bitcoin address to a legacy format?
user avatar
4 votes
1 answer
249 views

Why can't bech32 addresses be mixed case?

I know that they cannot be mixed case due to their BIP but what was the intention behind this idea and would it be problematical to convert a mixed case bech32 address to a lower/upper case bech32 ...
user avatar
0 votes
0 answers
170 views

Creating bech32 address on bitcoin core automatically generate another address on lightning network

my lightning network backend is bitcoind. Interesting when I execute getnewaddress label bech32 another bech32 address is automatically generated. I found it because at the lightning network console ...
user avatar
  • 161
1 vote
1 answer
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
  • 669
10 votes
2 answers
714 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
  • 860
4 votes
1 answer
838 views

bech32 addresses beginning with "bcrt..." on regtest

I'm playing around with regtest and wanted to generate a bech32 address. My Bitcoin Core version is 0.18.0. I ran getnewaddress "" bech32 and got an address that began with bcrt, like this one : ...
user avatar
  • 447
7 votes
2 answers
704 views

Most efficient way to store Segwit Address in a database

This is not a duplicate of What is the most efficient way to store bitcoin addresses in a database? but it's the same question except I need a segwit answer. Let's say I wanted to store every ...
user avatar
0 votes
0 answers
517 views

Mycelium not reading segwit bech32 (bc1) addresses from a private key

I'm trying to import my bitcoin private key into the Mycelium android wallet, but it keeps showing up as the legacy address that starts with 1xxx. I sent some coins to the bc1 address and I verified ...
user avatar
1 vote
1 answer
70 views

For the 3 bitcoin address types, which can send to each other? Can a valid tx be created that spends to an unspendable address?

I'm just getting started with using bech32 addresses instead of legacy addresses, and I'm not familiar with how the legacy vs segwit compatible vs bech32 addresses play with each other. Can I get an ...
user avatar
1 vote
2 answers
368 views

Bitcoin API with bech32 support

Since a while, I have been using the insight-api to view bitcoin transactions. However, recently I have found out that bech32 addresses are not supported. Now I try to fix this issue and I am open ...
user avatar
0 votes
1 answer
37 views

Why tx informations of a specific transfer in BITCOIN protocol will send to many IP addresses?

Recently I send a specific value from a wallet to another wallet and Simultaneously I caputred the related traffics in source and destination. after that, I found that value and it's related address ...
user avatar
  • 125
0 votes
2 answers
57 views

which is the relationship between ouput adresses and their value in a specific transaction?

Some days ago, I write a program to extract output addresses and its value in tx messages of a sample bitcoin pcap. extracted addresses are all valid and we can find them in block explorers. after ...
user avatar
  • 125