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
2
votes
1answer
234 views

Incentives for Segwit vs BTU

I had the (appearntly wrong) impression that miners as a whole would prefer limiting the block size / scalability / TPS in order to increase fees (basically limiting the supply), and users and ...
1
vote
1answer
135 views

Is SegWit a step in the direction toward implementing pegged sidechains into Bitcoin?

Is Segregated Witness a step in the direction toward implementing pegged sidechains into Bitcoin?
2
votes
2answers
143 views

Technical problems in deployment of segwit parallely on bit 4

Recently(as of May 24, 2017) segwit2mb HF has been proposed. A core developer has reported that another deployment of segwit via bip 109 on bit 4 would require code duplication. Although the above ...
4
votes
1answer
312 views

What is it that makes BIP149 safer to activate than BIP148?

There are currently two BIPs floating to enable a "user activated softfork" of Segregated Witness. BIP148 is meant to activate by flag day on August 1st 2017 whereas enforcing nodes stop accepting ...
5
votes
1answer
740 views

Why does BIP141 define both virtual transaction size and weight?

Why does BIP 141 (segwit) define both virtual transaction size and weight? Weight seems to be just four times virtual transaction size (or vice versa, depending on what you define first). Why are ...
4
votes
2answers
173 views

What is the point of including the scriptCode of the input in the transaction digest of segwit?

BIP143 specifies "a new transaction digest algorithm". scriptCode of the input (serialized as scripts inside CTxOuts) What problems could arise if the scriptCode of the input were not ...
1
vote
1answer
317 views

How would segwit help bitcoin services like, blockstream profit, and miners to loose?

Segwit in the current form, How would it affect miners except, asicboost? How would blockstream (other than miners) kind of companies benefit from it, in such a way that miners can't? I'm looking ...
2
votes
1answer
377 views

Why does segwit save space on the blockchain?

I've had a hard time finding a good source online that explains segwit. I've read the basic idea is to store the scriptSigs separately as the scriptSig is potentially malleable, and then compute the ...
1
vote
0answers
231 views

How to make Simplecoin's powerpool to support Litecoin Segwit?

I tweek the code transation.py https://github.com/simplecrypto/cryptokit/blob/master/cryptokit/transaction.py#L150 add: if (self.default_witness_commitment is not None): data += b'\x00' ...
2
votes
1answer
340 views

How does a non-upgraded node read a SegWit transaction? [duplicate]

I'm trying to understand how my node would interperet a SegWit transaction if I do not upgrade. Even if I do not upgrade, I should be ...
3
votes
1answer
403 views

Does Segwit mean easier government monitoring?

I have noticed a steady stream of PR articles talking ad nauseum of the dangers of a contentious hard fork and how miners refusing to signal segwit are screwing us all. Many are quite well written and ...
0
votes
1answer
993 views

Can I get the wallet in bitcoind to use P2SH segwit (on testnet)?

Can I use the wallet functionality in bitcoin cli daemon with P2SH segwit on testnet/regtest? Meaning, can I receive on these addresses and send from them? And if I can, how? I cannot find it ...
3
votes
0answers
360 views

Scrypt CPU miner supporting segregated witness (for Litecoin testnet4) [closed]

I am interested in CPU mining on the Litecoin testnet (testnet4); the difficulty level is currently low enough to make this feasible. The standard Litecoin client no longer supports CPU mining. The ...
2
votes
0answers
52 views

What is preventing segregated witness from being activated

Segregated witness has been around since 2015 with good publicity and proponents since early 2016. It seems to have the benefits of solving transaction malleability, creating a good foundation for the ...
3
votes
1answer
296 views

Does Bitcoin Unlimited keep ASICBOOST intact vs going with segwit?

In light of the new findings about ASICBOOST from bitmain. Having that segwit disables ASICBOOST, does this mean that Bitcoin Unlimited leaves this ASICBOOST feature intact? Having that segwit ...
4
votes
1answer
994 views

What does “NODE_WITNESS (12)” mean as it is shown in bitnodes.21.co?

I'm running a pruned full node of bitcoin core version 0.14.0 and checking on https://bitnodes.21.co/nodes/ I can see that my node was labelled "NODE_WITNESS (12)" unlike of the others nodes shown, ...
1
vote
2answers
1k views

Which wallet libraries officially intend to use Bech32 addresses, and will the addresses generated by them be compatible?

I use several bitcoin wallets, and I would like to try Bech32 addresses when they come out. I initially thought to make a GitHub issue for Greenbits, but it seemed more appropriate to just ask such a ...
3
votes
1answer
139 views

What are the risks of a lower-than-95% activation threshold for soft forks (particularly SegWit)?

95% seems exceptionally conservative, especially given the evidence of vetoing by a subset of Bitcoin miners. What risks does, say, 60% over a longer activation period hold vs 95% for SegWit?
2
votes
1answer
63 views

Can Segregated Witness function in an Emergent Consensus environment?

Same as subject. I've been finding it difficult to find any discussion on the current Emergent Consensus implementation and theory, but I have seen reservations. Does it adversely impact the ...
9
votes
1answer
2k views

Is SegWit a blocksize increase or more efficient use of blockspace?

This question gets asked frequently on reddit, and I think it would be beneficial to have a canonical answer here: Is SegWit a blocksize increase or more efficient use of blockspace?
17
votes
1answer
2k views

How is SegWit a soft fork?

Reading this section of BIP144, I noticed the followng statement: Parsers supporting this BIP will be able to distinguish between the old serialization format (without the witness) and this one. ...
16
votes
2answers
1k views

What is the User Activated Softfork (UASF) proposal? How do its risks compare to hardforks?

The Bitcoin community is abuzz with discussion about shaolinfry's proposal of a UASF to activate SegWit as an alternative to the Version Bits activation. I've seen frequent and extensive discussion of ...
5
votes
2answers
214 views

Are SegWit signatures all required to follow BIP143?

...or is there any way for a SegWit witness to contain a "legacy" signature?
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
333 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
980 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
182 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
367 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
743 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
156 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
283 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
150 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?
6
votes
2answers
2k 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
432 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
784 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?
10
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
208 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
622 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
230 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
1k 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
701 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
196 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
177 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
47 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?
7
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
152 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
859 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. (...

1 5 6 7 8 9