Questions tagged [validation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Pruning mode in Bitcoin Blockchain [duplicate]

How can a node chose to use pruning mode where it can discard uneeded transactions history after validation is complete?
user avatar
2 votes
1 answer
169 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 ...
user avatar
0 votes
2 answers
62 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 ...
user avatar
  • 103
0 votes
1 answer
42 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 ...
user avatar
1 vote
0 answers
195 views

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

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
42 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/...
user avatar
0 votes
1 answer
60 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 ...
user avatar
0 votes
1 answer
39 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 ...
user avatar
0 votes
0 answers
28 views

Why can't people change the rewards in their codebase? [duplicate]

I am a Bitcoin noobie, apologize if this is a stupid question. The reward for mining is hardcoded in the codebase here - https://github.com/bitcoin/bitcoin/blob/master/src/validation.cpp#L1362. My ...
user avatar
2 votes
1 answer
103 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 ...
user avatar
3 votes
1 answer
88 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 ...
user avatar
  • 198
2 votes
1 answer
110 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 ...
user avatar
  • 198
0 votes
2 answers
98 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 ...
user avatar
1 vote
2 answers
834 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 (...
user avatar
  • 1,369
0 votes
1 answer
38 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?
user avatar
1 vote
1 answer
46 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 ...
user avatar
0 votes
3 answers
130 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 ...
user avatar
1 vote
1 answer
68 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 ...
user avatar
1 vote
1 answer
55 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-...
user avatar
1 vote
1 answer
53 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 ...
user avatar
  • 23
0 votes
1 answer
79 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 ...
user avatar
3 votes
2 answers
763 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 ...
user avatar
-1 votes
1 answer
52 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 ...
user avatar
3 votes
1 answer
288 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 ...
user avatar
  • 295
2 votes
1 answer
135 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?
user avatar
0 votes
2 answers
113 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 ...
user avatar
  • 35
1 vote
1 answer
52 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 ...
user avatar
  • 701
1 vote
1 answer
404 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 ...
user avatar
  • 701
1 vote
1 answer
66 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' ...
user avatar
  • 23
1 vote
1 answer
73 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 ...
user avatar
  • 2,391
2 votes
1 answer
87 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 ...
user avatar
  • 41
1 vote
3 answers
126 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 ...
user avatar
0 votes
1 answer
87 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 ...
user avatar
  • 1
1 vote
1 answer
206 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 ...
user avatar
0 votes
1 answer
574 views

Wallet validation methods (centralized, SPV, etc.) - please clarify for Ledger and in general

1) ledger: https://bitcoin.org/en/wallets/hardware/ledgernanos/ Variable validation - Payment validation features are provided by the software wallet you use with this device. 2) wasabi: https://...
user avatar
2 votes
0 answers
175 views

How to Validate Signature with SigScript length 8b?

I created a raw Transaction: ...
user avatar
3 votes
1 answer
270 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. ...
user avatar
0 votes
1 answer
148 views

Bitcoin RPC RegTest not validating addresses

I am attempting to use Bitcoin RPC in regtest mode, however, when I try to validate a bitcoin address with the following function public function validateAddress($address) { $command = new \...
user avatar
1 vote
1 answer
79 views

How exactly does the network know if the miner has put forth a valid proof of work?

If all that the miner needs to do is find a hash with a certain number of leading 0's of the block's header, couldn't they just find a random hash with the required number of 0's that isn't ...
user avatar
  • 13
1 vote
1 answer
130 views

Regarding block validation in blockchain

In mining process, miners validate the block based on proof of work or using some other consensus mechanism. Miners also validate the block. So in this validation process, miners validate only hash ...
user avatar
0 votes
1 answer
83 views

When a new block is propagated, nodes validate from genesis block to propagated block?

For example, I have a nth block and when n + 1 th block is propagated, i have to compare with n+1 block's previous hash and nth block's hash for validation. It is pretty trivial. But do i have to ...
user avatar
  • 41
1 vote
1 answer
75 views

Is there a way to determine the difference between a BTC prefix 3 address and a LTC prefix 3 address?

I am trying to determine if there is a way to tell the difference between a BTC prefix 3 address and a LTC prefix 3 address, for validation purpose. Example if given this public key address: ...
user avatar
1 vote
1 answer
134 views

How 1 cpu 1 vote works?

How 1 cpu 1 vote works? What is its validity? Does it use IP address or mac address or similar to that? If yes, then it can be changed and can make fool to the network. If it can't, then how is it ...
user avatar
1 vote
1 answer
124 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 ...
user avatar
  • 345
0 votes
1 answer
52 views

How and why we need to validate a transaction?

I've starting doing some researches about the Bitcoin protocol and the blockchain. I'm trying to understand all the sections in the Bitcoin white-paper. So far, i couldn't understand what is the ...
user avatar
1 vote
1 answer
162 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 ...
user avatar
2 votes
1 answer
174 views

How is a bitcoin transaction validated?

w.r.t. a bitcoin transaction, I am really struggling to understand how does bitcoin network validate that I 1) have the bitcoin that I want to send, and 2) haven’t already sent it to someone else. If ...
user avatar
  • 141
0 votes
1 answer
113 views

How do nodes come to consensus on whether a timestamp is valid?

From bitcoin wiki: A timestamp is accepted as valid if it is greater than the median timestamp of previous 11 blocks, and less than the network-adjusted time + 2 hours. If a miner submits a block ...
user avatar
  • 101
11 votes
1 answer
689 views

When Schnorr signatures are part of Bitcoin will it be possible validate each block with only one signature validation?

In a recent talk Pieter Wuille talked about speed up verification when using Schnorr signatures and various algorithms for verifying multiple signatures. Would it really be possible to verify one ...
user avatar
3 votes
1 answer
215 views

Why every node needs to validate a transaction in Bitcoin

I am just understanding the Bitcoin network, and now understand that every block and every transaction is propagated to every node in the Bitcoin network (not sure yet the difference between full vs. ...
user avatar
  • 221