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
2answers
859 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
1answer
1k 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
246 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
484 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
100 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
141 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
242 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
2answers
63 views

segwit compatilibity bc1 and 3 bitcoin wallet?

I would like to know what's the better aproach for upgrading from a legacy address to a segwit one, but there are two type of segwit as P2SH starting with 3 and Native SegWit (bech32) starting with ...
1
vote
1answer
69 views

ScriptSig in P2SH-P2WPKH BIP16

I have some doubts about P2SH-P2WPKH BIP16. I can read the witness program and I understand that a node is triggered when find 0 and 20 o 32 bytes in scriptSig or ScriptpubKey, more precisely: If is ...
1
vote
1answer
94 views

Generate P2WSH native

I want to create P2WSH native like https://en.bitcoin.it/wiki/BIP_0173. I have already a script to generate P2WPKH and it works, thank the python part and re-arrange group byte works. I read that ...
1
vote
1answer
42 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
211 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
191 views

Find sender's public key in SegWit Transaction

How can I retrieve the sender's public key in a Segwit transaction? For example: https://www.blockchain.com/btc/tx/3179d18d6f36fa77b88909496535485d8188d96b79d295843789a9e0ff6c3e6a I can happily ...
1
vote
1answer
107 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
497 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
157 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
263 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
2k 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
1answer
206 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
571 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
337 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
740 views

What is the difference between Segwit and non-segwit?

What's the difference? What is the definition of these two terms?
1
vote
2answers
341 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 ...
1
vote
1answer
111 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. ...
1
vote
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?
1
vote
1answer
165 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 ...
1
vote
4answers
1k views

Generating a segwit (bc1) address from a brain wallet?

Are there any brain wallet generators that can generate segwit (bc1) addresses yet?
1
vote
1answer
736 views

bech32 addresses for segwit support in mycellium and coinomi?

Does mycellium and coinomi for android support bech32 addresses for segwit? If they don't would it throw an error if you tried to send it there?
1
vote
2answers
901 views

Create Pay to Witness Script Hash in Pay to Script Hash Address

I'm trying to generate a multisignature, segwit compatible address as a P2WSH nested in BIP16 P2SH as described in BIP141. Basically, I want to construct a P2WSH-nested-in-P2SH address from n public ...
1
vote
1answer
43 views

What happens to witness blocks?

What happens to witness blocks after they are broadcast to other witness nodes? Are they kept or forgotten after some blocks?
1
vote
1answer
134 views

Why does bitcoin-cli not show the correct TXID for this transaction?

I've been decoding some transactions on Testnet, and I've found one that bitcoin-cli decoderawtransaction seems to "fail" to decode correctly. Here's the TXID: ...
1
vote
1answer
407 views

How much will Segwit *actually* increase bitcoin capacity for realistic transactions?

I often see claims that Segwit increases transactions per block by 1.7x to 2x. I'm not sure if this is true, but if I do the math myself, I don't get this number. My understanding is: 1) The “weight”...
1
vote
1answer
105 views

Who is for SegWit and who is against? And what is the consensus?

I am a little lost in the whole political landscape of implementing SegWit, I understand that Bitcoin Core is for SegWit but are the miners against it? If not then who is against it and what is their ...
1
vote
1answer
750 views

I run Bitcoin Core 0.14.1, for Segwit they tell me to “upgrade” to 0.13.1. So confusing [duplicate]

Short version of my question: I run Bitcoin Core 0.14.1. Will I be fully compatible with the segwit soft fork after Aug 1 2017 with this version? IOW, I can simply do nothing and be segwit compatible? ...
1
vote
1answer
79 views

What was the last block before BIP91 activated?

https://www.xbt.eu/ says: BIP91 ACTIVATED! Non-SegWit signaling blocks will be orphaned. What was the last block before BIP91 activated?
1
vote
1answer
303 views

Segwit: Arbitrary data storage in witness?

Let's say I want to encode the text of the King James version of the Bible into the block chain, one piece at a time (replace this with any zany idea to consume copious quantities of block space). ...
1
vote
1answer
437 views

