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
84 views

Once SegWit is implemented, could updated miners still choose to ignore SegWit transactions?

Regular transactions can be ignored. What about SegWit transactions?
2
votes
1answer
63 views

How does BIP9 handle expiration dates over retargeting periods?

Suppose a BIP9 feature is set to expire on day T. Suppose further that the retargeting period before T actually ends on day T+5, but the retargeting period (2016 blocks) actually signals for the BIP9 ...
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 ...
2
votes
1answer
696 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?
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": "...
2
votes
1answer
11 views

Parsing stripped-witness blocks

I've read all the relevant BIPs, and am still confused. Are segwit enabled blocks stripped of witness data and marker and flag bytes when they are propagated to non-segwit peers? Or are they just ...
2
votes
1answer
170 views

How to set custom segwit change address in v0.15 Core via config

We generated segwit addressess via addwitnessaddress command in v0.15 core client. Therefore receiving funds to our segwit addresses. When spending those segwit UTXO, wallet creates a standard change ...
2
votes
1answer
162 views

Who witnesses a Segregated Witness transaction and what incentive do they have to witness the extended block containing signatures?

This video claims Segregated Witness is insecure because no one has an incentive to process (witness) the extended signature block. https://www.youtube.com/watch?v=VoFb3mcxluY It claims that as the ...
2
votes
1answer
74 views

What is the difference between mauling and transaction malleability?

http://stevengoldfeder.com/papers/ZKCSP.pdf notes: The protocol presented in [5] is vulnerable to the so-called mauling problem, where an adversary which knows the hash identifier T of a ...
2
votes
1answer
145 views

Blocks, scaling and segwit question

Somewhat new to bitcoin, trying to understand the tech... For my understanding all the transactions go into a block, every 10 minutes the block is mined and all transactions in it are confirmed. With ...
2
votes
2answers
142 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 ...
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, ...
2
votes
1answer
41 views

Why does witness use count instead of length?

In legacy transaction (without SegWit) the scriptSig is easily parsed by knowing the length of it (a CompactInt value) and without needing to read the script in place. However in SegWit transaction ...
2
votes
1answer
48 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
291 views

How do I calculate the witness commitment hash for a given block?

From my understanding, every SegWit enabled block has an added output script which is used as a place to store the "Witness commitment" specified in BIP 141. One issue I've stumbled upon was ...
2
votes
1answer
358 views

How can a third party spend BCH accidentally sent to a BTC address?

I transferred BCH to an Electrum wallet address and haven't ever received it because Electrum uses only BTC. As I have been trying to recover it, I looked up the transaction on explorer.bitcoin.com ...
2
votes
1answer
219 views

Derive the bech32 address from the transaction 'txinwitness' witness data in Bitcoin Core 0.16

I'm trying to extract the bech32 address associated to an input or output using the txinwitness field included in every pure SegWit transaction. An example with transaction ...
2
votes
2answers
63 views

Do lightweight wallets validate signatures? If not, why?

I've learned that "some SPV clients simply don’t check signatures themselves at all": https://bitcoincore.org/en/2016/01/26/segwit-benefits/#efficiency-gains-when-not-verifying-signatures I wonder if ...
2
votes
2answers
632 views

Bitcoin - Technical difference between P2PKH and P2SH address generation?

I was convinced that the only difference between the generation of addresses starting with '1' and '3' was simply changing the prefix added to the digest from 0x00 to 0x05 after the ripemd160 part. ...
2
votes
1answer
117 views

How does a non-segwit full node ensure validation of the blockchain?

Let's say a block been created with most tx are segwit , now the block is more then 1MB and will be near to 4MB, I understand that a non-SegWit node ( let's say bitcoin-core 0.15 ) cannot get a block ...
2
votes
2answers
503 views

what is the explanation of “witness version” and its usage?

What is the witness version and how is it used? A segwit transaction is comprised of: [nVersion][marker][flag][txins][txouts][witness][nLockTime] From the BIP: "A witness field starts with a var_int ...
2
votes
1answer
1k views

What Do SegWit Addresses Look Like?

