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
32 views

how do you tell P2WSH invoice addresses apart from P2SH?

... and how do you tell P2WPKH invoice addresses apart from P2PKH?
0
votes
1answer
46 views

Missing Witness field in p2wpkh decoded tx hex

I have placed together a raw tx hex but when it's unable to be broadcasted as I keep getting an error below sendrawtransaction RPC error: {"code":-25,"message":"bad-txns-...
0
votes
0answers
23 views

Parsing raw transaction vs. raw segwit transaction [closed]

I am writing a bitcoin blkXXXX.dat files parser for my own project. It works well with non-segwit transactions, but I have problems with SegWit transactions. Currently I read: version (4 bytes), ...
3
votes
2answers
625 views

Why are segwit transactions cheaper than legacy transactions?

What's the reason to make fees for segwit addresses lower, while keeping legacy addresses with higher fees? -- I'm interested in both, why segwit transactions are cheaper than legacy addresses, and ...
1
vote
1answer
123 views

What is the prefix number, in bytes, of a native segwit address?

I've seen lots of tables on which bytes to use as the prefix for types of addresses. For example 0x00 for legacy addresses starting with a 1. But what's the prefix for native segwit 'bc1q'? I've tried ...
3
votes
0answers
35 views

What are the malleability threat vectors when passing PSBTs to other actors?

If I am passing a PSBT (Partially Signed Bitcoin Transaction) between multiple people, and I pass on my signature for my UTXOs for given inputs, can someone take advantage of malleability and cheat me ...
0
votes
1answer
67 views

Most transactions in a block

Block 689074 had 4,463 transactions. Is this the highest number of transactions in a block until now? What are the things that affect the number of transactions possible in a block? Few observations ...
1
vote
1answer
62 views

Creating Witness Signature: non-mandatory-script-verify-flag (Signature must be zero for failed CHECK(MULTI)SIG operation)

So I am trying to do my own witness signatures as described in bip143. I have code that correctly verifies the example signature, so I thought I had a hold of the basic signing and verification. I ...
2
votes
2answers
88 views

The example signature in BIP143 doesn't validate?

In BIP143 the first example has a witness signature and it doesn't appear to validate/be correct?! I wrote a super simple python program to demonstrate import ecdsa import asn1 #Importing the 3 ...
1
vote
1answer
41 views

bip143 witness formatting

in bip143 thet define a witness signature. In the first example there is a witness broken down witness 00 02 ...
0
votes
1answer
50 views

When generating witness for bip143, how do you choose WHAT outpoint to use?

in bip 143 for creating a witness signature it describes what needs to be serialized/signed. One thing that the doc seems to be missing is how to determine WHICH outpoint to use. So in these ...
6
votes
1answer
121 views

Will P2TR make P2WSH obsolete?

Assuming users have upgraded their wallets to handle P2TR outputs and trust the validation rules of P2TR, would there be any advantage of using P2WSH over P2TR?
5
votes
1answer
132 views

Are the witnesses segregated with Schnorr signatures?

SegWit fixed transaction malleability by just moving the signature out of the block of data that's being hashed to form the transaction id. However, Schnorr does not suffer from signature malleability ...
1
vote
1answer
42 views

Are high-s ECDSA signatures forbidden in segwit witnesses?

I must have looked that up five times by now, but did segwit actually forbid high-s ECDSA signatures in witnesses, esp. in standard single-sig constructions such as P2SH-P2WPKH or P2WPKH? Or are high-...
0
votes
1answer
72 views

generating a zprv from a base58 rootKey with bitcoinjs-lib

var bitcoin = require('bitcoinjs-lib'); let bip32 = require('bip32'); let rootKey = 'xprv9s21ZrQH143K32CfqoCQHtbKiEb5BqFazXX6jCtNCnuty3gUjxS4CsXWi9rcNyHdjDVPiC6P1bnyEZr2ioouRq56h6HAdwejeTty1BsSEtL' ...
0
votes
1answer
38 views

Using Javascript, I want to generate a segwit private key (zprv) similarly to how I am generating my legacy base58 extended private key. How?

let bip32 = require('bip32'); let bip39 = require('bip39'); let { bech32, bech32m } = require('bech32') const seed = bip39.mnemonicToSeedSync('rural catch say tooth tell soul road pilot fee board ...
4
votes
1answer
221 views

Will cross-input signature aggregation need a new output type?

If cross-input signature aggregation were to get implemented in a subsequent soft fork after Taproot's activation, would its use require a new output type?
3
votes
2answers
242 views

Why are P2WSH addresses larger than P2SH addresses?

One would, perhaps naively, assume that both addresses are hashes of scripts and therefore ought to be the same size.
1
vote
1answer
31 views

Nbitcoin's BitcoinPubKeyAddress not recognizing native segwit addresses

I'm trying to build a transaction using Nbitcoin. When I run this line there is an error parsing the address. It runs fine with segwit addresses starting with a 1, but not native segwit. Using System; ...
1
vote
1answer
112 views

How to correctly create and import a SegWit paper wallet

I use Bitcoin Core to create SegWit paper wallets for friends and family. After creating the wallet via the GUI, the steps I take are as follows: getnewaddress # Carry this public key back to the ...
2
votes
3answers
176 views

How hard is it for an exchange to adopt native segwit? Is it not as simple as updating the address regex checker on the front-end?

Just wondering, maybe I'm missing something. Are there changes on the backend needed to be implemented as well? Not as simple as changing the regex validation on the front end?
0
votes
0answers
13 views

Why does Blockstream.info say "SegWit fee savings: This transaction saved XX% on fees by upgrading to native SegWit-Bech32"? [duplicate]

Why does Blockstream.info have a section, when viewing a transaction such as this one, that says: SegWit fee savings: This transaction saved 22% on fees by upgrading to native SegWit-Bech32 ?
0
votes
1answer
503 views

How can I generate SegWit addresses from a mnemonic using python?

So, I have written a script that generates BIP39 mnemonics. I now want to generate N native SegWit public keys from this mnemonic. I have found this, but it generates legacy addresses. It uses the ...
0
votes
0answers
46 views

Bitcoin sigscript

Please see the image Anyone has idea why this signature script is too short? Is this only r value ? If yes then where is s value ? And what is witness 1
2
votes
1answer
123 views

What prevents miners from inserting fake transactions given SegWit?

If I'm understanding segwit correctly, miners have to verify signatures in order to include a transaction into a block that they are mining. However, miners are not required to verify signatures in ...
0
votes
1answer
149 views

How do I convert a private key in hex to a Segwit private key expected by Electrum?

I've been following this code to generate SegWit addresses with python. However, I'm confused because this script doesn't output the private key in a usable way for Electrum. I found this site which ...
1
vote
2answers
175 views

Were anyone-can-spend transactions valid before SegWit?

Non-segwit nodes (legacy nodes) see segwit transactions as anyone-can-spend (ACS) transactions. It is clear that such a nodes can (and do) validate blocks containing ACS transactions, because the ...
1
vote
1answer
52 views

How are segwit block transactions verified?

From my understanding, segwit blocks send transaction information without the witness, which includes the signature. I thought nodes needed the signature to verify the transactions?
0
votes
1answer
26 views

Transfert d'adresse BTC Segwit vers adresse BTC non segwit [duplicate]

Bonjour, je viens de faire un transfert de BTC segwits vers une adresse BTC non segwit, pensez vous que cela pose un problèmes ???
0
votes
2answers
1k views

What is the new segwit network option on binance and how does it work? [closed]

Recently Binance announced support for segwit deposits. I see old address and lot of other options on the right with segwit in the end. Is it a new network? What are the other options mentioned on ...
1
vote
1answer
153 views

WitnessScript vs. Script Witness

In BIP 174/PSBT, there is a PSBT Input key-value pair called "PSBT_IN_WITNESS_SCRIPT" (0x05) and another called "PSBT_IN_FINAL_SCRIPTWITNESS" (0x08). What is the difference between ...
3
votes
3answers
970 views

XPUB, YPUB, ZPUB Converter Tools

I was wondering if there are any good X,Y,Zpub converter tools that any of you are aware of. For instance, a tool that could convert an Xpub into the equivalent Zpub. I was inspired to ask this ...
3
votes
1answer
186 views

Why did bech32 define a new base32 encoding scheme rather than use an existing one?

There are multiple existing base32 encodings (RFC 3548/4648, z-base-32, Crockford's etc). Why did bech32 define a new one rather than use an existing one?
3
votes
1answer
382 views

Can you break down what data is encoded into a bech32 address?

Can you break down what data is encoded into a bech32 address? e.g. bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4 How do bech32 addresses on testnet, regtest, signet compare?
7
votes
1answer
1k views

What is the difference between "native segwit" and "bech32"?

People seem to be using "native segwit" and "bech32" interchangeably. Are they really the same thing?
8
votes
1answer
2k views

Why does Taproot require a new address format?

Dawid Ciężarkiewicz asked on Twitter: Hey #bitcoin ers. I'm trying to figure out why taproot needs a new address format, as I missed it. If you have a good link or something - please share. I thought ...
1
vote
1answer
1k views

What's the deal with "legacy" and "segwit" wallets?

I'm new to bitcoin, but I've already read about "legacy" and "segwit" wallets. At the beginning, I created a segwit wallet, given that it was described as a new standard. But then ...
0
votes
1answer
53 views

Segwit transaction - Non-canonical DER signature

Error (when sending) error code: -26 error message: 64: non-mandatory-script-verify-flag (Non-canonical DER signature) Transaction ...
1
vote
1answer
30 views

BLS signature verification?

Is it possible to perform BLS signature verification with upcoming Taproot/Tapscript proposal?
0
votes
1answer
55 views

Advanced math operations in TapScript?

Hence BIP 342 proposes to enable opcodes like OP_MOD, OP_DIV, OP_MUL is it possible to perform advanced math operations like EC point addition/multiplication in a script size of up to 10kB?
2
votes
1answer
81 views

Where is the witness data stored in the raw block data

I can see in BIP-141 where the merkle hash is stored. And I think its clear that the witness data won't be streamed inline with the TXN data. So I assume the witness data is simply thunked on to the ...
1
vote
1answer
65 views

What RBF policy will be default on SegWit v1 nodes?

What RBF node policy will be applied by default in order for a SegWit v1 transaction to relay when encountered. Full RBF, or Opt-in RBF?
3
votes
1answer
433 views

How can the segwit witness data be "off-chain"? What does it really mean?

I have several questions regarding the segwit witness data. My current understanding is as follows. Before segwit, the witness data was part of the input that the user had to provide so that they ...
1
vote
2answers
438 views

Can a single wallet generate (and use) both SegWit and non-SegWit addresses?

Is a Segwit wallet able to generate and use non-Segwit addresses? I'm using Bitpay's Bitcore to create wallets and generate new addresses for the users of my platform. I'm also using Bitcore-wallet-...
0
votes
2answers
64 views

Links for websites that were used to show miners signaling support for segwit

Anyone got links for websites that were used to show miners signaling support for segwit? or screenshots? Also wanted to confirm if my assumptions are correct about the whole thing: Initially BIP 9 ...
2
votes
1answer
756 views

Compatibility questions regarding Native Segwit addresses

I have a question regarding Native Segwit addresses. I understand that those addresses are more efficient and that you save on fees when you send BTC from them. However, does it matter which type of ...
0
votes
1answer
53 views

Error: Non-canonical DER signature when attempting to broadcast signed Segwit Transactions

I'm trying to build a native Segwit transaction programmatically, however, whenever I attempt to broadcast the transaction, it returns this error: non-mandatory-script-verify-flag (Non-canonical DER ...
4
votes
1answer
63 views

What is the "value" in a Segwit sig hash?

The BIP143 docs state that the value is: "value of the output spent by this input (8-byte little endian)" If I have a single UTXO of value 10,000 sats and I'm using this as an input for a ...
1
vote
1answer
129 views

Version prefix used for Bech32 addresses

I was compiling a table for Version prefix (hex) and Base-58 result's prefix for different types of Bitcoin addresses. I came across the content here: https://en.bitcoin.it/wiki/...
0
votes
1answer
103 views

If I delay upgrading to the latest Bitcoin Core version post Taproot activation does my node ever verify early Taproot spends?

Let's assume the Taproot soft fork is activated in June 2021. I continue to run an old version of Bitcoin Core (not enforcing Taproot rules) in July 2021 and so my full node treats valid Taproot ...

1
2 3 4 5
10