Linked Questions

1
vote
0answers
26 views

Parse signature and public key from scriptsig in an input transaction of bitcoin protocol [duplicate]

I'm interested in bitcoin protocol and checking validation of a transaction. in a TX message, we can see one or more than one input transaction and every input transaction has a previous transaction ...
5
votes
2answers
1k views

HTLC (Hash Time Lock Contract) using bitcoin-qt

Is it possible to manually create a HTLC using the bitcoin-qt command line? I know how to manually creating createrawtransaction/sendrawtransaction using the bitcoin-qt clients command line, and ...
4
votes
2answers
1k views

Where is the public key corresponding to my address stored?

Some simplified explanations of Bitcoin say, that the Bitcoin address is the public key, and anybody can easily verify that a signed transaction is valid since it was signed with corresponding private ...
6
votes
1answer
2k views

How to verify the signature of a raw transaction

I know there are many tools to check an ecdsa signature of a bitcoin transaction and I understand the ecdsa algorithm. It takes three inputs, a hash of the transaction, the digital signature and the ...
1
vote
2answers
2k views

How to manually verify a signature given scriptSig and scriptPubKey?

First transaction Given a transaction on the blockchain: 3a1b9e330d32fef1ee42f8e86420d2be978bbe0dc5862f17da9027cf9e11f8c4 One of the outputs transfers 424,242.42424242 BTC to ...
0
votes
1answer
2k views

Signature verification in python

When trying to implement OP_CHECKSIG, I am unable to figure out how to do the actual signature verification in python (python3) I obtained the signature, public key, and hashed message digest of a ...
2
votes
1answer
620 views

How do we verify the signature on a raw transaction using Bitcoinj?

I managed to create a raw tx using Bitcoinj but not able to figure out how to verify its signatures. Assuming I know the addresses corresponding to the (supposedly) unspent outputs used as inputs to ...
3
votes
1answer
807 views

Verifying a bitcoin trx on the Unix cmd line with OpenSSL?

I want to use openssl on unixoide systems to verify a transaction. I step on errors, when trying to verify a bitcoin trx’s hash. Here I am working on Mac OSX and OpenSSL (1.0.2a 19 Mar 2015). I know ...
2
votes
1answer
933 views

Signature verification in python using compressed public key

I am trying to learn bitcoin blockchain programming. I am trying to verify signature in Transaction with txid: 4269fdc239d027922dcec96f1ae283dbaff10e2d1bd49605661d091e79714956 I am getting ...
3
votes
1answer
897 views

Building Signed Bitcoin Transaction in Java

I have been attempting to build my own raw transaction generator in Java which I can then broadcast on the testnet network. The problem is when I attempt to broadcast the transaction it says there is ...
1
vote
1answer
786 views

How do I get hash to verify transaction?

If I have the public key and signature for a transaction how do I get the hash value that is used in verify(hash, sig, pubkey). I want to know how to work backwards from a raw transaction to get it, ...
2
votes
1answer
329 views

Calculating Z value in a tx with 1 input and 2 outputs

After reading this: ECDSA Signature and the "z" value I'm still confused about the 'Z' value, for this transaction: https://blockchain.info/tx/...
0
votes
1answer
247 views

sign and verify a message in Bitcoin Core 0.13.1 (OSX)?

as a follow up to here: Verifying a bitcoin trx on the Unix cmd line with OpenSSL? and here: How does the ECDSA verification algorithm work during transaction? I use the pizza trx, and verify at ...
0
votes
1answer
222 views

Litecoin - mandatory-script-verify-flag-failed (Signature must be zero for failed CHECK(MULTI)SIG operation)

I have manually a raw transaction using bit library in order to send a transaction using Litecoin testnet. After adjusting fee's and other network variables I got the following error that is stated in ...
0
votes
1answer
114 views

How would one go about acquiring the HashofThingtoSign from this old transaction?

How would one go about acquiring the HashofThingToSign that is used in the "Signature Generation" equation for this example transaction such that it could easily also be applied to any other given pre-...

15 30 50 per page