Questions tagged [segregated-witness]

This tag should be used for questions regarding Segregated Witness (segwit), an activated softfork that defined a new transaction format which doesn't include signatures in the transaction identifier (txid).

Filter by
Sorted by
Tagged with
6
votes
1answer
1k views

Will SegWit allow for m of n multisig with very large n and m?

By reading this answer, I understand that in m-of-n multisig addresses, m and n are limited by the maximum size allowed by the P2SH redeemScript (i.e. 520 bytes). However, in this section of BIP141, ...
3
votes
1answer
322 views

Does the introduction of Schnorr signatures require segwit?

What is the relationship of segwit and Schnorr signatures? Is segwit a prerequisit for Schnorr signatures? I've read that the transaction versioning of Segregated Witness would allow to just assign ...
4
votes
1answer
809 views

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 ...
1
vote
1answer
179 views

Why doesn't getblockchaininfo reveal BIP9 signaling statistics?

An example of the output of getblockchaininfo is here: https://chainquery.com/bitcoin-api/getblockchaininfo The softforks field describes the number of required / found blocks signaling the soft ...
2
votes
1answer
351 views

How to compute double sha256 shown in examples of bip 143?

How do I compute the double sha256 shown in example of bip 143? The example in Native P2WPKH hashPrevouts: dSHA256(...
5
votes
1answer
730 views

Can old wallets redeem segwit outputs it receives? If so how?

There's some conflicting information out there on whether this is true or not. I'm looking for a technical answer to this in the hopes of clearing up future potential confusion over the matter. The ...
2
votes
1answer
155 views

Why is segwit support rising so smoothly?

I expect to see some noticeable random steps (e. g. when some relatively large pool on miner starts to support segwit). Instead I see almost perfect linear dependency. Why is that? I am afraid that I ...
3
votes
1answer
277 views

What new JSON-RPC calls are available with SegWit activation?

For example, I can see getblock now returns two fields for a block's size: size (all data) and strippedsize (base block size, NOT including witness data) Are there any more RPC updates to interact ...
1
vote
0answers
140 views

How to redeem a p2wsh transaction?

Now we know how to redeem standard P2SH and P2PK transactions, but now since witness scripts are no longer included in transactions, how would script evaluation work under segregated witnesses?
5
votes
2answers
1k views

What is a fraud proof?

In Pieter Wuille's presentation on Segregated Witness, he often mentioned "fraud proofs". What exactly are they? Do physical users actually have to go out of their way to manually produce these proofs ...
1
vote
1answer
416 views

How to produce a p2wsh transaction with bitcoin-cli?

With the impending adoption of segregated witness, users reliant on the bitcoin-cli API would require to reconstruct new methods to re-produce more efficient transactions. Is there some guide out ...
2
votes
1answer
664 views

Is there an address format for P2WPKH or P2WSH?

Is there an address format for P2WPKH or P2WSH? If P2WPKH uses the same address format as P2PKH, how does a wallet know which one to use?
9
votes
2answers
2k views

How to get addresses from scriptPubKey in segwit transactions?

I'm running through raw transaction data, and I'd like to be able to gather addresses (where possible). So far, I've made this diagram to help me understand when it's possible to figure out addresses ...
7
votes
1answer
207 views

Why are 0.13.1 Core nodes connecting only to Witness (e.g. 0.13.1) nodes?

I have my Core 0.13.1 node configured to connect to 16 nodes, and invariably I see it connected only to other 0.13.1 nodes, even though, according to bitnodes leaderboard, these nodes form a minority. ...
7
votes
1answer
621 views

When does signaling for SegWit start exactly?

I thought that signaling for SegWit (and other softforks deployed by means of BIP0009) would start with the first block after the Starttime defined in the BIP is reached. Someone claimed that it only ...
4
votes
1answer
222 views

If a block contains no SegWit transactions, does a miner send an (empty) witness?

Also, would that block's Coinbase contain some kind of empty witness commitment?
2
votes
2answers
1k views

What's the purpose of ScriptSig in a SegWit transaction?

Here's an example of a SegWit transaction that also contains data in the ScriptSig field: { "txid": "954f43dbb30ad8024981c07d1f5eb6c9fd461e2cf1760dd1283f052af746fc88", "hash": "...
6
votes
1answer
2k views

How do I enable segwit in Bitcoin Core 13.1?

Bitcoin Core 13.1 includes the segregated witness (segwit) soft-fork. The release notes say: Segregated witness (segwit) is a soft fork that, if activated, will allow transaction-producing software ...
8
votes
1answer
970 views

How do blocks signal whether it supports segwit for the 95% threshold?

Ideally, I'd also like to see graphs that indicate how close we are to segwit adoption and the number of minimum blocks we are away from actual segwit adoption.
2
votes
1answer
1k views

Using segwit and creating Pay-To-Witness (P2WPKH) addresses

I'm going through this guide: https://bitcoincore.org/en/segwit_wallet_dev/ I might be understanding this incorrectly, but it sounds like the users and/or wallet custodian (coinbase, blockchain.info, ...
3
votes
1answer
683 views

How was the 95% miner adoption threshold determined?

SegWit does not need to utilized by all (or even most) nodes in order to be used safely, but it must be adopted by almost all miners in order to successfully minimize or virtually eliminate the risk ...
3
votes
1answer
188 views

How is the transaction's nVersion field changed with segregated witness?

Do transactions have to have a minimum version to denote that they are using seg-wit? What changes have been made to the transaction's version field? The MAX_STANDARD_VERSION is still set to 2 in src/...
4
votes
1answer
175 views

How do you tell if witness data has been tampered with?

If you receive a block, how can you tell whether the witness data has been tampered with between when it was mined and when you received it? Where in the block is the wtxid root, and how do you ...
2
votes
0answers
46 views

What new peer services do segregated witness nodes need to implement?

What new peer services do segregated witness nodes need to implement? In particular, if you want a node to relay both a block and its witness data, how do you request that?
6
votes
1answer
2k views

What does a segregated witness transaction look like?

I'd like to learn how segregated witness works, and I thought the raw transaction data would be a good place to start If this is the structure of current transactions: version | [inputcount] {[txid] ...
4
votes
1answer
150 views

Does segregated witness allow to securely create LN channel opening transactions?

In Rusty Russell's paper about the simplified version of the Lightning Network, some problems about the practical implementation of the opening channel method from the original LN paper are mentioned: ...
4
votes
1answer
828 views

Does the bitcoin testnet3 network support Segwit and OP_CSV?

As far as I know, Segregated Witness and OP_CHECKSEQUENCEVERIFY are the last features needed to be able to fully implement a trustless bi-directional payment channel, from start to finish. (...
2
votes
0answers
57 views

When is the estimated date that segregated witness gets fully implemented worldwide?

I read the news recently that reviews had already been done and that the segregated witness program will be on deployment soon, so when is it expected to be fully adapted worldwide? Or is there a ...
6
votes
1answer
632 views

What is the precise definition of “witness program”?

BIP 141 uses the term "witness program" extensively without, apparently, adhering to a consistent definition. From the heading "Witness Program": A scriptPubKey (or redeemScript as defined in ...
1
vote
0answers
63 views

Can the first part of P2WSH witness data use non-push-data operations?

BIP 141 describes a new kind of authentication template called Pay-to-Witness-Script-Hash (P2WSH). This template moves challenge and response scripts to witness data. The last element of witness data ...
4
votes
1answer
110 views

Does any current SegWit or blocksize increase proposal also seek an increase in the OP_RETURN byte limit?

Does any current SegWit or blocksize increase proposal also seek an increase in the OP_RETURN byte limit? https://en.bitcoin.it/wiki/OP_RETURN Are there any current pull requests that seek an ...
12
votes
1answer
1k views

How many more transactions per second will be possible with SegWit?

On a percentage basis compared to the current theoretical limit how many more transactions per second will be possible after SegWit? Will the answer to number 1 scale linearly with block size ...
4
votes
1answer
411 views

What is the status of the “Hong Kong Agreement”

Are the bullet points below still valid? We understand that SegWit continues to be developed actively as a soft-fork and is likely to proceed towards release over the next two months, as originally ...
11
votes
3answers
2k views

How to track Segregated Witness adoption rates

How can I find out what the current Segregated witness adoption rate is, so as to see how it is progressing towards the 95% readiness required for it to activate.
8
votes
3answers
677 views

How would I explain SegWit to a non-technical friend?

How can I explain the potential ease of scaling and feature benefits of Segregated Witness to a non technical friend? How can I explain the potential drawbacks of Segregated Witness in a non ...
7
votes
2answers
350 views

segregated witness adoption

What happens if segregated witness never reaches the 95% adoption threshold from miners? Will it still take effect for those transactions where the miners have adopted it?
2
votes
0answers
98 views

A common criticism of Segregated Witness is that it is “unnecessarily complex”. Why is it chosen over alternatives?

Segregated Witness (SegWit) is well-along the way to being implemented and deployed as a soft-fork. Facts: SegWit eliminates most forms of transaction malleability. Discounts input scripts in ...
6
votes
3answers
275 views

If SegWit only increases the capacity to only 2-4x only. Wouldn't we have the same issue in a few years again?

If I understand correctly. SegWit is one of the solutions to the full 1MB block problem that doesn't require a hard fork. But I've read this only increases the 1MB to maybe about 2-4x only. If that is ...
3
votes
1answer
348 views

SegWit and SPV-mining. What if…?

Is the following scenario valid? Some unhonest segwit mining pool takes top-1000 segwit utxo and mines a block at height N with a transaction which transfers all funds to his p2pkh address This block ...
5
votes
3answers
246 views

Why is the witness data fee discounted by a factor of four?

I've read that it encourages users to consolidate UTXO sets. How would it be doing that?
16
votes
2answers
405 views

How thoroughly has Segregated Witness been tested?

I've encountered claims that Segregated Witness was "not really tested" and is being "rushed". It is my understanding that SegWit had been running on Elements for more than half a year already, and ...
5
votes
2answers
275 views

Can unupgraded nodes that accept zero confirmation be fooled after SegWit?

Considering the following scenario: After deployment of SegWit, there remain two old clients (with software that is unaware of SegWit) A & B. A funds a transaction to pay B using a SegWit ...
1
vote
1answer
261 views

Segregated witness soft fork: how is the funding Tx made “ANYONECANSPEND”

Reading the BIP: https://github.com/bitcoin/bips/blob/master/bip-0142.mediawiki I see that the scriptPubKey in a transaction that funds a segwit redemption is the same as a normal P2PKH but merely ...
11
votes
1answer
295 views

What are the segregated witness tradeoffs?

Segregated witnesses sound like a win in a lot of ways, I'm just trying to understand how they apply to scalability. If I understand correctly, there is a second Merkle tree of witnesses mirroring the ...
18
votes
1answer
972 views

What is “segregated witness” and how can it improve network scalability?

I've just heard about it, and it is claimed to be a "turning point" in the block-size debate. What is "segregated witness?" how does it work? How can it be used for improving network scalability? ...