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
1
vote
1answer
405 views

Understanding BIP 143 [hash computation, lockTime, sequence number, witness format]

I'm trying to grasp some of the concepts presented in BIP 143. These are the things I'm stuck on: (1) A new hash format is presented. This new format is used to create a hash, which when signed with ...
0
votes
1answer
177 views

Which full node implementation(s) supports SegWit

I just finished setting up a full node using bitcore.io's guide here. I need my node to support SegWit though and I am not entirely sure whether what I have set up offers SegWit support. Especially ...
0
votes
1answer
186 views

Complete definition of 'tx_witness' data structure used in 'tx' data structure

I'm reading the Protocol Documentation page for the 'tx' data structure and cannot find a completely clear definition of the 'tx_witness' data structure. After the 'tx_out' table, there is short ...
1
vote
1answer
340 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 ...
0
votes
1answer
805 views

Sending funds from a Segwit address to a non segwit

I just generated a Electrum wallet with the Segwit option on. I wonder what happens if I try to transfer SegWit -> Non-SegWit or Non-SegWit -> SegWit: Will the funds be confirmed and get transfered or ...
1
vote
1answer
444 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....
0
votes
1answer
235 views

Can I use bitcoin-cli estimatefee API for Segwit?

I'm using estimatefee API to calculate transaction fee for Non-Segwit. I'm using this formula now. size = 180 * len(inputs) * 34 * len(outputs) + 10 necessary_fee = int(size / 1000 * fee_per_kb) ...
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 ...
0
votes
1answer
239 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
0answers
19 views

Segwit has been locked-in since Aug'17, has it been activated? If so, why are the communities not implementing it? [duplicate]

Since locked-in Segwit, why most exchanges, wallets & miners are not implementing it. Market complained BTC is slow & costly to transact now. Segwit did improved both, yet acceptance by ...
2
votes
1answer
359 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 ...
5
votes
1answer
366 views

Can I mix P2PKH and P2WPKH inputs in the same transaction?

I'm trying to increase my knowledge of bech32 and SegWit and to that end am working my way through this explanation. Here's a hypothetical situation I'm trying to understand. Let's say Jamal has ...
5
votes
2answers
1k views

SegWit transaction fee/byte

For transaction not spending SegWit outputs it's straightforward: if I have 1000 Satoshi fee set for 500 byte raw transaction, I end up with 2 s/b fee. How about transaction containing witness data? ...
0
votes
2answers
98 views

What will happen to bitcoins stored at segwit outputs pre-BCH-fork?

If I understand correctly, P2SH-P2WPKH outputs are simply anyone can spend outputs in BCH. What would have happened to BTC stored in such SegWit outputs BEFORE the fork, assuming that those ...
3
votes
0answers
283 views

HD Wallets - Generating P2SH-P2WSH Addresses from a ypub-type mpks in PHP?

I am writing a webapp in PHP that needs to generate Bitcoin addresses from their mpk. I have successfully done it for P2SH addresses (starting with a 1, with a xpub mpk) using the BitWasp php library,...
2
votes
1answer
102 views

Why does P2SH-P2WPKH use DER encoded signatures?

If we simply assumed 32 bytes of r and s each, then signatures can be 64 bytes. Now they are on average 71 bytes in DER plus an additional byte to declare their size, effectively making them use 72 ...
0
votes
1answer
733 views

Get public key of SegWit address

I'm using bitcoin-cli and I need to get the public key of one of my SegWit addresses. My first attempt was to use 'validateaddress' command and take the 'scriptPubKey' field but that doesn't seem to ...
7
votes
2answers
1k views

How does SegWit reduce transaction size, when the signature is simply moved to another part of the transaction?

This video explains that the signature is moved out of the input section and moved to the new one called the witness. From what I can tell, the witness signature is still contained in this transaction ...
1
vote
2answers
317 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
1answer
234 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
560 views

What is the difference between Segwit and non-segwit?

What's the difference? What is the definition of these two terms?
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 ...
5
votes
1answer
2k views

Which block explorers recognize bech32 addresses?

At this time, blockchain.info doesn't. Neither does blockchair or blockcypher.
2
votes
1answer
181 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.
0
votes
1answer
128 views

Will Core ever adopt Segwit by default?

There is no excuse for current companies that do not adopt Segwit. It looks very scammy. However, does Core plan to adopt Segwit by default at some point? Is it a matter of money or anything else? ...
3
votes
1answer
577 views

