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
9
votes
2answers
2k views

Where is the Signature stored in a SegWit transaction?

I understand that SegWit makes transaction blockdata smaller, by not storing the signature in the Block, so that can fit more transactions in 1MB. This is because the signature is not anymore stored ...
2
votes
0answers
569 views

Is there any testnet faucet site that sends out to bech32?

I am writing a wallet for the far future and I am planning to completely drop the support for receiving to P2PKH addresses. I don't want to add P2SH over P2WPKH either.
1
vote
1answer
98 views

segwit is activated due to BIP91?

Segwit (BIP141) is active since block 481824 in 24th August. I wonder if it was the BIP91 that made the segwit happen? I mean lets say BIP91 never existed, would segwit be activated in 24th August ...
1
vote
1answer
54 views

What does the segwit upgrade path look like?

I've been wondering what the upgrade path for the ecosystem would look like to increase the number of segregated witness transactions. What should wallets do and what should exchanges do and in what ...
0
votes
1answer
351 views

Armory and segwit addresses

I'm using Ledger wallet, and it recently prompted me to migrate to new Segwit address type. If I want to use Segwit transactions from Armory, do I have to do something similar (I have installed ...
3
votes
2answers
790 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 ...
2
votes
1answer
112 views

Bitcoin Core - When is fAllowWitness evaluated to true?

In Bitcoin Core, when is fAllowWitness evaluated to true? transaction.h const bool fAllowWitness = !(s.GetVersion() & SERIALIZE_TRANSACTION_NO_WITNESS); In particular, I cant figure out the ...
1
vote
2answers
698 views

signrawtransaction of a P2SH-P2WPKH spend seems to be broken?

I'm trying to spend a SegWit output on testnet using the Bitcoin core's RPC commands. Without importing the private key into my wallet (i.e. w/o addwitnessaddress). I wonder if anyone had luck ...
10
votes
1answer
3k views

With 100% segwit transactions, what would be the max number of transaction confirmation possible on a block?

With 100% segwit transactions, what would be the max number of transaction confirmation possible on a block? And, how many utxo can be updated by a block full of segwit transactions?
1
vote
1answer
139 views

Why is the bytestring 0xaa21a9ed used as the witness commitment header in SegWit?

As per BIP 141, the witness Merkle root hash is stored in a scriptPubkey field of a coinbase transaction output with a header consisting of the 4-byte string 0xaa21a9ed. What is the reasoning behind ...
1
vote
2answers
971 views

How to sign a SegWit transaction via NBitcoin?

Most tutorials out there just show how to sign it in the legacy way. And I know that NBitcoin already supports SegWit, so is there a snippet out there on how to sign it this way?
3
votes
1answer
661 views

How much does SegWit affect transaction size?

I know that SegWit transactions are bigger than normal transactions. But how much? 10% or 15% or..?
1
vote
1answer
693 views

What bitcoin wallets supports SegWit?

It's more than a week since SegWit activation, and still there seems to be almost no wallet out there supporting SegWit? Well, I've heard Trezor supporting it, but no ... I don't want to buy a ...
1
vote
1answer
128 views

Why does bitcoin-cli not show the correct TXID for this transaction?

I've been decoding some transactions on Testnet, and I've found one that bitcoin-cli decoderawtransaction seems to "fail" to decode correctly. Here's the TXID: ...
2
votes
1answer
3k views

Segwit to legacy address transaction possible?

If I have a segwit address and I want to send BTC to the exchange, which supports only legacy addresses, can I even tranfer the money?
1
vote
1answer
190 views

What happens if segwit node receives blocks from legacy node?

Scenario: segwit node receives all blocks from legacy node without segwit support, eg using --connect parameter. The legacy node stores/forwards max 1Mb blocks, so the extra segwit data logically ...
0
votes
1answer
148 views

Can a created segwit address match a non-segwit vanity address?

For example, if I have the following vanity address: 1abcde.... as my current bitcoin address, is it possible to create the same vanity address for Segwit: 3abcde... ?
0
votes
1answer
199 views

Why Segwit makes blockchain faster?

In Bitcoin blockchain, Segwit takes the script, which containers the signature and sender's public key, out of each transaction and stores them into an extended block. However, why having an extended ...
8
votes
1answer
7k views

Difference between a SegWit address and a P2SH address

Let there be an address 3ABCDEFGHJKDJHDH.... How can I understand if it's a SegWit address or a MultiSig address?
7
votes
3answers
6k views

How to see the number of segwit transactions in a block

Now that segwit is active I am interested to know how many segwit transactions are in each block. The Blockchain explorers I've looked at don't seem to be tracking this info. Is there any service ...
8
votes
1answer
895 views

Why include the Segregated Witness Merkle Root in the input field of the coinbase transaction?

I just read this article to understand SegWit better: https://bitcoinmagazine.com/articles/segregated-witness-part-how-a-clever-hack-could-significantly-increase-bitcoin-s-potential-1450553618/ There'...
1
vote
1answer
404 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”...
0
votes
2answers
143 views

What is the difference between Bitcoin Core and UASF?

I am a little confused about what the actual difference is between Bitcoin Core and UASF, are they both only for SegWit? If so who is then for SegWit2X?
1
vote
1answer
992 views

Spend Segwit address output

I want to create a segwit transaction using bitcoind on testnet2. For this I created a P2SH-P2WPKH address as mentioned here and sent coins to it. Now, how do I create a segwit transaction to spend ...
1
vote
1answer
314 views

