Author

Topic: Signed txn - inserting scriptsig (Read 181 times)

legendary
Activity: 2730
Merit: 7065
March 04, 2023, 12:10:42 PM
#15
Maybe because he doesn't have the key to sign the transaction...
He mentioned in the OP that the transaction is signed and that he also has the scriptsig, but somehow it's missing from the transaction he built. Maybe he just thinks it's signed. I don't understand how it can be missing and still be a valid and signed transaction. How do you prove to the software you can spend those coins without the scriptsig? It shouldn't work. And if it doesn't, how can there still be a valid signature for something you can't spend?   
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
March 04, 2023, 12:47:33 AM
#14
@hexvir, with what message do other nodes respond? If you don't have a scriptSig, and you attempt to broadcast such transaction, you'll likely get a "transaction has no inputs" message.
hexvir isn't the OP  Cheesy
From what I see, his reply is to give OP an alternative mempool explorer or blockexplorer site.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
March 03, 2023, 03:03:02 PM
#13
Maybe because he doesn't have the key to sign the transaction, I remember OP somewhere mentioned that someone stole 10,000 bitcoins only having signatures and something other than private key, in the past he had asked if it's possible to spend by using signatures of a transaction or not.
Yes, but as I can see above, it's not related to that case.

This however could be totally a different situation, but I can't see a reason as to why someone would want to go all the long way and not just use the key.
Maybe just for educational purposes?

@hexvirMikeJ_NpC, with what message do other nodes respond? If you don't have a scriptSig, and you attempt to broadcast such transaction, you'll likely get a "transaction has no inputs" message.
copper member
Activity: 1330
Merit: 899
🖤😏
March 03, 2023, 02:55:04 PM
#12
What you describe is contradictory. If it's a signed transaction, then it comes with the scriptSig. If it doesn't have the scriptSig, then it isn't signed. In Bitcoin Core, you can sign with signrawtransactionwithkey, but I'm not sure why you don't want that. Are you trying to sign something non-standard which Core will refuse?
Maybe because he doesn't have the key to sign the transaction, I remember OP somewhere mentioned that someone stole 10,000 bitcoins only having signatures and something other than private key, in the past he had asked if it's possible to spend by using signatures of a transaction or not. This however could be totally a different situation, but I can't see a reason as to why someone would want to go all the long way and not just use the key.

Maybe the OP is trying to broadcast a forged transaction and that's why no other nodes accept the tx?
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
March 03, 2023, 12:18:58 PM
#11
What you describe is contradictory. If it's a signed transaction, then it comes with the scriptSig. If it doesn't have the scriptSig, then it isn't signed. In Bitcoin Core, you can sign with signrawtransactionwithkey, but I'm not sure why you don't want that. Are you trying to sign something non-standard which Core will refuse?
newbie
Activity: 5
Merit: 0
March 03, 2023, 08:28:54 AM
#10
I have checked mempool site its self and only says its waiting for it to appear which means i guess it hasn't made it to the chain... ?
besides pushing a raw on the various sites, is there another way to submit this ?

I use this page to check the mempool: https://mempool.space/

The page give you an estimated time for your tx id.

legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
March 03, 2023, 12:48:10 AM
#9
I have checked mempool site its self and only says its waiting for it to appear which means i guess it hasn't made it to the chain... ?
besides pushing a raw on the various sites, is there another way to submit this ?
I don't know which site that shows "waiting to appear" so I have no idea, usually there'll be a result or none.
On a side note, there's no official mempool ('cause of the phrase "mempool site itself"), every node has its own and has their own set of rules. (usually the default)
So if the majority of the nodes don't have your transaction, chances that it's non-standard is high.

For broadcasting transactions, every site with push service has a Bitcoin node on its backend so it's all basically the same as sendrawtransaction command.
member
Activity: 107
Merit: 10
if you want to lie *cough*use your data; not mine.
March 03, 2023, 12:00:20 AM
#8
Just to clarify...   when i submit something signed it says its in mempool and just sits .. never is picked up for confirmation ...
It's your mempool, it's still subjected to other node's mempool if your transaction will propagate.
Try to search its txid in blockexplorers; if it's not there, chances that it's only in your node is high. (or a few nodes)



