Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [transaction-verification]

Refers to the process of checking the validity of transactions.

1
vote
1answer
91 views

Besides transaction validation, are there any other uses of the Script language in Bitcoin

Script's stack operations are used to validate signatures and scripts of transaction inputs and outputs. Is Script also used to validate block, network, or any other data? Seem like there are a lot ...
0
votes
2answers
53 views

Checking if a receiver has enough coins

How do miners verify the blockchain transaction history to check if the sender has enough money if the address can be changed at any time?
1
vote
1answer
30 views

How miner makes sure that a transaction he picked up from mempool is actually valid? [duplicate]

I have read and searched enough about the roles and responsibilities of miners here; For example: Does the miner first validate transaction before doing POW or he does not validate at all ? Does a ...
1
vote
1answer
102 views

Why are only specific transaction types accepted into the mempool?

In the Bitcoin Mainnet, only specific transaction types are accepted: Bitcoin uses a scripting language to specify (and satisfy) the encumbrances, thereby allowing a whole host of transaction types....
0
votes
0answers
19 views

Message: “this payment has not yet been transmitted”

My smartphone wallet samsung android with application bitcoin core version wallet 7.04 does not get paid. Message: "this payment has not yet been transmitted". from March 18 at 18:56 (NYC) I have ...
2
votes
1answer
175 views

Where is sum(vin) > sum(vout) check in Bitcoin Core?

I'm searching the function that validates a transaction according to Protocol rules - "tx" messages especially step 14 sum(vin) > sum(vout). I found this interesting function CheckTransaction(...
0
votes
1answer
29 views

Are transactions with the same ScriptSig a security problem?

For instance while looking at the transaction stack of my address, tracing it to exchanges I use, I came across this: https://www.blockchain.com/btc/tx/...
0
votes
1answer
31 views

Indexing of transactions in the blockchain

