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

Is it possible for the `size` and `vsize` to be the same for a valid segwit (bech32) transaction?

I'm aware that for non-segwit transactions, vsize is always the same as size. But is it possible for a valid transaction to include size=vsize when involving segwit inputs/outputs? This particular ...
1
vote
1answer
34 views

Reference to Segwit raw transation format

Could anyone provide me a link to the specification of segwit raw transactions such as provided in https://developer.bitcoin.org/reference/transactions.html#raw-transaction-format ? (This url explains ...
1
vote
1answer
91 views

Issue when broadcasting Taproot transaction to older nodes

I'm trying to broadcast a Taproot transaction to random nodes across the network (Testnet3). When I try to broadcast to older nodes like 0.18.0, I get the error "Witness version reserved for soft-...
2
votes
1answer
57 views

Is it okay to send witness transactions in response to `MSG_TX` get data messages?

I have a neutrino client that currently signals NODE_NONE. When it announces transactions it sends inventory messages and gets getdata MSG_TX requests back. Currently it replies with the witness ...
3
votes
1answer
150 views

How could a 2 byte witness program make sense?

BIP141 requires the witness program to be 2-40 bytes for segwit versions 1-16 (for v0 it must be either 20 or 32 bytes). When would a 2 byte witness program ever make sense? The 16 bits entropy is ...
3
votes
1answer
103 views

Why do you have to mine 432 blocks to activate segwit on regtest?

According to Rusty Russel, you need to mine 432 blocks to activate segwit on regtest. Why this specific blockheight? Sources: https://rusty-lightning.medium.com/segregated-witness-for-developers-...
1
vote
2answers
148 views

Derive Segwit Addresses From xPub or zPub using PYTHON

Summary I'm pulling my hair out trying to understand a couple of concepts. I would like to use a Segwit wallet in my Ledger Nano S to derive unhardened(?) child public keys (and thus segwit addresses) ...
0
votes
1answer
60 views

Does Ledger Nano S Have an xPub or a zPub for Bitcoin wallets?

{ "xpub": "tpub-big-long-key-that-starts-with-tpub", "index": 1, "freshAddressPath": "84'/1'/1'/0/0", "id": "libcore:1:...
0
votes
1answer
29 views

Error broadcasting SegWit transaction

I have this testnet transaction that I created: Version: 01000000 Marker: 00 Flag: 01 Input Count: 01 Input #1 TXID: 42a752fe4ebd0bdc69cb1b3724de6ccc364661028ab9c043526f3f7cb0571147 Input #1 ...
1
vote
1answer
50 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
56 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-...
3
votes
2answers
702 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
193 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
37 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
74 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
87 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
89 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 ...
0
votes
1answer
49 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
54 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
153 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
148 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
45 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
118 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
48 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
242 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?
4
votes
2answers
288 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
48 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
149 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
180 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
676 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
51 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
147 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
252 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
225 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
65 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
33 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
2k 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
169 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
1k 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
248 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
472 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?
9
votes
1answer
3k 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
63 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
32 views

BLS signature verification?

Is it possible to perform BLS signature verification with upcoming Taproot/Tapscript proposal?
0
votes
1answer
60 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
99 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
77 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?

1
2 3 4 5
11