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).

0
votes
1answer
485 views

How do you output segwit bech32 (bc1…) / P2SH (3…) addresses from a bitcoin private key?

I have a bitcoin private key and know that it can output a segwit addresses of bech32 bc1... and p2sh 3... formats. How can this be done easily?
1
vote
1answer
656 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 ...
5
votes
2answers
374 views

Has UTXO selection methods changed since activation of Segwit?

Before Segwit, transactions were penalized higher fees for having more inputs than outputs due to the input size being larger despite those transactions actually decreasing the global UTXO set. Segwit ...
0
votes
1answer
224 views

Pycoin: How to sign SegWit transaction via Pycoin?

My target is to make transaction with unspent transaction outputs(UTXOS). The information of UTXOs is as follow. [ { "pt_idx": 0, "subaccount": 37, "ga_asset_id": 1, "value": "...
1
vote
1answer
297 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 ...
0
votes
1answer
51 views

Where do I check if a 1 satoshi / byte fee will go through for a 3xxx address segwit transaction?

Where can I go to see if I set a 1 satoshi / byte fee that it will go through in a bitcoin transaction when using a 3xxx segwit address?
3
votes
2answers
673 views

Is there a paper wallet generator for the new bech32 bc1xxx segwit address?

Is there a paper wallet generator like bitaddress.org for the new bech32 bc1xxx segwit addresses?
1
vote
1answer
172 views

Pros / Cons of using the new bc1xxx segwit address vs the 3xxx segwit address?

What are the pros/cons of using the new bc1xxx segwit address vs the 3xxx segwit address?
1
vote
1answer
171 views

segwit nested in p2sh

I understand that P2SH addresses are used to allow "segwit unaware" wallets to create outputs spendable by segwit wallets (please correct me if I got something wrong). For new clients I think I got it:...
0
votes
1answer
311 views

Is a P2WPKH address synonymous with a Bech32 address?

BIP142 when encoding a segwit P2WPKH address is using a base58 address format (address p2xtZoXeX5X8BP8JfFhQK2nD3emtjch7UeFm in the example). I understand that BIP142 predates BIP173 but are P2WPKH ...
0
votes
1answer
255 views

Why is not Bech32 address selected as default in Bitcoin Core 0.16.0?

So, thankfully Bitcoin Core 0.16.0 came to us, general people. But however, native segwit address Bech32 wasn't selected as default. Is not it better to use a Bech32 address right away rather than ...
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 ...
0
votes
2answers
501 views

Segwit Addressed from xpub key

How can i get the public key of my segwit address with my extended public key. when i import the xpub into electrum it automatically creates a legacy wallet for me. i'm not with my nano and won't be ...
1
vote
0answers
53 views

Segwit and block size limit

I'am learning about Bitcoin and I didn't understand something. Maybe someone could clarify. I [think] I understood what Segwit does (increases block size, solves malleability and works better with ...
1
vote
2answers
68 views

Segwit: dropping signature from relay

In the process of trying to understand the effects of segwit on Bitcoin I started watching this: https://www.youtube.com/watch?v=NOYNZB5BCHM Which are the cases in which the receiver does not need ...
0
votes
1answer
193 views

need help in recovering my BCH [duplicate]

i mistakenly transferred 2.0 BCH from a BTC(blockchain.info) address to a Segwit address(Greenaddress)... I need help in recovering my BCH. I'm will to part with 20% if you can help retrieve it. I'm ...
0
votes
1answer
494 views

Bitcoin Core 0.16 new address prefix

I just downloaded the version 0.16 and tried to generate a new address via GUI while syncing mainnet blocks. I have never activated multi-signature but it gave me an address starting with "3". As far ...
5
votes
1answer
538 views

How would this normal raw transaction appear if it was a raw segwit transaction?

How would this raw bitcoin transaction appear if it was a raw segwit transaction? https://blockchain.info/tx/ff8766ec873ff55cc0ac17dee7b379a4efa2a5c83dabdd9a30287c7761ad55d5 This TX Raw is: ...
1
vote
1answer
265 views

How to estimate the optimal fee for transaction(Segwit addresses)? [duplicate]

I am using Segwit addresses to create transactions. As per my knowledge usage of segwit addresses allows the transactions to process fast with fewer fees as it occupies less space in the block. Could ...
0
votes
1answer
124 views

Confirming transactions in the Merkle root and SegWit

I'm trying to find out how exactly transactions are confirmed in a block. I understand that to confirm a transaction, you hash it with its associated transaction and then the associated hashes until ...
1
vote
1answer
611 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
353 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). ...
0
votes
1answer
45 views

what does this error mean “Script did not clean its stack” while signing segwit transactions

I'm trying to sign raw transaction on Bitcoin fork (Bitcoin-ABC 0.16.2) but I get Script did not clean its stack [args] => Array ( [RAW] => ...
1
vote
1answer
148 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 ...
0
votes
1answer
358 views

Can legacy wallets with 1xxx addresses send to segwit 3xxx and bc1xxx addresses like mycellium that only does 1xxx addresses?

I have mycellium for android and currently they dont support any segwit addresses that has 3xxx or bc1xxx. Can I send out from my mycellium 1xxx address to my segwit 3xxx or bc1xxx address that I ...
1
vote
1answer
85 views

Trying to understand SegWit

Can someone please help to confirm my understanding of SegWit ? My understanding: Originally, signatures are included in each block alongside each transaction, these signatures can be read by nodes ...
0
votes
1answer
328 views

Use old legacy bitcoin private key generated from 2012 to generate a segwit address

The old legacy addresses starts with 1 and the new ones start with 3 and bc1. Can I use my old private key from 2012 to generate a bc1 address? And how so?
1
vote
1answer
193 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
413 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
808 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
334 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
146 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
432 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
720 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
89 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
380 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
172 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
176 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
315 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
760 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
437 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
225 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
226 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
351 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 ...
4
votes
1answer
336 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 ...