Questions tagged [output-script]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
2 answers
60 views

What if someone locks some bitcoin with a script which only requires a user to know a preimage, but it matches the p2sh template? [duplicate]

The basic script for a lightning network HTLC output has a conditional branch which requires a user to know a preimage of a hash. It also requires the user to give a valid signature, but it got me ...
yonson's user avatar
  • 43
2 votes
1 answer
105 views

Can OP_DROP be used to include arbitrary data?

I have recently been looking into OP_RETURN and its uses in so far as including data in a transaction. Given the fact that OP_RETURN is limited to 80 bytes I thought what if OP_DROP was used? That way ...
user2334659's user avatar
0 votes
1 answer
50 views

How to set the output script of coinbase transaction

I found that the "getaddressinfo" command in RPC can get pubkey and scriptpubkey. My address pubkey scriptpubkey are: address='bcrt1q95h0le6kknpnjp4c29cau03gvdyxd35zug30yr' pubKey='...
Jack Green's user avatar
1 vote
1 answer
236 views

What is the way to create public key in P2TR?

I've started learning Taproot and I'm having trouble understanding some of the general story behind how it works in the context of a public key in scriptPubKey. The segWit v1 (Taproot) scriptPubKey ...
LeaBit's user avatar
  • 930
1 vote
1 answer
56 views

Does bitcoin transaction have source address?

I know that bitcoin transaction is based on UTXO, including input script and output script. But recently I browse bitcoin explorer and I found it listed source addresses of a transaction. I wonder ...
Harry's user avatar
  • 41
2 votes
1 answer
184 views

What is the content of ScriptPubKey for P2WPKH?

What is the content of ScriptPubKey for P2WPKH? Master bitcoin book 2end edition says the following (link): Example P2WPKH output script 0 ab68025513c3dbd2f7b92a94e0581f5d50f654e7 In programming ...
dassd's user avatar
  • 1,069
4 votes
1 answer
163 views

Why is concatenating scriptPubKeys and scriptSigs unsafe?

Around the 5:00 timestamp in this talk, John Newbery states that running the concatenation of scriptPubKey and scriptSig is unsafe, since it can result in someone using a carefully crafted scriptSig ...
Cosmik Debris's user avatar
1 vote
3 answers
86 views

How can clients know the destination address for this P2WPKH transaction?

This is the raw hex of a random transaction I picked up on the blockchain: ...
Pedro D.'s user avatar