Say we have transaction T(1) from many years ago, at block height 125001; then a new transaction T(2), consuming all the outputs from T(1), comes up around block height 568720 (that's Today). There's ...
0
votes
2answers
46 views

Bitcoin checks and balances

When a new block is created, does each block need to be validated? How does it differ from validating transactions? Why miners would waste time validating transactions and blocks when they could ...
0
votes
1answer
50 views

How to generate the digest from a raw bitcoin transaction for verifying signature of specific input?

I'm writing a stand alone process that needs to verify that a known UTXO is part of a new transaction with a valid signature. Inputs [ UTXO, raw transaction, input_number ] How do to I verify the ...
2
votes
1answer
44 views

How can block time and block size be fixed when transaction volume is constantly increasing?

As I understand it the network rejects blocks over 1MB, and block hash difficulty is set after each block is created as to keep the block time close to 10min. But if people are constantly joining ...
0
votes
0answers
28 views

How does transaction authentication between buyer and seller look for?

I am new to cryptography and would like to understand how a digital signature works between a buyer and a Bitcoin seller. How does transaction authentication between buyer and seller look for? Please ...
0
votes
1answer
34 views

On blockchain scalability bottleneck

It is often said that the major bottleneck of blockchain scalability is that every (honest) node has to process every (valid) transactions. But the progress of a blockchain is how fast it reaches ...
0
votes
1answer
44 views

Validate 3rd party transactions on Bitcoin-qt debug window

Is there a way to validate a random transaction via transaction ID on the debug window? Imagine I want to validate a transaction between 2 wallets I don't control. I believe its possible to check if ...
0
votes
2answers
70 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 ...
0
votes
1answer
104 views

Why are the inputs of Bitcoin transactions signed?

This is my understanding of what a transaction looks like: inputs: input0: txid: <funding tx0 TXID> outputID: <output ID of UTXO in the funding tx0> scriptSig: <...
4
votes
2answers
91 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 ...
1
vote
1answer
38 views

Is it posible to create a transaction output that can either be reddemed by privK of Addr A or by privK of Addr B AFTER certain blockheight?

I am thinking about how to secure your Bitcoin savings. One idea I had was to create sort of a "backup" address B for an address A which stores the bitcoins. So what I want to achieve is that you ...
0
votes
1answer
23 views

When do scripts executed?

Can anyone explain when does a script executed exactly? There are several information about "how scripts are executed" but no information about "when".
2
votes
3answers
3k views

Bitcoin transaction fee calculator

I'm new to bitcoin. Is there a website where I can type amount of BTC I want to send and type of transaction - Urgent, Normal, Economic and they give me the price in USD how much the transaction fee ...
0
votes
2answers
187 views

How does blockchain technology handle the actual transaction data?

My understanding of how a transaction is secured in blockchain, especially in bitcoin, is that the output of transaction data is locked to the recipient's address (a shorter version of his public key)....
1
vote
1answer
44 views

May it be a risk to use the origin as the change address?

Follow scenario: The balance of my origin address is 1 BTC. I'm transfering 0.1 BTC to a shop where I'm buying some goods, my wallet returns the change to my origin address. Now my origin address has ...
0
votes
1answer
145 views

How do you get Sibling Hashed Values in a Merkle Proof?

Merkle Proofs are one of the main reasons that people attribute Bitcoin's use of Merkle Trees. But I'm struggling to understand how these work in practice. Please explain theoretically as well as ...
0
votes
3answers
59 views

Reject or refuse to relay a valid transaction

Under the Bitcoin protocol, how much control does a node have on how a transaction is dealt with once received? Can a node reject a valid transaction? Can a node refuse to relay a valid transaction to ...
2
votes
3answers
221 views

When a node receives a transaction, what steps does it do to verify that transaction?

I know that it verifies the block hash by calculating each hash of the contiguous blocks in order, but does it verify the balance of each wallet sending the transactions as well? And does it do the ...
0
votes
1answer
66 views

How miners validate each transaction?

There is a locking to each transaction? and sender also attach his digital signature to that transaction? When this transaction comes to miners then how they validate this transaction is valid. ...
1
vote
2answers
107 views

how do miners verify transaction without identifying sender and receiver?

I mean in satoshi paper we read sender and receiver have limited anonymity. By keeping public keys anonymous. The public can see that someone is sending an amount to someone else, but without ...
1
vote
1answer
51 views

What is the correct use of the term “validating”?

First, in the Bitcoin context what does validating mean? Second, is it incorrect to say something like " the average time it takes to validate a block by the network is 10 minutes." The way, I ...
0
votes
1answer
365 views

How to verify if it's Segwit Transaction or not?

Segwit Usage chart example : https://p2sh.info/dashboard/db/segwit-usage?orgId=1 I Would like to verify by checking tx if it's Segwit Transaction or not. Is there any simple method to do this? ...
4
votes
1answer
975 views

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 ...
2
votes
1answer
55 views

Transaction vaildation

I have understood that miners validate the transactions by checking for double spends and that the transaction was not already confirmed, what I don't understand is how the miners are able to do this ...
0
votes
0answers
32 views

How do you find the signing message of a TxIn signature? [NOT a duplicate] [duplicate]

So I'm trying to find m in s = (m + r * x) / k of a Bitcoin transaction input. Taking a look at this transaction, I can pull out s and r from the ScriptSig of an individual input: 30 45 02 21 ...
5
votes
1answer
75 views

Can corrupted unspent transaction outputs list leading to higher than expected fee be seen as an actual threat?

Let's imagine, an attacker managed to corrupt your local list of unspent transaction outputs (or a blockhain explorer you use) in a way that certain unspent transaction outputs seem to hold less coins ...
0
votes
1answer
557 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!
0
votes
2answers
224 views

P2SH signature verification in python

I am trying to understand and verify P2SH script by writing a python code to parse real transaction in blockchain. I have chosen below Transaction randomly. TxID: ...
1
vote
2answers
146 views

Is the UTXO set size important for non-mining full nodes?

Recently, I have seen a lot of development effort going into techniques for different ways of storing, pruning UTXO/TXOs. The main motivation cited is reducing block orphaning, which is mining-...
1
vote
1answer
87 views

Satoshi Nakamoto's Transaction Chain Diagram Hash Value

In Satoshi Nakamoto's diagram: The line coming from transaction block 1 and going the the "Hash" label in transaction block 2 appears to represent the hash of the entire transaction block (Owner 1's ...
1
vote
1answer
89 views

Merkle Tree computations

Assume I am running a mini-blockchain that is I only have blocks' headers but no transactions. I wish to verify a transaction of a third party. For that I need the transaction's path to the Merkle ...
1
vote
2answers
145 views

Merkle root Vs transaction hashes

It is not clear to me, why not we can simply store transaction hashes in a block header instead of storing the Merkle root. I understand that storing transactions' hashes will slightly increase size ...
1
vote
2answers
43 views

Why can't Bitcoin transactions be stopped like SWIFT transfers?

As I know, most BTC hacking happens at digital wallet (but in blocks). I believe the hacker use normal BTC transaction to transfer those stolen BTC to other block addresses. Why can't we stop the ...
2
votes
1answer
55 views

Why this transaction is valid?

The before transaction is @ https://www.blocktrail.com/tBTC/tx/da58f6688b0727a7f1bf3eec899099bde1f18b9c7099f9d2c79556db238e623d Its output script is "OP_HASH160 ...
2
votes
1answer
36 views

Bitcoin core verification keeps reseting

I'm trying to run Bitcoin Core service with full node verification on Ubuntu on testnet and it keeps resetting. The verification increases to 0.3, then resets to 0, for 2 days already. Debug.log ...
0
votes
1answer
57 views

What exactly is a bitcoin?

So I understand how blockchains work[1]. I understand how proof-of-work works[2]. And I understand how they work together. I also understand (or at least I think I do :) how transactions work (A block ...
1
vote
2answers
535 views

Difference between transaction chain vs blockchain

What are the difference between transaction chain in bitcoin and blockchain used in bitcoin? Is it sufficient to say to each transaction refers to previous transactions in the transaction chain and ...
1
vote
1answer
250 views

Does every miner verify blocks that are already in the Blockchain [duplicate]

Once a miner adds a block to the chain, does every other miner have to check that block to make sure that its transactions don't violate any rules? For instance, if a miner added a block with an ...
0
votes
1answer
35 views

why can't i push this transaction?

Why can't I push this transaction using blockchain.info but a transaction just like mine was broadcasted and mined? My transaction: ...
2
votes
1answer
838 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 ...
0
votes
1answer
29 views

What is the computational power required for just verifying maybe two transactions

I want to know the amount of computational power required to verify a just a couple of transactions. No mining included, just verification can it be done with CPU or maybe even phones?
0
votes
1answer
24 views

If in order to verify a block your hash just has to be lower than the hash in the block, then why won't 00000000000000000000000000001 work every time?

So if in order to verify a block you just need a hash lower than the block in the hash, then why do you need to do a bunch of calculations rather than just using ...
0
votes
2answers
109 views

Can an attacker use a modified Bitcoin node to pass fake transactions into the mempool?

Is it possible for a malicious attacker to download a bitcoin software code, modify that code and use that software for his own benefit? I know that any changes implemented in the bitcoin software ...