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

37 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
661 views

To sign raw transaction in Segwit

I am using Bitcoin core 0.14.1 testnet. I created a Segwit address. transfer some coins to this address. Now I want to spend it. I created a raw transaction using console command i.e. ...
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
91 views

How to calculate p2wsh signature?

I read the bip143, but didn't understand how to calculate the scriptCode of p2wsh. bip143 told us: A new transaction digest algorithm is defined, but only applicable to sigops in version 0 witness ...
2
votes
0answers
106 views

What are segwit extended key prefix bytes for regtest?

I need the HD version bytes for equivalent of ypub, zpub, Ypub, Zpub but on the regtest network. I also need Ypub on testnet. All the rest I can find in slip132, but it is incomplete. thanks.
2
votes
0answers
99 views

Post SegWit Inclusion, how long until Lightning Network is included in the core?

Introduction - Reason for asking this question With most of the money in the cryptocurrency domain still being utilized in transactions on crypto-exchanges and the numerous hacks that have previously ...
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?
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 ...
2
votes
0answers
225 views

SegWit with BitCore-Lib

How to create a SegWit address and transaction using bitcore-lib?
2
votes
0answers
569 views

Is there any testnet faucet site that sends out to bech32?

I am writing a wallet for the far future and I am planning to completely drop the support for receiving to P2PKH addresses. I don't want to add P2SH over P2WPKH either.
2
votes
0answers
180 views

How much will Segwit increase the number of transactions that can fit in each block?

How much weight would the witness data have on the total block size? What is the culminating effect of this on the number of transactions that can fit into each block? Thanks in advance :)
2
votes
0answers
351 views

Why does segwit save space on the blockchain?

I've had a hard time finding a good source online that explains segwit. I've read the basic idea is to store the scriptSigs separately as the scriptSig is potentially malleable, and then compute the ...
2
votes
0answers
52 views

What is preventing segregated witness from being activated

Segregated witness has been around since 2015 with good publicity and proponents since early 2016. It seems to have the benefits of solving transaction malleability, creating a good foundation for the ...
2
votes
0answers
47 views

What new peer services do segregated witness nodes need to implement?

What new peer services do segregated witness nodes need to implement? In particular, if you want a node to relay both a block and its witness data, how do you request that?
2
votes
0answers
57 views

When is the estimated date that segregated witness gets fully implemented worldwide?

I read the news recently that reviews had already been done and that the segregated witness program will be on deployment soon, so when is it expected to be fully adapted worldwide? Or is there a ...
2
votes
0answers
98 views

A common criticism of Segregated Witness is that it is “unnecessarily complex”. Why is it chosen over alternatives?

Segregated Witness (SegWit) is well-along the way to being implemented and deployed as a soft-fork. Facts: SegWit eliminates most forms of transaction malleability. Discounts input scripts in ...
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
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
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
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
299 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
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
144 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
1answer
42 views

How to spend from a segwit address generated by a legacy wallet?

I used atomic pay payment gateway and a segwit address was generated by XPUB key i'm unable to spend the coins i sent to the generated address and coins are not visible in my legacy wallet what to do ?...
0
votes
0answers
47 views

Mycelium not reading segwit bech32 (bc1) addresses from a private key

I'm trying to import my bitcoin private key into the Mycelium android wallet, but it keeps showing up as the legacy address that starts with 1xxx. I sent some coins to the bc1 address and I verified ...
0
votes
1answer
53 views

In practice, are redeemScripts commonly reused?

In regards to P2SH-P2WSH transactions, are Txout-script values identical between transactions? Is it reasonable to expect a business or vendor that accepts bitcoin to be using the same redeemScript ...
0
votes
0answers
37 views

Will non-segwit addresses still be able to send bitcoin in 5+ years?

My public address starts with 1,and I can currently spend the Bitcoin from it. However, as more and more transactions become only segwit based, will miners eventually just abandon verifying ...
0
votes
0answers
123 views

Send to bech32 segwit address from Bitcoin Core 17.1

I have a non-HD wallet in Bitcoin Core v17.1. I have never used SegWit before. I need to send some coins to a bech32 address from bitcoin-qt GUI. The problem is after selecting the specific coin ...
0
votes
1answer
55 views

Following SegWit implementation, is BIP-146 signalling and implementation still on the docket?

Is BIP 146, which defines using the low S value, still on the docket to be signalled and implemented given that SegWit fixed the txid malleability issue by moving the witness outside the transaction? ...
0
votes
0answers
24 views

Bitcoin was sent out and still hasn't been received

I sent bitcoin out to a segwit address (P2SH) and it split the transactions in 2 but I still haven't seen them delivered in into the wallet
0
votes
0answers
21 views

Swift implementation of bitcoin transaction creation

Is there a well known and widely used Swift implementation for creating raw Bitcoin transactions and getting their hash (SegWit and Non-SegWit) of signing? If not, is there a reference document that ...
0
votes
0answers
38 views

SegWit-incapable miners won't include SegWit tx's but accept them as valid?

Why SegWit-incapable miners won't include SegWit tx's in their blocks but will accept as valid someone else's block with SegWit tx's in it?
0
votes
1answer
250 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": "...
0
votes
1answer
627 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.