Skip to main content

Questions tagged [validation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2 votes
0 answers
36 views

How to verify signature of a given transaction data? [closed]

I need to check if a transaction is valid, and that includes verifying its signature. But here's the catch: I can't rely on pre-made Bitcoin tools. Instead, I'll have to write my own code using Python ...
Shivansh's user avatar
0 votes
1 answer
17 views

Which SIGHASH type we have to append at the end of the trimmed transaction in OP_CHECKSIG

how to know which sighash type we have to append to the trimmed transaction at the time of input scripts verification, take referance from the below example { "version": 2, "locktime&...
lladane's user avatar
  • 13
0 votes
0 answers
26 views

What are the steps to verify the inputs and outputs of a transaction. Excluding steps requiring blockchain access

{ "version": 1, "locktime": 0, "vin": [ { "txid": "1d8f38f6a5fbc7951568f64f3b9320a4ebd1053dce4641a5c5526d3cd7a805e1", "vout&...
lladane's user avatar
  • 13
4 votes
1 answer
242 views

How is this transaction valid?

Transaction in question: 16ac7736552c5791cff5643e6104c76c24018236b2193e014b308efea4f32f81 The P2SH input has a strange redeem script: OP_DUP OP_HASH160 OP_PUSHBYTES_20 ...
Vojtěch Strnad's user avatar
3 votes
1 answer
230 views

How does Bitcoin Core help validate transactions?

I am very new to Bitcoin. I recently learned that a full node can help validate a miner's work, so I downloaded the Bitcoin Core and decided to become a full node. How does this help validate a miner'...
your_chinesemom's user avatar
0 votes
1 answer
86 views

How was this transaction validated?

I'm having trouble understanding how the following transaction was valided (Block 364845 July 2015) : 2c6c27639e79038cf446e795e267dc8abbe96d1f21cdd17518cc6b57ad2d86d9 It has one input, and is ...
mathboi's user avatar
  • 191
0 votes
0 answers
12 views

can i check a Bitcoin payment is valid before I pay for exchanges? can I check the receipt number and the transfer number somewhere or with anyone? [duplicate]

i am due to receive a Bitcoin payment i earned i would like to chat or speak by phone with a broker or a management account specialist and references the receipt number and the transfer number ...
ejessejamz 's user avatar
1 vote
2 answers
137 views

When the validity of scriptPubKey is checked?

I have a couple of questions related to validation of script in transaction output (scriptPubKey). I apologize for a little more text, but I tried to explain in detail what I don't understand. Since ...
dassd's user avatar
  • 1,079
1 vote
1 answer
59 views

Why does Bitcoin Core verify already verified blocks?

I have observed that when I restart my Raspberry Pi, which I had left at a specific height (for example, 800,000), the software starts verifying the last x blocks, beginning from a point prior to ...
Angelo's user avatar
  • 423
-1 votes
2 answers
151 views

Is crypto validation and mining the same thing?

Recently I see many projects attract validators, does anybody have experience, is it profitable and how is it different from mining? Appreciate your answers
Hana Welsh's user avatar
-1 votes
1 answer
56 views

In bitcoin core can ScriptToUniv give us wallet address of public key?

a few days ago I created a PR https://github.com/bitcoin/bitcoin/pull/27546 where I proposed ScriptToUniv can give us wallet address of public key But some guy commented "Concept NACK Sorry, no. ...
saffi Khan's user avatar
1 vote
2 answers
53 views

If my node is connected to 7 nodes and 4 of those say that a block they transmitted to me is valid will i mark it as valid?

Let's say I am a node and I am connected to 7 other nodes. 4 of those nodes transmit me a tx or a block and say it's valid. (I am aware they do not explicitly send a message saying that something they ...
Aarav Dayal's user avatar
1 vote
1 answer
79 views

Is there a particular order in which transaction inputs are checked for script validity?

When a transaction is being checked for validity, is there a particular order that the inputs are evaluated for script correctness? This might be relevant when determining what consensus changes might ...
James O'Beirne's user avatar
5 votes
1 answer
423 views

Bitcoin Core file with the signing keys was removed from repo. How is the process supposed to be now?

Yesterday this PR was merged into the Bitcoin repository, and the process described at https://bitcoincore.org/download mentions that to validate the source code, you must download the txt file with ...
decentralized.b's user avatar
1 vote
1 answer
225 views

Need a detailed step-by-step P2PK signature validation example

In the process of validating transactions by hand with a new library in elixir. I am starting with f4184fc596403b9d638783cf57adfe4c75c605f6356fbc91338530e9831e9e16, which is one of the first P2PK ...
RooSoft's user avatar
  • 157
3 votes
1 answer
260 views

What does an un-upgraded node see when new Taproot transactions are on chain?

Nodes that don’t know about Taproot need to be able to validate the blocks with Taproot transactions. Marking them as valid spends is the only option for not forking the network. Yet, if the ...
Aleksandr Levchuk's user avatar
3 votes
2 answers
280 views

What happens if two miners have a few identical transactions in their block when one of them validates his block and appends it to the blockchain?

Let's assume 2 miners, A and B, are adding / validating transactions and build a block. Both blocks contain 50 identical transactions. All other transactions differ. Now one miner, B, solves the ...
Oliver's user avatar
  • 31
0 votes
2 answers
69 views

How is crypto Mining actually validating the block?

As far as I understand in crypto-mining you are trying to find the nonce such that the hash starts with some amount of zero's. I do not understand how this nonce is used to actually validate anything.
KoalaMaybe's user avatar
2 votes
1 answer
290 views

Are attempts to spend from a timelocked UTXO rejected?

Background I was reading a bit about Bitcoin time locked transactions within the context of the Lightning Network. One thing that was never explained is what happens when one tries to prematurely ...
juan_more_bitcoin's user avatar
0 votes
2 answers
154 views

Understanding Bitcoin Validator Node Decentralization

I am hoping to better understand the difference between miner nodes and validator nodes and the decentralization risks (if any) posed by one party controlling X% of all validator nodes. I have been ...
apleroy's user avatar
  • 103
0 votes
1 answer
90 views

Bitcoin payments without storing blockchain

I want create a program that receives payments via bitcoin and sends them to other addresses. I'm going to generate unique address for each payment, then check if there are transactions with outputs ...
AlexGlass's user avatar
1 vote
0 answers
1k views

Is Running Bitcoin Core (bitcoind) On Android Termux A Good Idea? [closed]

This is what I did: Before we begin, disable Google Play services and Google Play store to reduce conflict with app on F-Droid. Decentralization gets us even further with what I figured out. Install F-...
user avatar
0 votes
1 answer
53 views

Trying to validade a bitcoin block

So I'm trying to validade a bitcoin block just for curiosity, let's take for example bitcoin block #1 (https://bitpay.com/insight/#/BTC/mainnet/block/...
Gabriel Lucas's user avatar
0 votes
1 answer
113 views

How resolving nonce validates transactions?

I'm going to explain a bit more about my question, by talking first about what I understand about blockchain and transaction in a decentralized network. Correct me if I'm wrong somewhere. In a ...
HiImEins's user avatar
0 votes
1 answer
90 views

what is block confirmation [duplicate]

in the details of a bitcoin block there's a section called block confirmation (which is different than transaction confirmation), first i thought it was the number of the blocks that are created after ...
pardis.ti's user avatar
2 votes
1 answer
184 views

Meaning of "Drop the signature" comments in OP_CHECKSIG code (Bitcoin v0.1.0)

I'm doing my homework by reading the C++ code of the 0.1.0 release of Bitcoin available here. I'm interested in better understanding how to validate transaction 1 of block 170. This transaction has ...
StashOfCode's user avatar
3 votes
1 answer
118 views

What is the standard logic behind the ordering of outputs in the vout array for a transaction?

This question and its answers discussed the meaning and purpose of the vout array of a transaction in good detail. However, I have so far not been able to find any good information about how outputs ...
satirn's user avatar
  • 308
3 votes
1 answer
367 views

Validate raw transaction hex without broadcasting

I would like to check the validity of a raw transaction (i.e. whether it would be accepted by network nodes), without broadcasting the transaction to the network. I am interested in knowing what is ...
satirn's user avatar
  • 308
0 votes
2 answers
151 views

Block 170 transaction validation in the old days

I'm trying to understand how to validate the first non-coinbase transaction, that is transaction 1 of block 169, as it was validated in the old days. This transaction has one input, which decoded ...
StashOfCode's user avatar
1 vote
2 answers
999 views

How strict are the Unix Epoch time validation rules?

According to bitcoin.org, full nodes have a strict requirement on the deviation of time within certain boundaries. The block time is a Unix epoch time when the miner started hashing the header (...
arshbot's user avatar
  • 1,778
0 votes
1 answer
60 views

What does net_processing cover conceptually in the Bitcoin Core codebase?

What does net_processing (.h and .cpp) cover conceptually in the Bitcoin Core codebase?
Michael Folkson's user avatar
1 vote
1 answer
106 views

What do the classes ChainstateManager, CChainState, CChain and BlockManager do in Bitcoin Core?

What do the classes ChainstateManager, CChainState, CChain and BlockManager do in Bitcoin Core? Why do CChainState and CChain have a leading 'C', but ChainstateManager and BlockManager don't? These ...
Michael Folkson's user avatar
0 votes
3 answers
148 views

Why must the entire chain be included in calculations if it's already been validated. Why can't the validated portions be archived to save energy? [duplicate]

I'm new to this so don't laugh. If all of the previous transactions in a blockchain have been validated as authentic, why does the entire chain have to be carried forward in the calculations? Why ...
Ed Would's user avatar
1 vote
1 answer
188 views

What is cs_main? Why is it called cs_main?

What is cs_main? Why is it called cs_main? This question was asked during the May 12th 2021 Bitcoin Core PR review club hosted by John Newbery on a Carl Dong PR to de-globalize ChainstateManager. (The ...
Michael Folkson's user avatar
1 vote
1 answer
111 views

What does validation cover conceptually in the Bitcoin Core codebase?

What does validation (.h and .cpp) cover conceptually in the Bitcoin Core codebase? This question was asked by Larry Ruane at the May 12th 2021 Bitcoin Core PR review club on a Carl Dong PR to de-...
Michael Folkson's user avatar
1 vote
1 answer
63 views

Block Validation Process, in Terms of adding Block to the Chain

quick question - How does a Node react to a new block propagated to the network? In Terms to does a Miner stop mining when "he" gets information of a new block to validate it? or does it ...
Andre's user avatar
  • 23
0 votes
1 answer
93 views

How do nodes contribute to security when the power comes from mining and what is the chain of transaction validation?

Blockchain security comes from the decentralisation of hashing power by miners. They append transactions to a block, perform PoW and add them to the blockchain when that validate blocks. How do nodes ...
Matt Tainsh's user avatar
3 votes
2 answers
1k views

How are transactions verified with only the Bitcoin address, not the public key?

I understand how asymmetric cryptosystems and digital signatures work: You generate a (private key, public key) pair. You never share the private key, you make the public key ... well, public. You ...
Martin Thoma's user avatar
-1 votes
1 answer
64 views

What will happen on creating a transaction with negative amount?

Bitcoin in short is a public ledger guided by consensus of its nodes. In theory, if there is no validation of transaction amount, if we were to create a transaction with negative amount, that would ...
Abhishek Choudhary's user avatar
3 votes
1 answer
300 views

Is it theoretically possible to have an inverted nLockTime?

For example, an nLockTime == 500 prevents a transaction from being included in any blocks before the block 500. Why isn't there a parameter like nExpireTime == 500 that prevented a transaction from ...
fiatjaf's user avatar
  • 611
2 votes
1 answer
234 views

Does Bitcoin Core validate signatures by default?

There have been claims recently of Bitcoin Core not validating the signatures in a block by default. If this is true, can Bitcoin Core even claim to be a full node?
Bertram Lund's user avatar
0 votes
2 answers
424 views

library for validating bitcoin private and public keys

I am building a python script that gets a string and determines if it is a valid bitcoin private key or public key, and if so it returns its type/format (base58, BIP32, HexaDecimal etc.) and its ...
Avi El's user avatar
  • 35
1 vote
1 answer
58 views

What valid transactions are not broadcastable?

Many valid transactions are not broadcastable by default in bitcoin core to avoid attacks that could harm the network. These would rarely be found in a node's mempool but could, however, be found in ...
Pedro's user avatar
  • 743
1 vote
1 answer
866 views

How to verify if a transaction is signed correctly?

Given an arbitrary signed raw transaction, how can we easily verify if all inputs are correctly signed (assuming all inputs are existent/unspent and the fee is higher than zero)? Bitcoin core's RPC ...
Pedro's user avatar
  • 743
1 vote
1 answer
75 views

How does the network verify previous transactions when transferring BTC between two users?

When transferring BTC between two users, the new transaction will consist of references to previous transactions. For example, if I user A wishes to transfer 1 BTC to user B, he will need 'n' ...
Bittu's user avatar
  • 23
1 vote
1 answer
84 views

What kind of bug does bitcoin core possess that have to be replicated

In order to build a bitcoin client accepted by the current bitcoin nodes we to have to emulate the C++ code present in the bitcoin core client, with all its attributes even the bugs. For example the ...
Saxtheowl's user avatar
  • 2,800
2 votes
1 answer
95 views

block verification cost

When a node receives a block, is it enough to validate root of Merkel tree ? How does block size affect the validation cost? What is the difference between the cost of validation 1mg-size block and ...
Maha's user avatar
  • 41
1 vote
3 answers
148 views

Does each block contain all the Bitcoin transactions for that time period?

When a miner validates a block, does the block contain all transactions in Bitcoin for that time period? So does a miner validate an individual transaction between two parties, or are they validating ...
W. Churchill's user avatar
0 votes
1 answer
96 views

How can a receiver verify that transaction data was not altered by 3rd party?

My scenario: My web server: Generates private and public, and a wallet address from the public key for a user website account Server can not connect to the outside (Can not connect to the Bitcoin ...
Skills's user avatar
  • 1
1 vote
1 answer
250 views

When exactly do the transactions get validated?

I have some gaps in my understanding to the life cycle of the transaction that I want someone to help me fill them specially with the validation. What I understand about the life cycle with my ...
Youssef Mohamed's user avatar