We’re rewarding the question askers & reputations are being recalculated! Read more.

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
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. ...
4
votes
2answers
1k views

Birthday attack on P2SH

The Segwit Benefits document has this to say about P2SH security for base transactions: Multisig payments currently use P2SH which is secured by the 160-bit HASH160 algorithm (RIPEMD of SHA256). ...
2
votes
2answers
976 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
203 views

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

Here is an output from getrawtransaction: { "txid": "a2b9e3aa4adeb68a9b8b8b0bbc8d4890585cd711e89cda83e7f236397fac6218", "hash": "6d96c04d49eefe3eab4934188841ef3592c818bf789517b90b1f71ff75a14c26",...
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 ...
2
votes
2answers
505 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
835 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 ...
1
vote
2answers
685 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 ...
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 ...
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 ...
4
votes
2answers
1k views

What is block weight and how is it different from block size?

While reading about BIP141, I have encountered the following options: Block creation options: -blockmaxweight=<n> Set maximum BIP141 block weight (default: 3000000) -blockmaxsize=<n> ...
0
votes
2answers
321 views

How do I store coins during the bitcoin segwit2x hard fork?

Where should I securely store my coins during the fork? A Legacy address or a Segwit address? I keep them on a Segwit address right now but I want to be sure that the fork won't affect my funds if ...
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
435 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?
0
votes
1answer
842 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....
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 ...
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) ...
0
votes
1answer
256 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-...
3
votes
1answer
312 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 ...
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 ...
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 ...
0
votes
2answers
157 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
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 ...
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 ...
0
votes
1answer
331 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-...
0
votes
1answer
761 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 ...
4
votes
2answers
235 views

Is there a reason big Bitcoin companies wouldn't use only SegWit transactions?

As I understand, SegWit allows anyone to create a SegWit address where they can send their bitcoins and transact from that wallet just as easily as they would with a traditional address. The SegWit ...
0
votes
1answer
70 views

Which BIP-148 branch is the most recommended?

I want to run an BIP-148 ("segwit UASF") node. However, I am not sure which of the various branches is most maintained and recommended to run. There is this pull request by earonesty (386 commits ...
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: ...
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 ...
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? ...
6
votes
2answers
1k views

generate a P2SH-P2WSH address and spend output sent to it

I am attempting generate a P2SH-P2WSH address and then spend an output sent to this address, but when I attempt signing I receive Invalid private key error from bitcoind (v0.15.1.0). So where am I ...
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
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
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?
6
votes
1answer
664 views

Transaction verification by miner VS full node with & without SegWit

I'm trying to fill a few gaps in my understanding of transaction verification and would appreciate any insight. Without SegWit Miners broadcast new blocks which contain the signature(s) with every ...
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. ...
6
votes
3answers
277 views

If SegWit only increases the capacity to only 2-4x only. Wouldn't we have the same issue in a few years again?

If I understand correctly. SegWit is one of the solutions to the full 1MB block problem that doesn't require a hard fork. But I've read this only increases the 1MB to maybe about 2-4x only. If that is ...
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
254 views

Which branch of bitcoinj should I sync to?

I am experimenting with Bitcoinj to design a stable node that is synced. Older versions of bitcoinj seem to drop connections and stop syncing. I currently see the following branches (see screenshots)...
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
2answers
781 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 ...
1
vote
3answers
257 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 ...
5
votes
1answer
579 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 ...
0
votes
1answer
859 views

Would migrating my coins to a segwit (bc1) address reduce my fees as I send them out?

Currently fees are a bit ridiculous when sending from mycelium. I'm thinking of migrating all my coins to electrum 3 as a segwit (bc1) address. Then, would my fees be smaller? And if I exclusively use ...