The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
5
votes
1answer
690 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 ...
5
votes
1answer
732 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 ...
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 ...
5
votes
1answer
567 views

(dis)Advantages of migrating funds to segwit?

For offline pre-segwit wallets (addresses starting with 1) what might be the advantages of migrating or not migrating to segwit (addresses starting with 3)? Even though segwit miner fees are or will ...
5
votes
2answers
210 views

Are SegWit signatures all required to follow BIP143?

...or is there any way for a SegWit witness to contain a "legacy" signature?
5
votes
2answers
62 views

Why SHOULD the funding tx consume BIP 141 inputs?

In BOLT 02 we read that the funding TX should only consume segwit inputs. The sender: when creating the funding transaction: SHOULD use only BIP141 (Segregated Witness) inputs. What is the reason ...
5
votes
1answer
349 views

What exactly is hashed and signed in a segwit transaction

I have an unsigned raw segwit transaction on my regtest network: ...
5
votes
1answer
687 views

Why does the Segwit developer guide recommend to estimate fees on basis of vsize instead of weight?

The Segwit Wallet Development Guide has a small section on fee estimation: Transaction Fee Estimation Instead of transaction size, a new metric is defined, called “virtual size” (vsize) ...
5
votes
1answer
1k views

Generate paper wallet SegWit address

I am trying to generate SegWit paper wallet address from WIF: My WIF is L5mHKZsCLS27nSoGM3RdAwuxjvg7XhJdP25LgqdXe6zF11wpWdbT. I am converting WIF to compressed public key: Compressed public key: ...
5
votes
2answers
421 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'...
4
votes
2answers
235 views

Is there a reason big Bitcoin companies wouldn't use only SegWit transactions?

As I understand, SegWit allows anyone to create a SegWit address where they can send their bitcoins and transact from that wallet just as easily as they would with a traditional address. The SegWit ...
4
votes
2answers
1k views

Birthday attack on P2SH

The Segwit Benefits document has this to say about P2SH security for base transactions: Multisig payments currently use P2SH which is secured by the 160-bit HASH160 algorithm (RIPEMD of SHA256). ...
4
votes
2answers
162 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 ...
4
votes
2answers
152 views

What were the main technological reasons that Bitcoin Cash did not want to adopt SegWit?

What are the key risks/drawbacks to SegWit and why did the Bitcoin Cash community conduct a risky hard fork to avoid it?
4
votes
1answer
349 views

SegWit and previous hash: txid or wtxid, or either?

With segwit there will be two transaction ids wtxid and txid Can either one of them be used as previous hash or only txid?
4
votes
2answers
1k views

What is block weight and how is it different from block size?

While reading about BIP141, I have encountered the following options: Block creation options: -blockmaxweight=<n> Set maximum BIP141 block weight (default: 3000000) -blockmaxsize=<n> ...
4
votes
1answer
75 views

How has the Bitcoin average block size recently risen above 3 MB?

I was aware that the block size could rise above the 1 MB cap due to SegWit. However, my understanding was that the block size would still be limited under SegWit. My understanding of SegWit is that ...
4
votes
2answers
134 views

On chain cost of Segwit version 1 versus version 0

How do total blockchain cost for Segwit version 0 compare to version 1 which is being proposed? I'm specifically interested in a single user transactions – both paying to public key (or pk hash) and ...
4
votes
1answer
82 views

Does v1 Segwit includes v0?

My question is whether the version 1 of Segwit script will allow you to use version 0 scripts types inside of it. In other words, is version 1 superset of version 0? Please include reasoning behind ...
4
votes
1answer
648 views

Qualities of “Pay to Nested Witness Key Hash”

The lightning dev tutorial mentions the np2wkh or Pay to Nested Witness Key Hash address type, and I would like to find out more about it, so far without success. Can anybody explain how they are ...
4
votes
1answer
726 views

How to compute SegWit txid?

BIP141 says wtxid is SHA256 of [nVersion][marker][flag][txins][txouts][witness][nLockTime]. Is data that hashed as txid includes witness? And will txid be presented in block, e.g. be counted when ...
4
votes
1answer
498 views

