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&...
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?
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
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
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
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.
...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?
0
votes
2
answers
1k
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?
...
0
votes
1
answer
152
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 ...
3
votes
1
answer
693
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 ...
0
votes
1
answer
61
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?
5
votes
1
answer
650
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?
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?
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?
11
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 ...
2
votes
2
answers
1k
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 ...
1
vote
2
answers
862
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-...
-1
votes
1
answer
412
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 ...
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 ...
1
vote
1
answer
150
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 ...
1
vote
1
answer
1k
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 != ...
4
votes
1
answer
4k
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 ...
1
vote
0
answers
1k
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....
0
votes
0
answers
209
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?
3
votes
1
answer
145
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.
...
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 ...