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

Bitcoin segwit addresses from HEX

I loved those two https://github.com/grondilu/bitcoin-bash-tools https://www.bitaddress.org/ because you can convert HEX into WIF private key. Is there something similar what allows to create ...
0
votes
0answers
17 views

SegWit Tx taking way too long [duplicate]

Wondering what can be causing a Tx to take from from 19:48 (sent) to 22:44 (finally arrive to destination address). With Segwit implemented in both sides. The mempool looks way lower than past days. ...
-1
votes
2answers
470 views

How do I sweep funds from my bc1 bech32 segwit address I generated from a paper wallet?

Is there a easy tutorial on how to sweep a bc1 segwit address? I know electrum can sweep private keys, but has anyone ever really tried it and wrote a tutorial on it? I'm afraid of sending some ...
2
votes
2answers
975 views

Why is my segwit private key generating a 3 address vs a bc1 address like how I originally generated?

I have the following btc private key that I generated from another application: 5KCPzu4tEAnFqwLrXUbW3GKMDSnUYY8CMie2HMRuHouSvrFhXA9 That application gives me the following segwit address: ...
2
votes
1answer
357 views

Creating a new electrum 3 wallet file with an imported segwit private key

I have a segwit private key that I generated from another app. How can I create a new electrum wallet file with just this private key in there? I tried creating a new electrum 3 wallet with this ...
0
votes
2answers
160 views

What is the command to sign a message using a segwit private key using electrum 3?

I want to sign and verify a message using a segwit private key that i generated with another application. How can I sign and verify a message using electrum 3 cli?
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 ...
0
votes
2answers
831 views

Segwit change address from Regular address

I would like to move my bitcoins to a Segwit Electrum wallet, however - I don't want to pay the high fees for the initial transfer. I though about using the change address, so that when I make ...
4
votes
1answer
92 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 ...
1
vote
1answer
441 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
179 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
198 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
376 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
841 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
475 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
248 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
255 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
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 ...
5
votes
1answer
422 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
102 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
298 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
107 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
760 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
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
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
594 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 ...
6
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
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.
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
614 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
72 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
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 ...
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
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 ...
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
84 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
812 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
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 ...
0
votes
1answer
332 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
311 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
622 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
203 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
255 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 ...