Can a Non-Segwit Miner mine segwit transactions?

I understand that non-segwit nodes interpret segwit txes as Anyone-Can-Spend txes, and they cannot validate txes that spend segwit outputs. But when an old style miner receives a segwit tx to mine he ...
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 ...
4
votes
1answer
91 views

What differences exist between the Lightning Network implementation versus the white paper?

I'm reading the Lightning Network WP and came across SIGHASH_NOINPUT, then came across this: Lightning network: how was malleability actually fixed? Are there any other design considerations in the ...
4
votes
2answers
802 views

Can someone explain how this person hacked bitcoin?

I'm trying to fill a few gaps in my understanding how this transaction happened! It all started with this article In short, some vigilante/miner was able to scoop up all of the BCH sitting in ...
4
votes
1answer
909 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, ...
4
votes
1answer
176 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 ...
4
votes
1answer
151 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
846 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. (...
4
votes
1answer
412 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 ...
4
votes
2answers
260 views

How segwit blocks are seen by segwit and non-segwit nodes?

Let's say a miner mines a block. In this block some transactions will be non-segwit and some will be segwit? The block contains two parts: The part with transactions The segregated part with ...
4
votes
6answers
389 views

Is the SegWit2X success due to concentration of mining power?

SegWit2X has been called a short-sighted & severely lacking proposal. There is nearly universal preference for its alternative among those listed on the segwit support overview (SegWit, BIP 141,...
4
votes
1answer
309 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 ...
4
votes
1answer
867 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 ...
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?
4
votes
1answer
177 views

Activation of SegWit v1

The segregated witness soft fork of August 2017 included a versioning field which would allow for future incrementation. Anthony Towns has recently posted an early draft of the proposal for the SegWit ...
4
votes
1answer
233 views

What library or wallet can be used to test segwit transactions on testnet?

Is there any code snippets / wallets to send segwit transactions on the testnet at the moment? I'm more looking for a code snippet or any library to support this to do some tests and make them ...
4
votes
0answers
654 views

To sign raw transaction in Segwit

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. ...
3
votes
4answers
2k views

Vanity address generation for Segwit?

Vanity address generation is currently strightforward for "old" Bitcoin addresses (starting with 1) with multiple software options available (oclvanitygen e.t.c). Is there any options to generate ...
3
votes
2answers
773 views

Segwit transaction from mixed addresses (segwit and non-segwit)

Is it possible to have partly segwit transactions? I.e. some utxos from segwit addresses and some from non-segwit addresses. Asking for the situation of Bitcoin core v0.15 wallet with coins in segwit ...
3
votes
2answers
1k 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, ...
3
votes
2answers
183 views

How does the structure of a segwit block differ from a non-segwit block?

Is there any difference in the structure of a segwit block in comparison to a traditional non-segwit block? A diagram would be helpful if possible.
3
votes
1answer
116 views

Where is the pubkey for segwit inputs?

Normally when you spend an input, you reveal your public key and signature so that ECVERIFY can be done. I look at segwit raw transactions and cannot find the public key inside them, where do they go?...
3
votes
1answer
294 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 ...
3
votes
2answers
969 views

16: bad-txns-vin-empty. Code:-26

I am trying to push a raw transaction via BTC insight API, but I always get an error message: 16: bad-txns-vin-empty. Code:-26 Here is the raw transaction hex: ...
3
votes
1answer
2k views

Can i send bitcoin from non-segwit address to segwit address?

can i transfer bitcoins from my exchange(Koinex) which has address starting from 1xx... to a ledger nano s segwit address starting with 3x.... ? Although coinbase is not my exchange i am talking ...
3
votes
1answer
435 views

BIP91 Activation Period

I understand that BIP91 needs 269/336 signaled blocks. My question is is it a rolling window of any 336 blocks or are there activation periods of 336 blocks that start and end at predetermined block ...
3
votes
1answer
396 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 ...
3
votes
1answer
688 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/...