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
0answers
99 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
344 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
1answer
316 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 ...
1
vote
2answers
109 views

If I was developing a Bitcoin wallet, should I support both legacy and compatibility addresses?

To receive funds, I was thinking of giving a user the option of displaying two QR codes: Legacy - p2phk e.g. 1AKDDsfTh8uY4X3ppy1m7jw1fVMBSMkzjP Compatibility - p2sh(p2wpkh) e.g. ...
1
vote
1answer
740 views

understanding bech32 Addresses / BIP173 question

I try to understand the code from the BIP173. I read the BIP, the links to RFC3548 or z-base-32, the base32 proposal by Mark Friedenbach, and some posts here. Q1: how to interprete script handling? ...
1
vote
2answers
133 views

What is the weight of a block that contains no pay-to-witness scripts?

I'm trying to understand block weight, a metric introduced by segwit (BIP-141): block weight = 3 * base size + total size "base size" is the length of a pre-segwit block, which contains only ...
1
vote
1answer
46 views

What is the O(n^2) signature hashing problem and how does SegWit solves it?

One of the many benefits of SegWit is that it solves the O(n^2) signature hashing problem. What exactly is the O(n^2) hashing problem and how segregating signatures to separate witness field solve it?
1
vote
1answer
369 views

How to calculate segwit transaction fee in bytes?

I'm trying to calculate SegWit transaction fees in bytes, I have two Segwit inputs and 2 segwit outputs. can anyone calculate this transaction fees if I'm paying 100 Sat per byte?
1
vote
1answer
293 views

Are there still miners or mining pool which refuse to implement SegWit?

It was well known that initially while SegWit got more than 50% of hashrate after activation that a part of the mining pools refused to implement it. But are there still blocks being mined by miners ...
1
vote
2answers
133 views

How can Segwit increase transaction throughput if the same amount of data is stored in the blockchain?

I'm posting this after reading the answers to this: Where is the Signature stored in a SegWit transaction? I've found out from reading that, that in Segwit, the "witnesses" (or signatures) that ...
1
vote
1answer
243 views

Why do we need SegWit (technical explanation)

After reading a lot of articles, whitepapers and videos I am still confused why do we need SegWit an Lightning instead of just bigger blocks. I don‘t want to debate Bitcoin vs Bitcoin Cash but what ...
1
vote
1answer
264 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 ...
1
vote
1answer
93 views

Concept of Block weight and segwit are still unclear

It seems like duplicated question, but i read many articles and posts to undestand about segwit. Below links are something i read What is block weight and how is it different from block size? After ...
1
vote
2answers
59 views

BIP 144 transaction format and soft-forks and old nodes

I was trying to manually parse a raw Bitcoin transaction in order to better understand how it works. This is how it starts: "0200000000010141035625cd030eca667c95d1729a" I think I've parsed the Tx ...
1
vote
1answer
892 views

How to sweep a segwit bech32 private key?

I'm testing segwit bech32 addresses and generated the following using bitcoinjs: address: bc1qc7u5njf4nf2rj3zys642mfc7nct6kdven8j4e9 private key: 5Kkzs8XrJNAmf9VQDFeGBfaRvSByAvPK6DbDXw5BVqswWaXSG2Y ...
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 ...
1
vote
2answers
54 views

How does storing the witness outside of the block prevent malleability?

I have some question on how segregated witness work. I'm reading this post and in the answer exist this phrase Since signature data (witness data) is stored outside the transaction (and outside ...
1
vote
1answer
67 views

How to calculate txid for segwit transactions?

I'm having difficulty calculating txid for recent transactions. I followed bip-141 at https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki For the first transaction in the first block found ...
1
vote
1answer
164 views

Why hash witness script instead of pubkey script in signature?

When a segwit input is signed, the signature will commit to the witness script (or a p2pkh-like script in case of p2wpkh). This is specified in BIP143: For P2WPKH witness program, the scriptCode ...
1
vote
1answer
53 views

Transaction version 2 - bytes between tx version and number of inputs

In the bitcoin transaction version 2, there are additional two bytes (hex: "0001") between transaction version (hex: "02000000"), and number of inputs (hex: "01"). What it is? Here's an example https:...
1
vote
1answer
31 views

which was the purpose of changing the signature of a TX? or it was just a bug before segwit?

Was there any purpose in changing the signature of a transaction? Or it was a bug before segregated witness? Does segregated witness disable some wanted feature?
1
vote
1answer
51 views

Transaction Malleability, if i want to change signature, what part should I change, so that it would remain valid?

I know what transaction malleability is, but I don't understand how someone can change my signature so that it would remain valid. For example, If I want to change signature what part should I change, ...
1
vote
1answer
173 views

Transaction Malleability, How can I change signature?

I'm kind of desperate as I can't follow some ideas that I don't understand. I hope you can help me. Thank you in advance It's all about Segwit Question 1) It says that when bob makes a transaction ...
1
vote
1answer
943 views

How to generate a native Segwit address and P2SH Segwit address from a standard WIF?

Can I have the steps to generate a native Segwit address from a standard WIF? And the steps to generate a P2SH Segwit address from the same WIF? How do these two formats differ and why are there two?...
1
vote
1answer
373 views