What is a “serialized signed transaction”?

Shown in the gray area here, describing how to apply, I think, Segwit to a transaction (particularly a Bitcoin Cash tx). The last section is titled "serialized signed transaction" however it doesn't ...
1
vote
1answer
245 views

Has SegWit been activated yet?

Is SegWit activated and when exactly did that happen? I keep getting conflicting information, any help would be much appreciated!
6
votes
3answers
1k views

Does a segwit based side chain like the lightning network allow for fractional reserve?

I'm confused. I've watched the video The Lightning Network Explained (Litecoin/Bitcoin), and read the following comments by Craig Wright: This occurs because schemes such as segregated witness ...
1
vote
1answer
437 views

How does Segwit achieve backwards compatibility in terms of the block size? [duplicate]

If SegWit results in production of blocks that are larger than 1MB, how do old nodes see them as valid, instead of rejecting them due to exceeding the maximal allowed size of 1MB?
1
vote
0answers
299 views

use addwitnessaddress outside bitcoin core's wallet. Are there any libraries?

I want to create P2SH of witness script. I know bitcoin core has addwitnessaddress rpc method but I want to use it for addresses which are outside bitcoin core's wallet. I tried to find the tools on ...
4
votes
1answer
399 views

What is 'ScriptCode'?

I don't understand what the 'ScriptCode' thing is. Is it a part of transaction format? The wiki https://en.bitcoin.it/wiki/Transaction describes scriptPubKey and scriptSig, mentioning nothing about '...
1
vote
0answers
17 views

(Reference request) Is there a better (but also fully technical) source to read how exactly SegWit works other than the official BIP141 document?

I'm slowly making my way through https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki and while it seems that with more time I should be able to understand it properly, it's going rather ...
2
votes
1answer
268 views

Legacy blockchain after upgrade to SegWit

Let's suppose I run a legacy (non-SegWit) node after SegWit gets activated. My blockchain doesn't store any SegWit data. What happens when I upgrade my node? Will I have to re-download the blockchain ...
15
votes
1answer
11k views

How to generate SegWit address

How do I generate a SegWit address using Bitcoin Core CLI? Also will I be able to redeem those outputs and send them to a "legacy" address? If so, will this second transaction be accepted by older, ...
5
votes
1answer
701 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) ...
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 ...
1
vote
1answer
402 views

How much does the weight of 2-of-3 multisignature inputs change between P2SH and P2SH-P2WSH?

I'm trying to calculate the weight of a 2-of-3 multisignature P2SH-P2WSH input. I found the related question Predict multi signature transaction size, which I've calculated out with m=2, n=3 here: ...
1
vote
1answer
103 views

Who is for SegWit and who is against? And what is the consensus?

I am a little lost in the whole political landscape of implementing SegWit, I understand that Bitcoin Core is for SegWit but are the miners against it? If not then who is against it and what is their ...
1
vote
1answer
746 views

I run Bitcoin Core 0.14.1, for Segwit they tell me to “upgrade” to 0.13.1. So confusing [duplicate]

Short version of my question: I run Bitcoin Core 0.14.1. Will I be fully compatible with the segwit soft fork after Aug 1 2017 with this version? IOW, I can simply do nothing and be segwit compatible? ...
-4
votes
1answer
889 views

Could miners possibly steal SegWit transactions on The Real Bitcoin? [closed]

Going to be lolz epic when all the SegWit transactions are double-spent, i.e. stolen by miners on The Real Bitcoin (the legacy Satoshi blockchain). Can anyone offer any refutation, confirmation, or ...
3
votes
1answer
237 views

What do I have to do after Segwit activates if I'm running Bitcoin Core 0.14.1?

I have my bitcoins on a Linux Server. It runs Bitcoin Core 0.14.1. What do I have to do after Segwit activates?
1
vote
1answer
94 views

Default behaviour when network partitions/pruned network

From people oposed to SegWit I have heard about the argument, that after SegWit activation, nodes may chose to drop/prune all Witnesses. From my understanding, this may not be much different from ...
0
votes
1answer
5k views

Where can I buy bitcash

Is there any where I can buy bitcash ahead of the fork? Or do I need to keep my bitcoin in wallets that won't signal SegWit?
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
1answer
139 views

Can someone explain to me all of the scaling proposals?

What are Segwit, Segwit2x, UASF, BIP 141 and 91, emergent consensus, and core/Non-EC? All of these terms are confusing and I don't understand what they all signify. Also, could you give me a ...
2
votes
1answer
349 views

BIP91 is activated, why BIP141 is still dormant?

The moment is BIP91 activated non-SegWit signaling blocks will be orphaned. Since BIP91 is now activated won't that immediately boost BIP9 to 100%? Why is it not happening?
4
votes
0answers
665 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. ...
1
vote
1answer
67 views

What was the last block before BIP91 activated?

https://www.xbt.eu/ says: BIP91 ACTIVATED! Non-SegWit signaling blocks will be orphaned. What was the last block before BIP91 activated?
1
vote
1answer
326 views

Why did Satoshi not choose for Segwit?

I know that the very early version of the Bitcoin code had a lot of advanced features, and was already very mature. But Segwit (storing signatures separately from the transactions in the block) is a ...
2
votes
1answer
107 views

BIP9: What happens if I make a segwit transaction after lock in but before activation?

Will it be treated a anyone-can-spend or do the nodes enforce the new rules? Along the same lines, what exactly happens when we say a soft fork is activated? Are the enforced at the time SF becomes ...
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 ...