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

ELI5: How does Segregated Witness (segwit) work?

Can someone ELI5 Segregated Witness (AKA BIP 141)? I've been doing research and understand that there are segwit addresses, there are segwit transactions, and there are segwit nodes. I understand ...
2
votes
1answer
166 views

Why do we need public key as part of Witness in P2WPKH transactions?

As we want to minimize the data payload in a blockchain, which also led to concepts like SegWit, and is matter of discussion in Signature aggregation etc, I wonder why do we actually need to supply ...
1
vote
1answer
532 views

How to check ownership of wallet with segwit address

So .. this seems like a simple question. If i have a wallet and someone wants to send me BTC. I want to make sure they own the wallet they claim to be sending funds from. Usually people do something ...
2
votes
2answers
205 views

Why non-SegWit nodes do not reject SegWit block since there is no witness?

SegWit is meant to be backward-compatible. When a SigWit block is relayed to a non-SegWit node, the witness part is stripped. If this is the case, wouldn't it be invalid since the non-SegWit node sees ...
2
votes
2answers
631 views

Bitcoin - Technical difference between P2PKH and P2SH address generation?

I was convinced that the only difference between the generation of addresses starting with '1' and '3' was simply changing the prefix added to the digest from 0x00 to 0x05 after the ripemd160 part. ...
3
votes
1answer
46 views

Is SegWit similar to/ derived from Hyperledger Fabric?

Segregating the witness (signature) data from the transactional data is similar to the structure used in Hyperledger Fabric. Curious about the derivation of SegWit?
8
votes
2answers
2k views

What the difference between old segwit (3) and new segwit address (bc)?

i'm not that kind of person who understands cryptography and math, can you tell me simply the main purpose of new segwit address? are transactions fee the same for new segwit (bc1)? instead of "Old ...
1
vote
1answer
67 views

On SPV clients and Segwit

An article released by Blockstream claims that after Segwit, SPV clients can verify that transactions have been accepted by the network without having to download the signatures/witness-data. I'm ...
1
vote
1answer
35 views

Is it more profitable to mine non-SegWit blocks

The fees for a SegWit address are lower than non-Segwit ones. Is there less fees per block with Segwit blocks? Is it less profitable to mine Segwit blocks?
2
votes
1answer
117 views

How does a non-segwit full node ensure validation of the blockchain?

Let's say a block been created with most tx are segwit , now the block is more then 1MB and will be near to 4MB, I understand that a non-SegWit node ( let's say bitcoin-core 0.15 ) cannot get a block ...
2
votes
1answer
503 views

OP_RETURN in a coinbase transaction?

Hey looking at this transaction I'm confused why there are two outputs and why one of them is labelled with OP_RETURN
2
votes
1answer
130 views

Extract lightning network funding transactions with python bitcoin blockchain parser lib

My ultimate goal is to parse funding transactions (as well as channel closes in a later step) from the blockchain. In order to do so I wanted to start with a funding transaction and disect it. ...
4
votes
1answer
654 views

Qualities of “Pay to Nested Witness Key Hash”

The lightning dev tutorial mentions the np2wkh or Pay to Nested Witness Key Hash address type, and I would like to find out more about it, so far without success. Can anybody explain how they are ...
5
votes
1answer
437 views

What are the standard formats of transaction outputs?

A transaction output can have the type Pay to public key hash, P2PKH, where the ScriptPubKey field has the format: 76 a9 14 <20-byte hash of pubkey> 88 ac Pay to script hash, P2SH, used for e.g. ...
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
1answer
214 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
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 ...
1
vote
1answer
140 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?
0
votes
2answers
215 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?
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
1answer
176 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 ...
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?
1
vote
1answer
849 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
418 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
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": "...
1
vote
1answer
364 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
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?
3
votes
2answers
825 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
202 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
189 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
361 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 ...
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
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 ...
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
69 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
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
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 ...
5
votes
1answer
635 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
305 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
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 ...
1
vote
1answer
715 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
393 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
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] => ...
1
vote
1answer
170 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
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 ...
1
vote
1answer
96 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
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?
1
vote
1answer
247 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 ...