Segwit transaction size not smaller

In this transaction; https://blockchain.info/tx/573700fe19dbc926d037ee67dbe882ebcf3f765f1a3fcc9577665ba40554485f All of addresses are segwit. According to my research this transaction size must be ...
1
vote
1answer
487 views

How do I determine whether an input or output is segwit?

I'm trying to go through the transactions in a block and determine how many segwit inputs or outputs there are. I've noticed in getrawtransaction that segwit inputs seem to have a 'txinwitness' field....
1
vote
1answer
260 views

Will Segwit embedded inside P2SH save fee compared to P2PKH?

How much transaction fee will Segwit embedded inside P2SH save fee compared to P2PKH? Update 1 I found a similar question. or they can be nested in a legacy P2SH 3... address which are backwards-...
1
vote
1answer
445 views

What is ment by the “value of the output spent by this input” in BIP 143?

I'm looking into BIP 143 and I'm confused by item 6 in the specification of the transaction digest algorithm. It says: The item 6 is a 8-byte value of the amount of bitcoin spent in this input. I ...
1
vote
2answers
2k views

How to check if an address is valid in Bitcoin Cash?

A lot of users seem to be mistakenly sending Bitcoin Cash to Bitcoin addresses and vice versa. I understand Bitcoin Cash doesn't support SegWit and that if Bitcoin Cash is sent to a SegWit Bitcoin ...
1
vote
2answers
804 views

SegWit. Redeem script

I'm experimenting with Segwit transactions. Is it possible to restore redeem script, if I know 1. Address (Segwit) 2. Public key 3. Private key Thank you.
1
vote
2answers
974 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?
1
vote
1answer
994 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
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!
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
1answer
96 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 ...
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 ...
1
vote
1answer
239 views

How do we “exchange coins on one blockchain for those on the other”?

With Segwit and BIP-148 coming, I have been trying to figure out what's exactly gonna happen with Bitcoin after August 1, by watching videos and reading articles. One thing (among many others) ...
1
vote
1answer
30 views

For the 3 bitcoin address types, which can send to each other? Can a valid tx be created that spends to an unspendable address?

I'm just getting started with using bech32 addresses instead of legacy addresses, and I'm not familiar with how the legacy vs segwit compatible vs bech32 addresses play with each other. Can I get an ...
1
vote
2answers
111 views

Bitcoin API with bech32 support

Since a while, I have been using the insight-api to view bitcoin transactions. However, recently I have found out that bech32 addresses are not supported. Now I try to fix this issue and I am open ...
1
vote
1answer
89 views

What percentage of nodes currently support segwit?

What percentage of nodes currently support segwit? It seems Bitnodes could figure this out, but I can't find such a stat on its website.
1
vote
1answer
347 views

Segwit transaction in golang

I tried to create transaction which spends p2sh(p2wpkh) output: from wif I derived compressed pub key: "035476e55521c97cf0489e6c57893a99d67e84d306a69e6b6904f324c11b3cef8d". created witness program: "...
1
vote
1answer
143 views

Can you broadcast a segwit transaction using a non segwit node?

If non segwit nodes view segwit transactions as anyone can spend ,why can't you broadcast a segwit transaction using them?
1
vote
1answer
185 views

What prevents anyone from spending utxos from a native segwit address?

I read that transactions spending utxos from a native segwit address ( an address starting with bc1) are seen as anyone can spend transactions by legacy nodes. So what prevents someone from taking a ...
1
vote
1answer
1k views

How to generate Segwit address using bitcoind?

I am using bitcoind. It generates the BTC addresses(not segregated). How to get segwit addresses? Do I have to change the settings in bitcoin.conf file? bitcoin-cli getnewaddress -- generates ...
1
vote
2answers
405 views

Derive LTC Segwit (M-Address) private key from Trezor

So I'm trying to get my head around this! I've got my 24 seed for my Trezor. I got my Segwit account for LTC (Address starts with M). I also have the P2H equivalent for my address (Starts with 3). ...
1
vote
1answer
178 views

Unexplained Segwit transaction results in wrong balance (mixed address transaction?)

I sent 0.005 BTC from my Ledger Nano wallet (Segwit) to my Bitstamp wallet. When checking my new balance on a public address reader, an additional 0.603 BTC was removed. I then checked the transaction ...
1
vote
1answer
393 views

Error sending SegWit transaction: error code: -26 using bitcoin-cli

I'm trying spend funds that were sent to an SegWit address I created with the bitcoin-cli addwitnessaddress <P2PKH address> command. The segwit address created was ...
1
vote
2answers
321 views

Send Bitcoin cash to a Bitcoin address

by doing a mistake i have send BCH to my BTC address into my own Wallet,the wallet is Bitgo i know they have a tool to recover the BCH when they are send to a non segwit address i have already tried ...
1
vote
2answers
316 views

What changes did segwit do to minimum transaction fee?

If I understand this correctly, at the beginning, the minimum fee was 0, than it was .0001. Now, I can see that you can enter some really small amounts as fee for the transaction, however, with ...