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
1answer
103 views

How to generate the digest from a raw bitcoin transaction for verifying signature of specific input?

I'm writing a stand alone process that needs to verify that a known UTXO is part of a new transaction with a valid signature. Inputs [ UTXO, raw transaction, input_number ] How do to I verify the ...
0
votes
1answer
174 views

regtest: ERROR: ProcessNewBlock: AcceptBlock FAILED: unexpected witness data found (code 16) on v0.14.3

I have two bitcoind regtest processes; v0.16.3 and v0.14.3. I got "unexpected witness data found (code 16)" when v0.14.3 node try to received a block from the peer (v0.16.3) How can I fix it? (I'm ...
0
votes
1answer
84 views

Struggling to successfully broadcast a p2pkh transaction

I've been experimenting with sending bitcoin transactions with python for the past week. I successfully was able to send p2wpkh->ALL address types, p2sh-p2wpkh->ALL address types. What I am ...
0
votes
1answer
48 views

Is there any format change in block #498557

I wrote some python code to parse the block data, all the result are fine, until block01095.dat, block #498557. The code to deal with Transaction is: class Tx: def __init__(self, blockchain): ...
0
votes
1answer
34 views

Are higher versions of segregated witness script non-standard?

My understanding is that only version 0 is defined but other versions are considered valid to allow extensions using soft forks, but are they non-standard at the moment?
0
votes
1answer
87 views

What are segwit txs?

Which one is a segwit tx? A Tx that send outputs to a segwit address or A Tx that create inputs along with witness part? Which one? should segwit tx necessarily produce outputs of type ...
0
votes
2answers
148 views

How does a non-segwit full-node validate a SegWit input

From segwit part of reading bitcoinbook, there is an example for upgrading P2PKH to P2WPKH: Alice created a transaction to pay Bob for a cup of coffee. That transaction created a P2PKH output ...
0
votes
1answer
239 views

How to add support for segwit address and legacy with bitcoin core 0.16?

I've been running bitcoin core 0.15 as regtest, and had X bitcoin in my balance all are from legacy output addresses, As I upgraded to 0.16 core version check in debug the legacy addresses are still ...
0
votes
1answer
61 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?
0
votes
2answers
598 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 ...
0
votes
1answer
527 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 ...
0
votes
1answer
434 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 ...
0
votes
1answer
362 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?
0
votes
2answers
160 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?
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 ...
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 ...
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
2answers
102 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 ...
0
votes
1answer
760 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 ...
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 ...
0
votes
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?
0
votes
1answer
683 views

Which crypto currency exchanges are using segwit (bc1) addresses for its users?

Are any of the cryptocurrency exchanges using native segwit (bc1) addresses for any of its users?
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
148 views

Can a created segwit address match a non-segwit vanity address?

For example, if I have the following vanity address: 1abcde.... as my current bitcoin address, is it possible to create the same vanity address for Segwit: 3abcde... ?
0
votes
1answer
199 views

Why Segwit makes blockchain faster?

In Bitcoin blockchain, Segwit takes the script, which containers the signature and sender's public key, out of each transaction and stores them into an extended block. However, why having an extended ...
0
votes
1answer
5k views

Where can I buy bitcash

Is there any where I can buy bitcash ahead of the fork? Or do I need to keep my bitcoin in wallets that won't signal 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 ...
0
votes
1answer
238 views

Why is BIP-147 (Dealing with dummy stack element malleability, part of segwit) necessary?

Given BIP-11 (M-of-N Standard Transactions) it's not clear why BIP-147 (Dealing with dummy stack element malleability) is necessary. BIP-11 states: OP_CHECKMULTISIG transactions are redeemed using ...
0
votes
1answer
978 views

Can I get the wallet in bitcoind to use P2SH segwit (on testnet)?

Can I use the wallet functionality in bitcoin cli daemon with P2SH segwit on testnet/regtest? Meaning, can I receive on these addresses and send from them? And if I can, how? I cannot find it ...
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
120 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
153 views

Segwit txin. Witness data association

I am trying to learn more about the bitcoin protocol and I am writing some python software to make a light wallet. I have advanced quite far and I have come across something that I dont really ...
0
votes
1answer
559 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?
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
208 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
55 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] => ...
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. ...
0
votes
2answers
831 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 ...
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?
0
votes
1answer
622 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.
0
votes
1answer
330 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-...
-1
votes
2answers
470 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
1answer
178 views

How to make segwit transaction and bech32 mandatory

Is it possible to make segwit transactions (and possibly segwit address: Bech32) mandatory in the Bitcoin Core code? In other words, when a transaction is created using the wallet, the transaction ...