Pay to Witness Public Key Hash is the native SegWit v0 single-sig output format. P2WPKH addresses are Bech32 encoded and start with the prefix `bc1q`.
Questions tagged [p2wpkh]
52 questions
30
votes
1 answer
What is P2PK, P2PKH, P2SH, P2WPKH - ELI5
Explain like I'm 5 years old and my other half of the brain is surgically removed :) I don't want to put a lot of stress on my brain
Also what is the difference between BTC held in P2SH and Unspent P2SH Output…
user380208
- 613
- 1
- 6
- 11
7
votes
1 answer
In simple terms, what are the major differences between P2WPKH and P2WSH bech32 addresses?
I've read over the bip173, bip141, and bip143 specifications and they're a bit too technical to get at the simple answers I'm looking for.
kawthuldrok
- 303
- 1
- 10
6
votes
1 answer
Can I mix P2PKH and P2WPKH inputs in the same transaction?
I'm trying to increase my knowledge of bech32 and SegWit and to that end am working my way through this explanation.
Here's a hypothetical situation I'm trying to understand. Let's say Jamal has access to a a couple of UXTOs.
UXTO #1: 10 BTC…
Festus Martingale
- 763
- 7
- 13
6
votes
1 answer
Is there an economic incentive to switch from P2WPKH to P2TR?
I have multiple times seen people argue that there is “no economic incentive” to switch from P2WPKH to P2TR. I know that the sum of input and output weight on P2WPKH and P2TR are very similar, but how does that actually work out in detail?
Murch
- 71,155
- 33
- 180
- 600
6
votes
1 answer
What is the largest multisig quorum currently possible?
Bitcoin script allows for a UTXO to be (un)encumbered by an N-of-N signature. When N is 1, this is referred to as a single signature.
What are the limits of N for this application?
What is the technical cause of this limitation? Is it blockspace?…
Matthias
- 61
- 3
5
votes
1 answer
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 are many different types of output script types…
KappaDev
- 983
- 1
- 9
- 23
4
votes
0 answers
To sign raw transaction with Segwit Address in the TestNet
I am using Bitcoin core 0.14.1 testnet. I created a Segwit address. transfer some coins to this address. Now I want to spend it. I created a raw transaction using console command i.e. createrawtransaction. Now I want to sign it. I tried using usual…
DOLLY PATWA
- 585
- 2
- 9
- 16
4
votes
1 answer
Redeem script for segwit addresses
How does one derive the Redeem Script for the new Pay-to-Witness Pubkey Hash addresses? With existing P2SH it's revealed after providing N number of Public Keys through a createmultisig function in the bitcoin client. Is it the same, just provide a…
m1xolyd1an
- 5,566
- 2
- 14
- 30
3
votes
1 answer
Is the dust output limit the same for p2wpkh and p2wsh?
I've seen mentioned in a few places that the dust limit for an output to be considered standard is minRelayTxFee*3. Based on this, I would expect the dust limit for a p2wsh output to be larger than for a p2wpkh, since CTxOut for p2wsh is larger (43…
Darius
- 779
- 4
- 16
3
votes
1 answer
Can a coinbase transaction have a segwit output?
And more generally speaking, are there any restrictions on the output of a coinbase transaction?
Darius
- 779
- 4
- 16
3
votes
1 answer
Convert WIF to Witness PubKey Hash Address in Go
How can WIF be easily converted to WitnessPubKeyHash in Go?
We need to get the public key from WIF and than calculate witness program as ripemd160(sha256(compressed_pub_key)).
But is there a function in btcutil to convert the public key to…
Kuba
- 131
- 1
3
votes
1 answer
scriptcode, scriptsig, pubkeyscript confusion
I've been banging my head on a desk for a few days trying to understand the segwit protocol properly.
Another roadblock has thrown me off-guard and I am struggling to grasp the concept of "scriptCode:" used in the signature examples of bip0143…
cryptodescriptor
- 55
- 6
3
votes
1 answer
How to quickly find the private key from Segwit P2SH address?
I have a very large list of Segwit addresses for bitcoin, starting with '3' and do not know the corresponding legacy '1' address for them.
How can I quickly find the corresponding legacy address to export the private key from Bitcoin Core?
The…
Joe
- 31
- 3
3
votes
1 answer
Why does SegWit offer P2SH nesting?
I'm reading about SegWit and the BIP 141 in particular and I don't understand what is the motivation behind the P2SH nesting.
At first I thought the P2WPKH is not valid on non-upgraded nodes, so P2WPKH nested in P2SH is a way to make this a soft…
tsusanka
- 357
- 3
- 7
3
votes
1 answer
How do the fees for taproot transactions compare to P2WPKH?
How would the most basic taproot transactions (not involving scripts) compare to P2WPKH transactions in terms of vbytes or fees?
Darius
- 779
- 4
- 16