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

Multisig scripts hashing (p2sh): difference between legacy and segwit

Some time ago I noticed that, given the same inputs, addmultisigaddress and createmultisig Bitcoin core's methods were generating different p2sh (addresses). I asked around and a user from the ...
1
vote
0answers
51 views

Stripped segwit data

I have two client Bitcoin, 0.17.0 and 0.12.0 and I want to see the difference between the same transaction. 0.17 has segwit, 0.12 doesn't have. If I do that RPC call in 0.17.0 /bin/bitcoin-cli -...
1
vote
1answer
107 views

What's the segwit transaction serialization “flag” field for?

According to bip 141, the segwit transaction serialization format (used to compute the wtxid) is: [nVersion][marker][flag][txins][txouts][witness][nLockTime] The bip mentions that the flag field ...
1
vote
2answers
112 views

Electrum's “script hash” form with NBitcoin?

I've come across how scripts are hashed in the electrum (stratum) protocol implementation by looking at the docs. I'm using NBitcoin, and I've tried to generate this hash from a segwit address, first ...
1
vote
0answers
14 views

I sent BCH to a segwit btc address, how can i get it back? [duplicate]

I accidentally sent bitcoin cash to a segwit bitcoin address, please can anyone help me on how i can get it back. i tried using this recovery service, https://bch.btc.com/docs/help/...
1
vote
0answers
48 views

Segwit versioning limitations

Currently my understanding is that if new version of Segwit script is introduced, you are free to create whatever crazy rules you want there as long as they do not go against any valid consensus rules....
1
vote
0answers
209 views

How to send Bitcoin Cash from BTC segwit address? [closed]

I'm trying to build a nodejs command with commander, bitcoinjs-lib, bitcoincashjs, blocktrail-sdk. Currently I got the problem when trying to spend the Bitcoin Cash of segwit address. Example: A is ...
1
vote
0answers
54 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
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 ...
1
vote
1answer
2k views

Can I send balances to Segwit address from non-segwit address?

