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
52 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
150 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
11 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
103 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
32 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
0
votes
1answer
39 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
42 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
74 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
35 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
21 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
813 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
105 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 ...
2
votes
2answers
375 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
96 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
201 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
780 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
872 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
531 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
35 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
27 views

BLS signature verification?

Is it possible to perform BLS signature verification with upcoming Taproot/Tapscript proposal?
0
votes
1answer
35 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
49 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
48 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
323 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
263 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
58 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 ...
1
vote
1answer
545 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
35 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 ...
3
votes
1answer
40 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
72 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
69 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
vote
1answer
213 views

Export from Bitcoin — import to Bitcoin Cash

I have address 3GXXiZhq1MZFeWtM6wFUWDA9wSLQh2NU6E, generated by my Bitcoin Core v0.20.0. Accidently I sent Bitcoin Cash there. I use dumpprivkey 3GXXiZhq1MZFeWtM6wFUWDA9wSLQh2NU6E console command and ...
-1
votes
1answer
72 views

How to get the raw signature data of a transaction?

With the use of segwit, signature data is no longer part of transaction body and thus can’t be retrieved from block explorers. So is there a Bitcoin rpc method in order to get it directly without ...
2
votes
1answer
76 views

What makes a transaction a SegWit transaction or a non-SegWit transaction?

Can we say that if there is at least 1 input with a legacy script then the tx is a non-segwit transaction?
1
vote
2answers
191 views

What's the blocksize limit after segwit and how do legacy nodes deal with segwit transactions?

Normally, I heard that the bitcoin blocksize is 1MB, but with the Segwit update the blocksize can be up to 4MB, so we should say that the blocksize is 4MB, right? Moreover legacy nodes only receive ...
1
vote
1answer
215 views

how to generate bech32/segwit address from pubkey in golang

I am trying to generate bech32/segwit address in golang with the following code: var pubkey *btcec.PubKey address, err := btcutil.NewAddressPubKey(pubkey.SerializeCompressed(), chainParams) if err != ...
7
votes
1answer
223 views

What are the different upgradeability features in the BIP-Taproot (BIP 341) proposal?

What are the different upgradability features in the BIP-Taproot (BIP 341) proposal? Why are there so many upgradability paths? Is there something an annex can do that a leaf version can't? This ...
0
votes
1answer
65 views

Are P2PKH or P2SH transactions malleable?

BIP66 fixed one source of transaction malleability and segwit, to my understanding, fixed the rest of the sources. Yet, there are still many common types of non-segwit transactions in use, like P2PKH ...
2
votes
1answer
45 views

Retrieve address when create a channel lightning network

I have two nodes in regtest. the first one is: $ l1-cli getinfo { "id": "02c3f99e70c8da59e428dd119d36c0a1317e5cd85218a760355b5f9b4f822f6109", "alias": "ALICE&...
3
votes
1answer
129 views

Get public or private key from address with C-lightning

I'm studying Lightning network and I use c-lightning. I can Get a new address with newaddr method, but I can't find private key. My address is bcrt1qmckts70jsq2u5886lgcq2yn7xjmp97t09zlrg, how can I ...
1
vote
1answer
38 views

How were miners supposed to signal support for BIP148?

Under BIP141 (SegWit), you could signal support by setting nVersion bit 1 equal to 1. BIP9 counted: 20000002 100000000000000000000000000010 20000012 100000000000000000000000010010 30000007 ...
0
votes
0answers
31 views

Speed of decoding Bech32 addresses

I am trying to understand if Bech32 can be a bottleneck in some specific cases (only Bech32, not Bitcoin itself). What is the hypothetical speed decoding the address back to the streamable format in ...
1
vote
1answer
48 views

Hardware Wallet Vulnerability Fix - Verifying Input Value

I'm confused by the proposed solution posted in the blog regarding the recent vulnerability https://blog.trezor.io/details-of-firmware-updates-for-trezor-one-version-1-9-1-and-trezor-model-t-version-2-...
6
votes
1answer
155 views

Segwit & Offline Signing

Yesterday Trezor released details of a segwit-related hardware wallet vulnerability. The writeup claims that providing full previous transactions to the hardware wallet prevents the exploit. My ...
1
vote
2answers
2k views

segwit compatilibity bc1 and 3 bitcoin wallet?

I would like to know what's the better aproach for upgrading from a legacy address to a segwit one, but there are two type of segwit as P2SH starting with 3 and Native SegWit (bech32) starting with ...
0
votes
2answers
233 views

Does number of inputs or outputs affect bitcoin transaction fee?

I would like to know how inputs and outputs affects my bitcoin transaction fee using legacy address, and how using a segwit address will decrease the same transaction? and how they will be ...
4
votes
1answer
123 views

Why is a minRelayTxFee of 1000 sat/kb not equivalent to 250 sat/kw?

Naively, we would expect a minRelayTxFee of 1000 sat/kb to correspond to 250 sat/kw. However, apparently this is not so according to this issue (ACINQ), which also references this issue (c-lightning). ...
1
vote
1answer
126 views

Decodescript for a Testnet pubkey hash address

This is the address information: bitcoin-cli validateaddress n35oDVMPNkHRzBKy7q9RDB7r5e8qbVa9SW { "isvalid": true, "address": "n35oDVMPNkHRzBKy7q9RDB7r5e8qbVa9SW", "scriptPubKey": "...
2
votes
1answer
64 views

What is the link between address and use of the UTXO?

I state that I'm still a beginner. I need some clarification. I am using the Testnet. This is the information regarding the address I used to receive funds from a Faucet bitcoin-cli validateaddress ...
0
votes
1answer
30 views

Limitations in P2WSH custom script

I did a stupid custom validation script in P2SH where after check signature, check if OP_3 is equal of OP_3. Now I want to move the same logic in P2WSH multisignatue 1-3. it's my script $ bitcoin-...

1
2 3 4 5
10