Skip to main content
The 2024 Developer Survey results are live! See the results

New answers tagged

0 votes
Accepted

Implementing Conditional Fund Locking in Bitcoin Similar to Ethereum's Smart Contracts

There's a lot difference between ethereum and bitcoin regarding locking and unlocking fund, but let me roughly compare. Locking Funds Unlike ethereum, most transaction of bitcoin itself is an action ...
Hyunhum's user avatar
  • 305
4 votes
Accepted

Is it possible to "label" Segwit spendable output ScriptPubKeys with arbitrary bytes?

Would it be valid; spendable by a Segwit transaction? It is valid to create such an output, but it would not be considered a segwit output (see BIP141), and thus not spendable using a segwit input. ...
Pieter Wuille's user avatar
6 votes
Accepted

Is there an economic incentive to use P2WSH over P2TR?

Yes, having only a single leaf and all else being equal, a P2TR input costs 34 witness bytes (8.5 vbytes) more than a P2WSH input with the same script. However, almost all current usage of P2WSH (...
Vojtěch Strnad's user avatar
1 vote

Why does my PSBT's input script not have a pub key?

Though it is named scriptPubKey, it is a script which often does not contain a pubkey, nor even if it did, just a pubkey. The PSBT does not contain a pubkey because Bitcoin Core does not know enough ...
Ava Chow's user avatar
  • 71.1k
1 vote
Accepted

Does the Lightning Network support Bitcoin scripts, and what do the identifiers of Lightning wallets look like?

The lightning network is composed of nodes that span channels between each other. A channel is implemented per a 2-of-2 multisig output that is collaboratively controlled by the two nodes ...
Murch's user avatar
  • 76.4k
1 vote

Is the OP_PUSHBYTES_X opcode always required after OP_RETURN?

Script Notation: OP_RETURN <11 bytes hexadecimal> and OP_RETURN PUSH_BYTES_11 <11 bytes hexadecimal> are synonyms. They both translate to 0x6a0b<11 bytes hexadecimal>. I didn't know ...
Lee's user avatar
  • 958
2 votes

Can a Second Signer Add Data to a Bitcoin PSBT Transaction?

PSBT is just an interchange format for whatever information signers may need. It does contain an unsigned transaction as "the thing being signed". Nothing prevents participants from ...
Pieter Wuille's user avatar
2 votes
Accepted

Is the OP_PUSHBYTES_X opcode always required after OP_RETURN?

My existing answer stands, but as I feel we're talking past each other due to different assumptions about what Script notations mean, let me add this to dig deeper into that. I'm going to change the ...
Pieter Wuille's user avatar
3 votes

Is the OP_PUSHBYTES_X opcode always required after OP_RETURN?

This is a notational issue, resulting from how you're choosing to write the Scripts in readable form. This question simply makes no sense when you look at the actual binary encoding of Scripts, ...
Pieter Wuille's user avatar
2 votes

Is the OP_PUSHBYTES_X opcode always required after OP_RETURN?

It is not necessary for a data push to follow an OP_RETURN. By consensus, it is not required that an OP_RETURN be followed by a data push. Encountering an OP_RETURN stops Script execution immediately ...
Antoine Poinsot's user avatar
0 votes

modified Hash Time Locked Contracts

You cannot broadcast an incomplete transaction and have another user modify it later, because an incomplete transaction is not valid and invalid transactions do not propagate on the network. You could ...
Murch's user avatar
  • 76.4k

Top 50 recent answers are included