Questions tagged [p2wsh]
The p2wsh tag has no usage guidance.
24
questions
3
votes
2answers
305 views
How to calculate P2WSH signatures with CODESPERATOR?
I read the bip143, but didn't understand how to calculate the scriptCode of p2wsh.
bip143 told us:
A new transaction digest algorithm is defined, but only applicable to sigops in version 0 witness ...
0
votes
0answers
24 views
How do I get the signature and how do I apply it onto my transaction using bitcoin-cli?
Guide link: https://comit.network/blog/2018/06/23/connect-all-the-blockchains/
For context I'm following a guide I found online about how to create a HTLC (Hash-time lock contract) and have it work ...
0
votes
1answer
27 views
Generating P2WSH addresses | Is there a standard WitnessScript?
For the examples below I am going to be talking of 1-of-1 multisig only derived from a single private key.
For P2WPKH, the address is generated using using hash160 of the public key which acts as the ...
0
votes
1answer
47 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 ...
0
votes
1answer
87 views
In practice, are redeemScripts commonly reused?
In regards to P2SH-P2WSH transactions, are Txout-script values identical between transactions? Is it reasonable to expect a business or vendor that accepts bitcoin to be using the same redeemScript ...
-1
votes
2answers
326 views
Generate P2SH-P2WSH
I want to generate P2SH-P2WSH with script P2PKH.
My public key is 027712968e8f2f9dfa79abe10940a3d915a0c95a0b97750881e6201acf2b66da97
SHA256 and RIPEMD160 of Public key
---------- Witness Script ...
1
vote
1answer
65 views
how to find p2sh/p2wsh in utxo set after wallet recovery
i'm trying to understand how wallets remember a redeem script for p2sh/p2wsh for spending, after recovering from their seed, because the utxo set only has the hash in it, right? there are a nearly ...
2
votes
1answer
40 views
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 ...
0
votes
1answer
133 views
Help signing a P2WSH Multisig
I'm trying to construct a transaction in regtest mode that spends from a P2WSH 2-of-2 multisig.
Here is the funding transaction for 5 btc. It also contains a change output for 5 btc.
...
0
votes
0answers
105 views
Bad witness error in P2SH-P2WSH
I've managed to build a P2SH 2-of-3 multisig contract that works, ie I can create addresses, send coins to them, and spend the outputs. Now I'd like to transition that solution to a P2SH-P2WSH, but I'...
1
vote
1answer
121 views
Generate P2WSH native
I want to create P2WSH native like https://en.bitcoin.it/wiki/BIP_0173.
I have already a script to generate P2WPKH and it works, thank the python part and re-arrange group byte works.
I read that ...
3
votes
1answer
98 views
Can a coinbase transaction have a segwit output?
And more generally speaking, are there any restrictions on the output of a coinbase transaction?
0
votes
1answer
71 views
What is the signature digest for Segwit outputs
(Assume there's no OP_CODESEPERATOR)
For standard P2PKH, the signature digest is generated this way:
NewTransaction
settle the TxOuts well
set all TxIn scripts to empty
insert the Previous Locking ...
1
vote
1answer
111 views
What is the scriptCode in a P2WSH transaction?
Let's say I am spending from a 2-of-2 multisig with this script:
...
1
vote
0answers
45 views
How can I check my transaction signature is correct?
I have tried recreating the exact transaction from "Appendix B: Funding Transaction Test Vectors" from BOLT 3 from the Lightning RFCs. My transaction looks exactly the same when parsed, except my ...
1
vote
0answers
83 views
(P2WSH-nestedin-P2SH) Problem in solving question 1+5=6
this is my first question at this platform.
this matter has scratched my head badly, please pay patient to read my question.
i am trying to move traditional p2sh tx into p2wsh-nestedin-p2sh tx and ...
2
votes
0answers
96 views
spend founds from p2wsh address,non-mandatory-script-verify-flag (Signature must be zero for failed CHECK(MULTI)SIG operation) (code 64)
i want spent coin from p2wsh address on btc testnet3 network, i use bitcoinj 0.15.2 build transaction and sign it, use 2/3 multiSig
when i send raw transaction by bitcoin core 0.17.0 command line by ...
5
votes
2answers
3k views
P2WSH, witness_v0_scripthash: how to derive an address
Is there an address associated with P2WSH scripts?
for testnet txid =6717c8971dccbf826790efc16fb357f1e225fed3448247b8556c9f13a6c0ce42, i get:
"vout": [
{
"value": 0.05994165,
"n": 0,
...
4
votes
1answer
1k views
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.
2
votes
2answers
804 views
Constructing a P2WSH address from the BIP173 spec
The BIP173 specification defines how to create Bech32 Segwit native addresses.
In the examples section a public key is given: 0279BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798.
...
1
vote
2answers
966 views
Create Pay to Witness Script Hash in Pay to Script Hash Address
I'm trying to generate a multisignature, segwit compatible address as a P2WSH nested in BIP16 P2SH as described in BIP141. Basically, I want to construct a P2WSH-nested-in-P2SH address from n public ...
2
votes
1answer
678 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. ...
1
vote
1answer
82 views
anyonecanspend final condition of a script can be spotted just by looking at the script hash, without the redeem data?
Consider the following scenario.
Alice, Carol and Bob create and fund a script with the following rules:
if now, alice pubkey, bob pubkey
else
if now+500 blocks, bob pubkey, carol pubkey
else
if now+...
6
votes
2answers
1k views
generate a P2SH-P2WSH address and spend output sent to it
I am attempting generate a P2SH-P2WSH address and then spend an output sent to this address, but when I attempt signing I receive Invalid private key error from bitcoind (v0.15.1.0). So where am I ...