Questions tagged [transaction-verification]

The process in which every Bitcoin node checks every part of every Bitcoin transaction worldwide for conformance to standard rules and uses the complete history of all previous Bitcoin transactions to check that money being spent in a transaction has not previously been spent in any earlier transaction since the beginning of Bitcoin.

Filter by
Sorted by
Tagged with
8 votes
1 answer
1k views

Why is there no such thing as a redirected, forged, or fake transaction?

In the past, we had numerous questions about "fake" or "forged" transactions. Such transactions could supposedly be created even without holding any bitcoins, yet would end up in the mempool or even ...
Murch's user avatar
  • 72.8k
3 votes
1 answer
2k 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 ...
pebwindkraft's user avatar
  • 5,086
3 votes
2 answers
2k views

What's the blocksize limit after segwit and how do legacy nodes deal with segwit transactions?

Normally, I heard that the bitcoin blocksize is 1MB, but with the Segwit update the blocksize can be up to 4MB, so we should say that the blocksize is 4MB, right? Moreover legacy nodes only receive ...
Anh Dũng Lê's user avatar
21 votes
1 answer
2k views

How is SegWit a soft fork?

Reading this section of BIP144, I noticed the followng statement: Parsers supporting this BIP will be able to distinguish between the old serialization format (without the witness) and this one. ...
Simone Bronzini's user avatar
10 votes
1 answer
673 views

Full list of "special cases" during Bitcoin Script execution (p2sh, p2wsh, etc.)?

When executing a Bitcoin Script, there are some "special cases" where the interpreter performs extra verification beyond just executing scriptSig and then scriptPubKey. For example, if the ...
Elliott's user avatar
  • 227
15 votes
1 answer
5k views

What are the advantages of Schnorr vs ECDSA?

I understand that Schnorr signatures provide an improvement on ECDSA in that they are a fixed 64 bytes instead of the longer ECDSA sig format, however, I don't see how this is an advantage over ECDSA ...
Lev Knoblock's user avatar
8 votes
4 answers
18k views

Why is mining necessary for the Bitcoin network/system? [duplicate]

I understand that a transaction is a record of 1+ Bitcoins being given from one party to another. I understand that a block is a collection of unverified (pending) transactions that gets verified ...
TicketMonster's user avatar
2 votes
2 answers
334 views

Incentive for validating block

When miners find a solution to a block and broadcast it, what is the incentive for the other miners to actually validate that it is correct? It seems that they might save time by just starting to work ...
user32149's user avatar
  • 123
1 vote
2 answers
5k views

How can transactions be verified without the private key?

Trying to get my head around her royal Bitcoin here... I understand that blocks of transactions are broadcast to the network, and that miners verify that the BC is 'spendable' by trawling the ...
shennan's user avatar
  • 115
25 votes
3 answers
6k views

How are bitcoin transactions and the blockchain transferred over the internet?