How to produce a p2wsh transaction with bitcoin-cli?

With the impending adoption of segregated witness, users reliant on the bitcoin-cli API would require to reconstruct new methods to re-produce more efficient transactions. Is there some guide out ...
1
vote
1answer
25 views

How were miners supposed to signal support for BIP148?

Under BIP141 (SegWit), you could signal support by setting nVersion bit 1 equal to 1. BIP9 counted: 20000002 100000000000000000000000000010 20000012 100000000000000000000000010010 30000007 ...
1
vote
1answer
41 views

Hardware Wallet Vulnerability Fix - Verifying Input Value

I'm confused by the proposed solution posted in the blog regarding the recent vulnerability https://blog.trezor.io/details-of-firmware-updates-for-trezor-one-version-1-9-1-and-trezor-model-t-version-2-...
1
vote
1answer
45 views

Decodescript for a Testnet pubkey hash address

This is the address information: bitcoin-cli validateaddress n35oDVMPNkHRzBKy7q9RDB7r5e8qbVa9SW { "isvalid": true, "address": "n35oDVMPNkHRzBKy7q9RDB7r5e8qbVa9SW", "scriptPubKey": "...
1
vote
1answer
72 views

What is the scriptCode in a P2WSH transaction?

Let's say I am spending from a 2-of-2 multisig with this script: ...
1
vote
1answer
67 views

How a SegWit transaction is accepted without witness?

I would like ask 2 questions. First, as perspective of legacy node(doesn't upgrade software): When SegWit transactions are transferred, witness data is stripped. It means that there are no signatures ...
1
vote
1answer
127 views

Error Signing P2SH-P2WSH MultiSig - “Unable to sign input, invalid stack size (possibly missing key)”

I am trying to create and spend a P2SH-P2WSH transaction using bitcoin-cli but am getting "Unable to sign input, invalid stack size (possibly missing key)" when I try to sign the Multi-Sig transaction ...
1
vote
1answer
106 views

Why do most exchanges still have not implemented segwit bc1 addresses to save block space?

Segwit bech32 bc1 addresses has been out for a good 2 years. Why do most exchanges still refuse to implement such a feature for its users? Exchanges create a bulk of the bitcoin transactions and also ...
1
vote
1answer
67 views

Failed CHECK(MULTI)SIG operation - BIP143 hash pre-image

Using Blockstream's api to broadcast a raw transaction to the Bitcoin testnet, I encountered the following error: sendrawtransaction RPC error: {"code":-26,"message":"non-mandatory-script-verify-flag ...
1
vote
1answer
180 views

How to sweep a bc1… bitcoin segwit address using a mobile app?

I have a bitcoin private key with some money on the segwit bc1 address, but when I try to sweep this private key using mycellium android wallet, it shows up as a 3... address. What other mobile app ...
1
vote
1answer
347 views

Can you send a transaction from non-native segwit to native(bech32) segwit address?

Let's say I have a wallet with a non-native segwit address (prefixed with 3- like multisig). Can I send my utxos from this address to a native segwit (bech32) address?
1
vote
1answer
531 views

sent BCH to a BTC Segwit address [duplicate]

Is there a way to recover the BCH ? Use his Ledger purse I've sent BCH To address BTC Segwit This link is treated https://explorer.bitcoin.com/bch/address/36CU6nDniJca1UVhvNhjsDdZpUsyYw5vSx I want ...
1
vote
1answer
742 views

Can you retrieve funds send to a legacy address created with a Segwit extended private key imported in Mycelium from a Ledger Nano S?

I imported a segwit xpub6-key in Mycelium as a watch only address. It only shows address starting with 1 instead of 3, which makes sense. I retrieved a small amount on the legacy address and it shows ...
1
vote
2answers
908 views

Converted Segwit address (YPUB) to Legacy (XPUB), but balances differ

I'm trying to convert a Segwit YPUB address I got from a Ledger Wallet to a Legacy XPUB address in order to query the transactions from the wallet. I've yet to find a reliable API that supports YPUB ...

1
5
6
7 8 9