Questions tagged [bech32-address]
A checksummed base32 format, "Bech32", and a standard for native segregated witness output addresses using it.
114
questions
2
votes
2
answers
91
views
Get the scriptPubKey from a Taproot address
I have this function that converts a Bitcoin private key as an integer to a public key and an address.
def get_seg_v1_from_pkey(imported_key):
imported_key_toint = int(imported_key)
...
0
votes
1
answer
31
views
How to explore hardened addresses in bitcoin core descriptor wallet
I created an blank descriptor wallet and imported a xprv key.
importdescriptors '[{ "desc":"wpkh(tpr..../0h/*h)#td3snsa4", "timestamp":"now", "internal&...
4
votes
1
answer
1k
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?
0
votes
1
answer
41
views
When a bc1 address is serialized, how does one deserialize it?
I'm looking into bc1 addresses and I want to verify that the method I've implemented for generating bc1 addresses is correct. While I'm confident that I'm generating correct bc1 addresses I just had a ...
1
vote
1
answer
140
views
how do I import a private key corresponding to bech32 address to bitcoin-core?
Example address
bc1q69wqlexdn250purgskahfj9pg2f3ylg82vgy9m
private key (WIF)
KyVWvid6fC5WXHrV35ZkxqXgXsYrE9mPxMpusWBFiF771y2AYZrz
How can I import this into an existing wallet (Bitcoin-qt)?
I tried ...
2
votes
1
answer
95
views
Bitcoin Exchange only sends funds to P2PKH and P2SH addresses, but my address is Bech32. What can I do to get that fund into my account?
This is the email that I've received from my exchange:
There are three bitcoin address formats currently in use:
P2PKH addresses which begin with the number 1. P2SH addresses
starting with the ...
7
votes
2
answers
247
views
Why doesn't signet use a unique bech32 prefix?
I noticed that signet and testnet both use tb1 addresses. Why doesn't signet use a unique prefix that distinguishes it from testnet?
8
votes
3
answers
7k
views
Benefits of Bech32 addresses?
In Bitcoin core, when generating a new address for receiving a payment, you get this dialogue:
There is a tick-box for "Generate Bech32 address".
I understand that this is a relatively new feature ...
1
vote
0
answers
133
views
Importing BIP-84 keys to Bitcoin Core or similar?
I generated a mnemonic and keys using the BIP-84 scheme and sent funds to a public address from that scheme over time. I have been using this as a paper wallet, unattached to any wallet software.
I ...
1
vote
0
answers
43
views
Is there any way to generate bc1... adresses in command line Electrum?
I can create standard or segwit wallet. But no matter which one I created the only addresses I get is 1....
For example:
$ electrum createnewaddress
1FeE4ZGaSM38f6TxKzKMbCNjwbne6oLQPt
Is there way to ...
0
votes
1
answer
55
views
How many unique Taproot addresses (eg pubkeys) are possible?
Given that Taproot (SegWit v1) addresses are basically equivalent to a public key -- does that mean that there are a full 2256 possibilities? Or is the overall number of possible addresses reduced in ...
0
votes
1
answer
149
views
bech32 plus taproot equal bech32m [closed]
need help for one question please !
what can I do with a address bech32 today ?
my old address bech32 must be changed level up to bech32m (taproot) ?
For find, and see my transactions ? On blockchain ?...
1
vote
2
answers
121
views
Is the witness `version` of a bech32 address required to "send spendable funds" to the address?
Let's assume Alice has Bob's bech32 address (BC1QW508D6QEJXTDG4Y5R3ZARVARY0C5XW7KV8F3T4).
After decoding the address Alice knows that the address has a witness version of 0 AND 20 bytes of a hash (32 ...
0
votes
2
answers
376
views
Bitcoin Bech32 address validation
Bech32 addresses start with bc1 on the main net and tb1 on the test net.
I want to know whether a segwit address is valid or not.
How can I check that segwit addresses are correctly inserted?
0
votes
2
answers
221
views
Bech32 encoded address to scriptPubKey
My goal is to parse a BTC transaction and validate if the transaction was sent to a given BTC address. So I need to transform a BTC address to the scriptPubKey used in the transaction.
I got this ...
0
votes
1
answer
73
views
Keypath spending: Verify destination address across address formats [duplicate]
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 ...
2
votes
2
answers
175
views
Can one infer that a bc1 address is multisig?
Studying privacy and security implications of revealing if a bc1 address belongs to a multisig wallet vs a regular wallet.
I do notice that multisig bc1 addresses are longer than regular ones… P2WSH (...
1
vote
1
answer
2k
views
understanding bech32 Addresses / BIP173 question
I'm trying to understand the code from the BIP173. I read the BIP, the links to RFC3548 or z-base-32, the base32 proposal by Mark Friedenbach, and some posts here.
Q1: how to interpret script handling?...
0
votes
1
answer
105
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.
...
1
vote
2
answers
258
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 ...
3
votes
2
answers
2k
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: "...
14
votes
1
answer
764
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?
1
vote
0
answers
420
views
crypto.com defiwallet sends bitcoin to random segwit address if a bitcoin taproot address is selected after confirmation of the correct address [closed]
UPDATE: Crypto.com acknowledge the bug and refunded the full amount, at the time of writing this update the crypto.com team confirmed that they are working on fixing the bug and the defi wallet will ...
0
votes
1
answer
69
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 ...
1
vote
0
answers
189
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-...
2
votes
0
answers
46
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 ...
0
votes
1
answer
210
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....
2
votes
1
answer
110
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 ...
1
vote
1
answer
135
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 ...
1
vote
2
answers
89
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,...
22
votes
1
answer
7k
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 ...
1
vote
2
answers
389
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 ...
6
votes
1
answer
2k
views
Which block explorers recognize bech32 addresses?
At this time, blockchain.info doesn't. Neither does blockchair or blockcypher.
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?
0
votes
1
answer
357
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 ...
15
votes
4
answers
17k
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?
2
votes
1
answer
522
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 ...
2
votes
1
answer
867
views
How to generate a P2WSH address
getnewaddress "" bech32 generates a P2WPKH address (e.g. tb1qw508d6qejxtdg4y5r3zarvary0c5xw7kxpjzsx).
How can I generate a P2WSH address (e.g. ...
2
votes
1
answer
640
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 ...
3
votes
3
answers
12k
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?
5
votes
1
answer
2k
views
How do I Derive Bech32 Address from P2WPKH Output Script?
I am building a small script to decode the raw coinbase transaction data into a human-readable viewer without external scripts to better my understanding around the subject.
I've noticed that there ...
2
votes
2
answers
2k
views
Which wallet libraries officially intend to use Bech32 addresses, and will the addresses generated by them be compatible?
I use several bitcoin wallets, and I would like to try Bech32 addresses when they come out.
I initially thought to make a GitHub issue for Greenbits, but it seemed more appropriate to just ask such a ...
2
votes
1
answer
465
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 ...
1
vote
2
answers
747
views
Is a P2WPKH address synonymous with a Bech32 address?
BIP142 when encoding a segwit P2WPKH address is using a base58 address format (address p2xtZoXeX5X8BP8JfFhQK2nD3emtjch7UeFm in the example).
I understand that BIP142 predates BIP173 but are P2WPKH ...
17
votes
2
answers
9k
views
How do bech32 addresses compare to P2SH addresses in transaction size?
Bech32 (starts with bc1) and P2SH (starts with 3) can both be used for segwit transactions. I know bech32 is supposed to create smaller transactions, but I'd like to know how much smaller (than P2SH). ...
5
votes
2
answers
601
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.
2
votes
3
answers
216
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?
11
votes
2
answers
871
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 ...
3
votes
1
answer
10k
views
What to do when a website says that my bc1... address is invalid?
I used local Bitcoins wallet to send bitcoin to my bitcoin wallet. But it said wrong address
7
votes
2
answers
3k
views
How do transaction costs compare between Bech32 addresses and legacy Bitcoin addresses?
Now that Electrum 3 supports Bech32 addresses for segwit, when sending coins to a legacy address are fees higher or cheaper?