Probably a question that has been asked a lot before, but how do I know if an address I generate with bitcoind and bitcoin-cli is SegWit? I take the following steps to (attempt to) generate a SegWit ...
2
votes
1answer
370 views

Generate Bech32 addresses to receive customer funds

I would like to use Segwit addresses however I seem to be finding mixed information on compatibility. As I currently understand it, older clients will not be able to send to a Bech32 address. Is this ...
2
votes
1answer
195 views

Where does the extended block in a segwit transaction get stored?

I understand where normal blocks get stored. They’re passed along and saved by various nodes. What about the extended blocks of a segwit transaction.
2
votes
1answer
520 views

How to properly backup a address with private key after 'addwitnessaddress' command

I've received my balance to my addresss that starts with 3 which is after 'addwitnessaddress' command. I'd like to know that how do I properly backup my balance to keep safety. Bitcoin Core has a ...
2
votes
1answer
155 views

Would fees go down once more people start using segwit addresses for day to day activity?

Since the fees are high today, when more wallets and people start using segwit (bc1) addresses. Would sending from legacy address fees go down as everyone is using the newer address? Or it doesnt ...
2
votes
1answer
490 views

What was the number of the block in which SegWit got activated? And first transaction?

It was definitely on August 24th 2017, but not sure about the block number. Many sources reference block 481,822; but others state 481,824. Also, even if this was the first block to allow segwit ...
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 ...
2
votes
1answer
457 views

What is the “witness reserved value” for BIP-141?

BIP-141 defines a witness reserved value as part of a flexible commitment structure: Double-SHA256(witness root hash|witness reserved value) The purpose is to support commitments (i.e., data ...
2
votes
1answer
330 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 ...
2
votes
1answer
62 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 ...
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 ...
2
votes
1answer
88 views

How to calculate p2wsh signature?

I read the bip143, but didn't understand how to calculate the scriptCode of p2wsh. bip143 told us: A new transaction digest algorithm is defined, but only applicable to sigops in version 0 witness ...
2
votes
0answers
106 views

What are segwit extended key prefix bytes for regtest?

I need the HD version bytes for equivalent of ypub, zpub, Ypub, Zpub but on the regtest network. I also need Ypub on testnet. All the rest I can find in slip132, but it is incomplete. thanks.
2
votes
0answers
99 views

Post SegWit Inclusion, how long until Lightning Network is included in the core?

Introduction - Reason for asking this question With most of the money in the cryptocurrency domain still being utilized in transactions on crypto-exchanges and the numerous hacks that have previously ...
2
votes
1answer
166 views

Why do we need public key as part of Witness in P2WPKH transactions?

As we want to minimize the data payload in a blockchain, which also led to concepts like SegWit, and is matter of discussion in Signature aggregation etc, I wonder why do we actually need to supply ...
2
votes
0answers
128 views

Why bitcoin does not generate and support Segwit addresses by default automatically?

I downloaded the latest bitcoin core, but the generated wallet and address was not a segwit. Why bitcoin core, does not support segwit by default? and when it will be changed?
2
votes
0answers
206 views

pyminer for getblocktemplate/segwit?

I'm trying to resurrect my simpleminer.py script, based on pyminer, for use with Bitcoin 0.13.2 but the changes to the code over the last few years are overwhelming. I found out how to use ...
2
votes
0answers
225 views

SegWit with BitCore-Lib

How to create a SegWit address and transaction using bitcore-lib?
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.
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 :)
2
votes
0answers
161 views

What is UASF, BIP148, Segwit, Segwit2x? [duplicate]

I keep reading these terms and I don't follow this everyday. Last I heard was that segwit was suppose to solve the block size debate. What are all these new terms like segwit2x and UASF?
2
votes
0answers
351 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 ...
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 ...
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?
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 ...
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 ...
2
votes
1answer
343 views

What is the recommended lowest fee for a segwit transaction when sending coins from a bc1 address? [closed]

What is the lowest fee for sending 1 btc from a segwit bc1 address?
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 ...
1
vote
3answers
1k views

What is Witness and what data does it contain?

I've learned about the Segregated Witness but couldn't find info on braking it apart. I know usually when legacy addresses are used the public keys for example will be under Scriptig. With P2SH, I ...