How to quickly find the private key from Segwit P2SH address?

I have a very large list of Segwit addresses for bitcoin, starting with '3' and do not know the corresponding legacy '1' address for them. How can I quickly find the corresponding legacy address to ...
0
votes
1answer
71 views

Node doesn't find segwit transactions

I had to move around wallets and so on, and when I re-installed Knots (yeah I'm that edgy), it doesn't find the transactions to my segwit addresses. I can probably find the SW addresses somewhere, but ...
2
votes
1answer
166 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
161 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 ...
1
vote
1answer
74 views

Can SegWit block weight be increased without a hard fork?

I know segwit's block weight is 4MB. Can it be increased without a hard fork? If no, was that option even considered, and is it even possible?
1
vote
2answers
310 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 ...
2
votes
3answers
2k views

Calculate Segwit address from public address

I would like to calculate the segwit address of a public address. First step: take the compressed public address: 1L88S26C5oyjL1gkXsBeYwHHjvGvCcidr9 do a sha256 on that address: ...
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?
1
vote
1answer
81 views

What Does “Activation” Actually Mean In Bitcoin?

During the multiple issues with Bitcoin this year with soft and hard forks, and Segwit, I have read as much as I can about how all these changes are "deployed", eg BIP9, BIP91, BIP148, BIP's 141-146. ...
4
votes
2answers
781 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 ...
2
votes
0answers
200 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 ...
0
votes
1answer
320 views

P2SH-P2WPKH private key or revert to P2WPKH

Is there a way to get the private key out of an P2SH-P2WPKH address, using Bitcoin Core 0.15.1? If not, is there a way to get the origin P2WPKH address to get the private key out of this address?
3
votes
1answer
300 views

how to get address from transaction with empty ScriptSig?

look here https://blockchain.info/tx/d4223672c9043c17a2775abde858778fca38b53152e165757188ab747850770e why does address start with bc1q... ? Is it some standart? How can I derive this value from ...
0
votes
1answer
591 views

Segwit Address Supporting Testnet Faucet

Looking for a good Segwit supporting testnet faucet and preferably one that supports P2WPKH addresses, however answers that allow only P2WSH are fine too.
2
votes
1answer
188 views

Why is there an output with op-return in regtest mode?

Here is an output from getrawtransaction: { "txid": "a2b9e3aa4adeb68a9b8b8b0bbc8d4890585cd711e89cda83e7f236397fac6218", "hash": "6d96c04d49eefe3eab4934188841ef3592c818bf789517b90b1f71ff75a14c26",...
1
vote
3answers
247 views

Why do non-SegWit clients send witness data in the first place?

If SegWit leaves out witness data for backwards-compatibility, thus witness data isn't so important apparently, then why do clients even send that data in in the first place? Aren't they making their ...
0
votes
2answers
153 views

Does segwit solve malleability of the witness part?

I understand that after segwit the transaction ID can't be malleated, but can't the witness part be malleated, just like the scriptSig can in a non-segwit transaction?
3
votes
1answer
429 views

Why does SegWit offer P2SH nesting?

I'm reading about SegWit and the BIP 141 in particular and I don't understand what is the motivation behind the P2SH nesting. At first I thought the P2WPKH is not valid on non-upgraded nodes, so ...
4
votes
1answer
549 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
415 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
249 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 ...
0
votes
1answer
2k views

How to get legacy address and private key from Segwit P2SH address?

I have a Segwit P2SH address (starting with 3...) with the corresponding private key and need to obtain the legacy address (starting with 1...) and the private key. Is this possible?
3
votes
1answer
752 views

Can Bitcoin Diamond be claimed on Segwit addresses?

I currently have my Bitcoin (BTC) on a Trezor hardware wallet with Segwit (Not in a "Legacy account"). Can I claim Bitcoin Diamond (BCD) with this or not? In general: Should I move my BTC to a ...
1
vote
1answer
149 views

What is the maximum size for SegWit transactions?

Before SegWit was activated, transactions were limited to 100,000 bytes or 100 kB. Bigger transactions were non-standard. What is the limit for transaction size after the activation of SegWit? Is ...
0
votes
1answer
320 views

Can I use same WIF/privkey to make myself a segwit address?

I think I know the answer, but want to make sure asking here. I have my old privkey/WIF and some funds on associated legacy bitcoin address. Reading this code https://github.com/bitcoinjs/bitcoinjs-...