I have some balance on my first exchange. It use 1~ address. I'm trying to withdraw this balance to my Bitcoin Core's 3~ address.(Which is Segwit address, right? I made this by addwitnessaddress ...
1
vote
1answer
136 views

Why is the bytestring 0xaa21a9ed used as the witness commitment header in SegWit?

As per BIP 141, the witness Merkle root hash is stored in a scriptPubkey field of a coinbase transaction output with a header consisting of the 4-byte string 0xaa21a9ed. What is the reasoning behind ...
1
vote
1answer
312 views

What is a “serialized signed transaction”?

Shown in the gray area here, describing how to apply, I think, Segwit to a transaction (particularly a Bitcoin Cash tx). The last section is titled "serialized signed transaction" however it doesn't ...
1
vote
0answers
297 views

use addwitnessaddress outside bitcoin core's wallet. Are there any libraries?

I want to create P2SH of witness script. I know bitcoin core has addwitnessaddress rpc method but I want to use it for addresses which are outside bitcoin core's wallet. I tried to find the tools on ...
1
vote
0answers
17 views

(Reference request) Is there a better (but also fully technical) source to read how exactly SegWit works other than the official BIP141 document?

I'm slowly making my way through https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki and while it seems that with more time I should be able to understand it properly, it's going rather ...
1
vote
0answers
137 views

Parsing a SegWit transaction, what are stack items in witness data

For every input we can have multiple stack items, what do these represent? As a reference this question is helpful Are these defined here? For eg. P2WPKH would have a signature followed by a pubkey, (...
1
vote
0answers
53 views

What does the SegWit2MB proposal agreed upon at Consensus 2017 entail for the bitcoin network?

From what I've read, I know this proposal is the combination of a hardfork to 2MB blocks with the activation of SegWit, but I haven't actually seen the code for this proposal to understand what the ...
1
vote
0answers
53 views

What is segregated witness? [duplicate]

I have heard increased talk of an idea known as "segwit" or segregated witness. Quite simply, what is "segwit", why are people discussing it now and what are its main implications?
1
vote
0answers
226 views

How to make Simplecoin's powerpool to support Litecoin Segwit?

I tweek the code transation.py https://github.com/simplecrypto/cryptokit/blob/master/cryptokit/transaction.py#L150 add: if (self.default_witness_commitment is not None): data += b'\x00' ...
1
vote
0answers
143 views

How to redeem a p2wsh transaction?

Now we know how to redeem standard P2SH and P2PK transactions, but now since witness scripts are no longer included in transactions, how would script evaluation work under segregated witnesses?
1
vote
0answers
65 views

Can the first part of P2WSH witness data use non-push-data operations?

BIP 141 describes a new kind of authentication template called Pay-to-Witness-Script-Hash (P2WSH). This template moves challenge and response scripts to witness data. The last element of witness data ...
0
votes
2answers
57 views

Are non-SegWit transactions still malleable?

SegWit was (amongst other improvements) introduced to fix malleability issues. Does that mean that non-SegWit transactions are still malleable? If so, what types of malleability could still happen in ...
0
votes
1answer
645 views

How to verify if it's Segwit Transaction or not?

Segwit Usage chart example : https://p2sh.info/dashboard/db/segwit-usage?orgId=1 I Would like to verify by checking tx if it's Segwit Transaction or not. Is there any simple method to do this? ...
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?
0
votes
1answer
35 views

How Segwit makes transactions smaller? What about the witness?

I have seen similar questions without a clear answer. So, how does Segregated Witness make transactions smaller? I understand it removes data from the transaction hash and solves malleability ... But ...
0
votes
2answers
125 views

SHA256 vs RIPEMD160 in SegWit

In Pay-To-Witness-Public-Key-Hash (P2WPKH), the RIPEMD160 hash function is used to hash the public key of the recipient in the locking script. On the contrary, Pay-To-Witness-Script-Hash (P2WSH) uses ...
0
votes
2answers
672 views

SegWit witness commitment merkle root location

BIP 141 defines the commitment structure here What i am unsure about is the location of this data. I know it will be in scriptPubKey. Does this mean Coinbase tx will have more than one output? Also is ...
0
votes
2answers
43 views

Transaction order in the blockchain

What is the difference between segregated witness (segwit) and canonical transaction ordering (CTOR) ?
0
votes
1answer
57 views

P2PUBKEY in witness program (P2WPUBKEY)

Old standard transactions format included 3 types: P2PUBKEY, P2PKH, P2SH. After Segwit soft fork, we have got 2 additional types: P2WPKH and P2WSH. If we compare the cost of spending inputs (in bytes ...
0
votes
1answer
283 views

SegWit - what is the address I need to deposit to?

I'm using bitcoin core 0.16.0 on regtest and call getnewaddress I'm getting "2N4dpih8KAdfJyXn2vhWixUwmYJ6DBfeRM1" As I call validateaddress "2N4dpih8KAdfJyXn2vhWixUwmYJ6DBfeRM1" I get:  { "isvalid"...
0
votes
2answers
217 views

Using BitcoinJS - How do you verify a message using a segwit bech32 (bc1…) / P2SH (3…) addresses?

I created a signature from a message using my private key. But how do I verify this signed message using my segwit addresses of 3... or bc1...? How do I verify this using the BitcoinJS library?
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 ...
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? ...
0
votes
2answers
73 views

Raw SegWit TX look solid and verifies, but is rejected. Need help figuring out why

Consider the following transaction expressed as hex: ...
0
votes
1answer
146 views

Access funds on legacy address related to segwit address from which I have private key

The situation Hello. Our company running BTC pool. We've been mining BTC for a while and used segwit address 32Z3eXSPgxcHj2fnQy8d6dg66eVtZfxrBM as pool adress. But when we finally found a first ...
0
votes
1answer
215 views

BIP 84, BIP 173 Implementation in BitcoinJ

Can BitcoinJ (Java) supports complete implementations of BIP 173, BIP 84? How can segwit address can be created using BitcoinJ for SPV wallet?
0
votes
1answer
365 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
279 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 ...
0
votes
1answer
145 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 ...
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-...
0
votes
1answer
43 views

Is there an oveview of organizations support of segwit/segwit2X?

I'm trying to get an overview of what parts of the ecosystem that support what, preferably by economic activity. Is there any good lists or overviews?
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 ...
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
348 views

Armory and segwit addresses

I'm using Ledger wallet, and it recently prompted me to migrate to new Segwit address type. If I want to use Segwit transactions from Armory, do I have to do something similar (I have installed ...
0
votes
2answers
143 views

What is the difference between Bitcoin Core and UASF?

I am a little confused about what the actual difference is between Bitcoin Core and UASF, are they both only for SegWit? If so who is then for SegWit2X?
0
votes
1answer
177 views

What is impact of the possible nitwit fork on August 1? Will it double the coins I have?

If the Nitwit proposal is activated at the end of July then as I understand a hard fork will occur because miners and nodes that continue using the old software will generate blocks in the old format, ...
0
votes
1answer
21 views

Witness data storage localisation in the blockchain

Since segregated witness is in place inside Bitcoin blockchain, my understanding is that witness data are no longer stored inside the blocks, so if blocks are linked to each other where theirs ...
0
votes
1answer
70 views

Javascript library or code that can convert an “uncompressed” bitcoin private key to a compressed one

I forked a pretty old brain wallet generator: https://dvdbng.github.io/memwallet/ -- Currently it generates uncompressed bitcoin private keys. Is there a javascript library that can convert an ...
0
votes
1answer
35 views

P2WPKH - which private key is used to generate signature?

I am looking at the BIP143 P2WPKH example. I am kind of following until the generation of the sigHash: c37af31116d1b27caf68aae9e3ac82f1477929014d5b917657d0eb49478cb670 but then that is used to ...
0
votes
1answer
22 views

Alternative to Python pip bitcoin

This Python pip package https://pypi.org/project/bitcoin/ was originally developed by Vitalik Buterin (that Ethereum guy) but is no longer maintained. Is there any alternative equivalent pip package ...
0
votes
1answer
66 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 ...