Questions tagged [witness-data]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
114 views

Redeem script. script hash, witness script and witness program

I have a little confusion about naming in Bitcoin. Redeem script is the conditions that will be satisfy. For example P2PKH inside P2SH OP_DUP OP_HASH160 <PubKHash> OP_EQUALVERIFY OP_CHECKSIG ...
0
votes
2answers
111 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 ...
3
votes
1answer
121 views

Confusion about Addresses

I have a little bit confusion about addresses segwit and not segwit. I can see P2WPKH and P2WSH from this link https://en.bitcoin.it/wiki/BIP_0173, and they are segwit and start with bc (mainnet) or ...
1
vote
1answer
90 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 ...
1
vote
1answer
40 views

Re-index/Re-download from specific height?

I seem to have discovered corrupt blocks on one of my nodes. The node is on all the time to keep up to sync and the rest of my nodes connect to it to retrieve block data when they need to sync. The ...
3
votes
1answer
76 views

Why does a same transaction signed separately have different witness values?

I signed a bitcoin testnet transaction using nbitcoin library and got an output: ...
0
votes
0answers
32 views

How do I ask for witness data from a Bitcoin full node?

So, I'm trying to build a Bitcoin block explorer using my own Python library. I'm doing it just as an exercise to better understand how Bitcoin works under the hood. Right now, when I send a block ...
1
vote
0answers
64 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 ...
1
vote
2answers
66 views

How does storing the witness outside of the block prevent malleability?

I have some question on how segregated witness work. I'm reading this post and in the answer exist this phrase Since signature data (witness data) is stored outside the transaction (and outside ...
1
vote
1answer
164 views

Concept of Block weight and segwit are still unclear

It seems like duplicated question, but i read many articles and posts to undestand about segwit. Below links are something i read What is block weight and how is it different from block size? After ...
1
vote
1answer
61 views

How to generate an output address from output scrips which start with 0x00?

A few days ago, I got a BITCOIN traffic which contains some tx message. some of tx messages contain witness data. I want to produce all output addresses from transaction output scripts. I extracted ...
3
votes
1answer
46 views

Would signature aggregation reduce the largest feasible blocksize

If a Schnorr signature aggregation scheme were to be integrated into Bitcoin. Would the reduction in witness data versus non witness data (need less bytes for a signature therefore witness data usage ...
5
votes
2answers
738 views

How do virtual size, stripped size and raw size compare between legacy address formats and native segwit?

This answer states that SegWit doesn't reduce transaction size. If this is true, why is it cheaper to send a SegWit transaction?
2
votes
1answer
73 views

Why is the wtxid considered malleable?

Why is the wtxid considered malleable since the transaction is unconfirmed? How can a third-party modify it?
2
votes
1answer
50 views

Does my segwit node only have segwit blocks?

My segwit node makes a gettxout RPC query and checks the scriptPubKey.type is "witness_v0_keyhash" and does things accordingly. To my understanding old nodes have different blocks and if I happened ...
3
votes
3answers
3k views

What is the Witness and what data does it contain?

I've learned about the Segregated Witness but couldn't find info on breaking it down. I know usually when legacy addresses are used the public keys for example will be under Scriptig. With P2SH, I ...
5
votes
2answers
464 views

How does a SegWit node verify a block?

I know that non-SegWit node could verify a block without witness. For SegWit node, is witness necessary to verify a block? Because I know witness are committed as wtxid merkle node in coinbase. What'...
1
vote
1answer
43 views

What happens to witness blocks?

What happens to witness blocks after they are broadcast to other witness nodes? Are they kept or forgotten after some blocks?
1
vote
1answer
407 views

How much will Segwit *actually* increase bitcoin capacity for realistic transactions?

I often see claims that Segwit increases transactions per block by 1.7x to 2x. I'm not sure if this is true, but if I do the math myself, I don't get this number. My understanding is: 1) The “weight”...
2
votes
0answers
180 views

How much will Segwit increase the number of transactions that can fit in each block?

How much weight would the witness data have on the total block size? What is the culminating effect of this on the number of transactions that can fit into each block? Thanks in advance :)
1
vote
0answers
149 views

Parsing a SegWit transaction, what are stack items in witness data

For every input we can have multiple stack items, what do these represent? As a reference this question is helpful Are these defined here? For eg. P2WPKH would have a signature followed by a pubkey, (...