So I have several specific question connected to this topic and I'm aware of the conceptual answers and I'm only interested in the technical details (with programming terms and concepts as I'm a ...
Balázs Sáros's user avatar
19 votes
1 answer
35k views

How do nodes verify Bitcoin Transactions?

I am trying to understand the role played by various nodes in the Bitcoin Network in verifying the transactions that are taking place in real time. I think that I understand the process of Transaction ...
Neon Flash's user avatar
  • 1,033
4 votes
1 answer
577 views

How to calculate signature generation, signature verification, transaction verification speed?

I read this post on Bitcoin Scalability. As far as I understand sequence of steps in Bitcoin, simplified version of performing transaction should be following: On Sender's side: Create transaction ...
Nur's user avatar
  • 431
4 votes
1 answer
1k views

Transaction's maximum size

Is there a maximum size for any given transaction? I just created this tx: http://blockexplorer.com/testnet/tx/194173dcc07b396433d5725abe76d52b10d42ebd3d1d10b465429f87fee12a52 and although it ...
Doug Peters's user avatar
  • 1,366
3 votes
2 answers
450 views

Which kinds of transactions show quadratic signature-hashing scaling?

It has been stated: A major problem with simple approaches to increasing the Bitcoin blocksize is that for certain transactions, signature-hashing scales quadratically rather than linearly. https:/...
Rich Apodaca's user avatar
  • 2,321
2 votes
2 answers
259 views

How confirm my own doublespend transaction got confirmed

Transactions in the testnet are right now almost always double spent with a new txid (possible due to tx malleability). This is actually quite nice for testing purposes. So I'm wondering - when I ...
tobi's user avatar
  • 135
2 votes
3 answers
1k views

What counts as verification or validation of a transaction?

I understand the general ideas and properties of the block chain, but have not been able to understand how a transaction is created and gets to be verified or validated.
Roberto Gejman's user avatar
2 votes
3 answers
466 views

Does the version prefix of an address force the type of transactions the address may treat?

A Bitcoin address is created with Base58Check encoding and it requires a version prefix, such as 0x00 for a P2PKH(pay-to-public-key-hash) address, 0x05 for a P2SH(pay-to-script-hash) address. Does ...
Константин Ван's user avatar
14 votes
4 answers
21k views

relationship between bitcoin miner and verification of transactions [closed]

Bitcoin miner mines a block, which can't be submitted to the network without proof of work. And the new block contains all of the new transactions. Hence the new block acts as a security measure, and ...
Sida Zhou's user avatar
  • 349
6 votes
4 answers
1k views

Is it possible to add a transaction input to a transaction in the mempool?

Is it possible to add an input to a transaction that is in the mempool? For example, if someone is paying 1 BTC to their friend, I can get the raw hex data of this transaction from the mempool before ...
bvpx's user avatar
  • 1,132
6 votes
1 answer
872 views

Transaction verification by miner VS full node with & without SegWit

I'm trying to fill a few gaps in my understanding of transaction verification and would appreciate any insight. Without SegWit Miners broadcast new blocks which contain the signature(s) with every ...
Olshansky's user avatar
  • 163
6 votes
1 answer
229 views

What happens in detail, when Bitcoin Core verifies a block during synchronization?

Since version 0.10.x, block headers are acquired separately, and therefore download is not delayed until previous blocks have been verified. Previous questions about synchronization mention that the ...
Murch's user avatar
  • 72.8k
5 votes
2 answers
429 views

How are blocks verified?

I see in the bitcoin wiki there is something called "script" which compiles down to some bytecode to be run by a very very basic virtual machine. Does this mean that each block is actually just a ...
Shazzad Kabir's user avatar
5 votes
1 answer
493 views

Where the P2SH script gets written?

I understand that when I'm doing a transaction, I'm locking those bitcoins to whoever provide the solution to a script that has the hash I posted. But, where does the hash get written? I would ...
araqueto's user avatar
4 votes
1 answer
221 views

Exhaustive technical explanation of signing & verification

I apologize for such a noobish question and am ashamed that I'm not getting this yet, but I can't seem to put together all of the pieces. I've read every question I can find on the subject, the ...
user avatar
4 votes
1 answer
588 views

How does Proof of Stake prevents dishonest behaviour compared to PoW?

I know that in Proof of Work (PoW) once a node has found the solution (the nonce) they announce it to the network. Then the rest of the nodes can easily verify the correctness of the block hash and ...
Gerard Bosch's user avatar
3 votes
1 answer
587 views

Do full nodes store the complete merkle tree or do they regenerate it when creating a merkle proof?

I understand what the merkle root is for. And I understand that blocks don't store the merkle tree. Question 1) Is there any place that the complete merkle trees get stored? I don't mean the merkle ...
Nika Kurashvili's user avatar
3 votes
1 answer
349 views

How to tell if a transaction is valid?

So I have been reading up on bitcoin and blockchain for awhile now, but I have yet to fully understand it. I understand that bitcoin leverage on DLT, which uses cryptography to verify transaction. ...
Jason Tay's user avatar
3 votes
1 answer
263 views

Is there any way to send an output to a script which can then only be sent to one of two addresses?

Is the following scenario possible? I want to send money to a script. This script will require knowing a private key to spend, as usual, but the script is only valid if the money is being sent to one ...
Claudiu's user avatar
  • 447
3 votes
1 answer
818 views

Ethereum - how is the output of a contract computation verified? [closed]

This may be as simple as a pointer to some place in the docs I've missed, but how/where is the output of a contract's computation checked, or assured against a malicious miner with an intentionally ...
JesseM's user avatar
  • 131
3 votes
1 answer
220 views

How are transactions verified to ensure only the eligible person can spend a Bitcoin balance?

I know each user has a public key and private key. The users signs the transaction with his private key and sends it to a Bitcoin address. What prevents me from claiming his coins? I read something ...
Enthusiast's user avatar
3 votes
2 answers
11k views

How Blockchain transaction verification takes place?

How does each transaction verifying node come to know if the sender has enough amount in its wallet to transfer to the receiver or not? How are Blockchain transactions validated?
Vijesh's user avatar
  • 185
3 votes
2 answers
2k views

How can a miner verify that a UTXOs is not spent elsewhere?

How does a miner verify that a UTXO is not spent somewhere else, wouldn't he have to search the entire blockchain from that UTXO and onwards to see if this was the case? Assuming any real scale this ...
no nein's user avatar
  • 297
2 votes
4 answers
318 views

If two parties submit a conflicting transaction between each other, how does the network decide which one is correct?

Let's say parties A and B both submit a transaction to the blockchain with a different version of what happened. Party A submits a transaction saying Party B gave him 3 BTC and Party B submits a ...
bitsearch's user avatar
2 votes
1 answer
1k views

When creating a transaction, how can you prove that you own your address without exposing your private key?

I'm trying to understand how Bitcoin works under the hood, but there's something I don't get at all, and can't find it. Suppose I own address A (I have the public key, A-public, and the private key A-...
nohamk's user avatar
  • 123
2 votes
2 answers
89 views

Can anyone initiate a Blockchain transaction into the mining pool?

Let's say user A has public key P and corresponding private key P'. Can someone else initiate a transaction for public key P with some wrong private key, let's say P''? Once this goes to the memory ...
chota Satoshi's user avatar
2 votes
1 answer
431 views

How does a non-upgraded node read a SegWit transaction? [duplicate]

I'm trying to understand how my node would interperet a SegWit transaction if I do not upgrade. Even if I do not upgrade, I should be ...
inersha's user avatar
  • 2,968
2 votes
1 answer
226 views

"Instantaneous" transaction verification?

Jan Moritz Lindemann graciously educated me that difficulty is used not only to regulate the creation rate of a cryptocurrency but also to allow for block propagation thus prevent orphaned blocks. ...
user avatar
2 votes
1 answer
382 views

Verification of transaction once trasaction is broadcasted

I have few doubts regarding verification of transaction and am trying to find answers from last few days. I agree similar post exist in this portal but I am not getting satisfactory answer for my ...
Frankenstein's user avatar
2 votes
3 answers
637 views

Why can't someone create a valid digital signature without knowing your private key?

I understand from the following two posts that private keys are not displayed by the sender when getting their transaction validated by the bitcoin miners: What happens to Private Key on Payment How ...
Will T-E's user avatar
  • 123
1 vote
2 answers
524 views

Bitcoin fake transactions

Suppose, A and B are malicious attackers. Both want to send unlimited fake transactions to each other. I know that the transactions won't be accepted in the blockchain. In fact, they don't want their ...
Monmoy Sarker's user avatar
1 vote
3 answers
2k views

Exchange Transaction versus Blockchain Verification

I am wondering about a question related to this post. According to bitcoinity, the number of bitcoin-trades at major exchanges per minute is roughly 400. However, as also pointed out by @eponymous in ...
Stefan Voigt's user avatar
1 vote
2 answers
233 views

How are transaction fees claimed from a technical point of view?

A typical transaction has one or more inputs and one or more outputs. Since there is no amount specified for inputs, the rule is that ALL of the inputs is always transferred. Any discrepancy between ...
Harry Pillsbury's user avatar
1 vote
1 answer
601 views

how does bitcoin solve the same chain replay attack?

Let's say I send 10BTC to Bob. I have 30 BTC. So after transferring, I should have 20. Now, after I transfered 10, transaction can be copied and broadcasted to the network again by Bob(he might have ...
Nika Kurashvili's user avatar
1 vote
1 answer
1k views

Is a miner running a full node?

Is a miner just running a full node that is connected with the mining hardware? Or is there such thing as a miner node? Does it use additional software for transaction selection? Thanks in advance!
Nick's user avatar
  • 185
1 vote
2 answers
831 views

Why does only the earliest transaction matter for double spending?

On page 2 of Bitcoin paper, it says: The problem of course is the payee can't verify that one of the owners did not double-spend the coin. A common solution is to introduce a trusted central ...
Ashish Negi's user avatar
0 votes
3 answers
258 views

Bitcoin transactions validation process

I have a general understanding of building blocks. But am hoping someone can fill in the details/gaps. Also, can you correct if something is not right? Thanks. Scenario: Bitcoin transactions are ...
nanonerd's user avatar
  • 137
0 votes
2 answers
277 views

P2SH secure spending. How?

Maybe my question is stupid, but imagine that I'm trying to spend inputs from p2sh. For example, p2sh scriptPubKey looks like: OP_SHA256 ...
Andrew's user avatar
  • 173
0 votes
1 answer
271 views

Does the miner first validate transaction before doing POW or he does not validate at all ? [duplicate]

Does the miner validate the transaction before putting it on the block for proof of work? my understanding is if the miner does not validate the transaction and published the block and the block gets ...
Dheeraj Ramchandani's user avatar
0 votes
2 answers
122 views

Sent BTC from Coinbase, blockchain explorer says Confirmed. Is recipient lying or could something else be the issue? [duplicate]

Sent BTC (approx $500) from Coinbase, Blockchain explorer says Confirmed. Is recipient lying they have not received or could something else be the issue such as his wallet? Recipient says it could be ...
NewAtBTC's user avatar
0 votes
2 answers
356 views

Verify Bitcoin Transaction

Following the great post [Redeeming a raw transaction step by step example required, I came up with code below but the verification failed. // pubkeyBytes, len: 65 // ...
YongJiang Zhang's user avatar