Quote from: MikeJ_NpC
Follow up question .. when you fundtransaction is this the same as singing it ?  As it indicates its signed at that point
No, it's used to add inputs to an existing transaction.
Mainly used for funding no input transactions created via createrawtransaction command.



I have checked mempool site its self and only says its waiting for it to appear which means i guess it hasn't made it to the chain... ?
besides pushing a raw on the various sites, is there another way to submit this ?


Okay just wanted to make sure about that. Regardless i do sign it afterwards.
So on both the fund and the sign comnmands.. it would add extra data on to the string correct?
I only see it add the data onto it when i fund it .. not when its signed despite it coming back as true... would this still be valid?
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
March 02, 2023, 11:48:30 PM
#7
Just to clarify...   when i submit something signed it says its in mempool and just sits .. never is picked up for confirmation ...
It's your mempool, it's still subjected to other node's mempool if your transaction will propagate.
Try to search its txid in blockexplorers; if it's not there, chances that it's only in your node is high. (or a few nodes)

Quote from: MikeJ_NpC
Follow up question .. when you fundtransaction is this the same as singing it ?  As it indicates its signed at that point
No, it's used to add inputs to an existing transaction.
Mainly used for funding no input transactions created via createrawtransaction command.
member
Activity: 107
Merit: 10
if you want to lie *cough*use your data; not mine.
March 02, 2023, 11:30:34 PM
#6
No its not related to that..


Just to clarify...   when i submit something signed it says its in mempool and just sits .. never is picked up for confirmation ...
Follow up question .. when you fundtransaction is this the same as singing it ?  As it indicates its signed at that point

Just trying to figure out what is the issue...
copper member
Activity: 1330
Merit: 899
🖤😏
March 02, 2023, 05:36:28 PM
#5
So i have a signed txn with core but is missing the scriptsig which i do have....
Just wondering if there is anything else someone can recommend besides brain-wallet or coinb which never works correctly... 
Is there something my python that will decompress it and allow edits step by step?  .... i cant post the transaction since its signed.

Thanks.
Is this somehow related to your case about the 10,000BTC lost/ stolen coins?
Hope you get a proper help with an open eye this time.
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
March 02, 2023, 12:50:03 AM
#4
So i have a signed txn with core but is missing the scriptsig which i do have....
Try signrawtransactionwithkey and fill the optional "prevtx" arg with the required script depending on the input(s).
More info about the command: https://bitcoincore.org/en/doc/24.0.0/rpc/rawtransactions/signrawtransactionwithkey/
legendary
Activity: 3472
Merit: 10611
March 01, 2023, 12:01:16 AM
#3
So i have a signed txn with core but is missing the scriptsig which i do have....
Do you mean you have signed the transaction using core? In which case if the signing process was successful the transaction should already contain the required signature inserted in it already. It may not be inside the scriptsig (like spending P2WPKH where scriptsig is empty and the signature is in the witness).
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
February 28, 2023, 11:21:40 PM
#2
What do you mean? Why are you wanting to merge them if the software hasn't? Why can't you just use the command line to build the transaction if using the GUI has lead to you thinking there's a problem - I think this would be the safest and easiest solution?

Signed transactions are safe to publish too (unless you want to maintain your privacy) - the signing process doesn't mean your funds are spend able by anyone with a signature, the complete transaction must be present too.
member
Activity: 107
Merit: 10
if you want to lie *cough*use your data; not mine.
February 28, 2023, 05:53:15 PM
#1
So i have a signed txn with core but is missing the scriptsig which i do have....
Just wondering if there is anything else someone can recommend besides brain-wallet or coinb which never works correctly... 
Is there something my python that will decompress it and allow edits step by step?  .... i cant post the transaction since its signed.

Thanks.
Jump to: