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

Questions tagged [input-script]

The input script ("scriptSig") is a transaction component used to satisfy the spending conditions specified in the output script ("scriptPubKey"). It is only used with legacy output types, for native segwit outputs it is empty and replaced by the witness structure.

3 votes
1 answer
70 views

What are the Trade-offs for Input Script Deduplication?

One possible optimization to compress bitcoin transaction size is avoiding repetition of redundant data between inputs. As a consensus change, a new transaction type could allow signing a list of txid:...
Otto Allmendinger's user avatar
1 vote
0 answers
29 views

ScriptSigSize fdf501 [duplicate]

I am trying to understand what scriptsigsize is. If I look at this transaction, the scriptsigsize of the first input would be "fdf501"? If I convert it to decimal, it cannot be the ...
Jim Quick's user avatar
1 vote
1 answer
41 views

Transaction Validation

What will it mean if the tranasaction input contains both signature script and witness, in case of scriptpubkey_type of p2sh or p2pkh, will it be invalid or valid ? As we use witness for SegWit ...
lladane's user avatar
  • 11
1 vote
2 answers
113 views

Why do some P2SH spending transactions have data both in the ScriptSig and Witness field?

I wonder if the wallet screwed up or if I am missing something in my bitcoin understanding. Here is the tx output being spent: "value": 0.00180675, "n": 154, ...
J S's user avatar
  • 35
0 votes
1 answer
45 views

Bitcoin API for getting an input script?

I wanted to try talking to my bitcoin node to get the input scripts and put them into a database. Does anyone have good resources on where I can look to get started?
hana's user avatar
  • 35
2 votes
1 answer
167 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
3 votes
1 answer
171 views

Processing bitcoin reward block's input transaction

I'm parsing the block response of my bitcoin node and everything is going ok. The only thing I don't understand is how to parse the input transaction of the block reward. This is the array that I see ...
Monte Conte's user avatar
1 vote
1 answer
57 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
0 votes
1 answer
100 views

conditional spending from P2WSH address

What im doing wrong? Sinse I found out that Bitcoin is programmable money Im trying to use it potential. Using this site https://improvein.github.io/bitcoin-forge/?#/script/create I’ve created a ...
bitc's user avatar
  • 1
0 votes
1 answer
109 views

What fields of a coinbase transaction can be empty?

Is it correct to say: As the coinbase transaction doesn't need to identify an output, there is no need for the input scriptSig. Would a block be accepted in which the coinbase transaction has an ...
Lee's user avatar
  • 958
0 votes
1 answer
147 views

HOW TO SPEND P2SH with Redeem Script Hex?, Already make the transaction but still have some error

I HAVE ERROR "scriptsig-not-pushonly" on this ...
Tepan's user avatar
  • 3
4 votes
1 answer
170 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
1 answer
38 views

`fundrawtransaction` error when trying to spend an HTLC

I'm trying to use the fundrawtransaction RPC command in order to create a transaction spending an HTLC output. Here is the command i've entered: fundrawtransaction "...
Rafique Scott's user avatar
2 votes
1 answer
84 views

What is prepended to the front of a ScriptSig and ScriptPubKey of a P2PKH transction?

In some educational materials on bitcoin P2PKH transactions, I'll see 2 digits included in the front of what would be considered the ScriptSig. For example, what is the 8b in the front of the ...
jiamijiang's user avatar
2 votes
1 answer
108 views

Why inputs' scriptSig are stripped before the whole transaction being signed?

In this video, the lecturer explains that before the whole transaction get signed, the scriptSig part of inputs are removed, and this causes the ability to perform transaction malleability attacks. My ...
Amir reza Riahi's user avatar

15 30 50 per page
1
2 3 4 5 6