Stack Exchange Network

Stack Exchange network consists of 174 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 [validation]

The tag has no usage guidance.

1
vote
1answer
12 views

Verification of untypical scriptSig

I want to be able to redeem a P2SH output with a script doing a multisig but also additional checks. The scriptSig to redeem this output thus has to provide enough signatures, as well as some specific ...
2
votes
1answer
60 views

Schnorr batch validation speed statistics

In this question Schnorr vs ECDSA I see in the Peter Wuille's answer the following comment about Schnorr signature batch validation: "Improving verification speed, by supporting batch validation of ...
1
vote
3answers
49 views

Block Validation: who does it? How much it costs? And is it present in all protocols?

Different threads were posted in order to clear up this question, but there are some points that I would need to confirm: When you become a full-node (NOT miner, you just downloaded the full ...
10
votes
1answer
178 views

Schnorr's batch validation

In the recent BIP about Schnorr's standardization, Pieter Wuille presents an algorithm for batch validation. In my understanding the most heavy operation is the multiplication by a scalar: to make ...
1
vote
1answer
49 views

How long does it take to validate a full block?

I'm interested to know how long does it take to validate a Bitcoin block on average home pc. I'm less interested in a precise number. I'm fully aware that it can be different between different ...
3
votes
2answers
78 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 ...
0
votes
2answers
46 views

Ttransaction validation in the bitcoin blockchain

I am confused. What is exactly a validation of transaction in the bitcoin block chain? Please correct me if I am wrong. I know we need 6 minner to validate our transaction and those 6 minner check ...
3
votes
0answers
48 views

How does copying main stack prevent malformed unlocking scripts vulnerabilities?

https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch06.asciidoc In the original bitcoin client, the unlocking and locking scripts were concatenated and executed in sequence. For security ...
1
vote
1answer
24 views

What would happen if I publish a modified version of an earlier block? Would it be rejected immediately by peer nodes?

I am reading the book "Mastering Bitcoin" and have finished reading Chapter 2 and 10, but I still don't find the answer. Suppose the current main chain has 5 blocks: B0 <- B1 <- B2 <- B3 &...
1
vote
1answer
47 views

Where in the source code are transaction validation checks implemented?

I understand that consensus (mining) and transaction validation are different concepts. Correct me if I'm wrong, but I believe each full node validates transactions and puts the valid ones into its ...
2
votes
1answer
95 views

A couple of questions on Schnorr sig

In the BIP by Pieter Wuille it is told that the key prefixed version of Schnorr signature is needed when the scheme is used in combination with BIP32's unhardened derivation. Could someone provide an ...
0
votes
1answer
22 views

Tendermint consensus: Are validators “known” and “pre-selected”?

What are similarities and differences between Tendermint consensus and Proof-of-Stak? For example, in both consensus, a validator is selected randomly (I think in Tendermint consensus they are ...
0
votes
0answers
19 views

Leader election-based Blockchains public?

Consensus protocols such as those of Tendermint, Red Belly Blockchain or Algorand can be of great help when dealing with the problem of Finney attacks, and similar sorts of abusing of excessive 'thing'...
0
votes
1answer
38 views

Consensus roles for op_return

What is the validation rule, not policy, for op_return? What is the maximum length of the data that can be attached? Is it 514 bytes? As if the maximum script size was 520 bytes -1 byte for the ...
0
votes
1answer
24 views

verifying my modifications to bitcoind w/o broadcasting anything

I want to verify that my updates to the bitcoind source code don't break anything. One way that I thought of doing that was through loading the mainnet data into a regtest instance. To do that I first ...
0
votes
3answers
54 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 ...
0
votes
1answer
35 views

Who set the rules for validating a block in blockchain?

Who set the rules for validating a block in blockchain? The rules can be set the creator of the blockchain network. There might be some rules on the application that uses the blockchain network. Is ...
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 ...
1
vote
2answers
51 views

How nodes verify if the hash on a P2SH output is from a valid script?

I understand how the validation works if someone wants to spend coins from a multisig address. But what if the receiver makes a mistake and provides an invalid script hash to the sender? Is there ...
0
votes
2answers
44 views

When are blocks validated?

Are blocks validated just before they are stored to memory, upon receipt from an RPC submit call, or at some other time? Can you point to the place in code where this validation process begins? Is ...
0
votes
1answer
44 views

Link to Algorithmic behind signatures verification [duplicate]

Does anyone know a good paper where the process of signature verification is explained (message+signature+public key = valid/not_valid) ??? And I mean it at a low level, with the code or pseudo-code ...
0
votes
1answer
84 views

How does the p2p network monitor the validity of a transaction?

In Bitcoin, in order for a transaction to be added to the pool of valid transactions that will be added to the chain block by the miners, at least 51% of the nodes/peers need to review that ...
1
vote
1answer
54 views

Is it possible to append new blocks to a block of arbitrary age?

First of all, I'm aware of 51% attacks and how they work. Though, I was wondering, if Bitcoin and other blockchains allow appending cryptographically valid, new blocks to blocks of arbitrary age (if ...
0
votes
2answers
240 views

What’s the difference between a validation by nodes and a verification by miners?

In Mastering Bitcoin, it says: The transaction is then broadcasted on the bitcoin network, where each network node (participant) validates and propagates the transaction until it reaches (...
0
votes
1answer
30 views

Validation methods beside POW etc

Are there other concepts for the validation of the next added block to the blockchain beside POW, POS etc.? Of cource there are, but is there a methode that is shining out of the mass? A methode that ...
0
votes
1answer
108 views

Can you create a valid p2sh transaction with the redeem script in the scriptsig alone?

From my understanding, for a p2sh transaction to be valid the redeem script must hash to the same value as the output script being used to fund the transaction. So can't you just put the redeem ...
0
votes
0answers
23 views

How is transaction validated ( edited for unanswered question)? [duplicate]

What are exactly checked during this validation process? All transaction histories associated to the coins used in this transactions? And then who decides which block a validated transaction goes to? ...
1
vote
1answer
79 views

What prevents anyone from spending utxos from a native segwit address?

I read that transactions spending utxos from a native segwit address ( an address starting with bc1) are seen as anyone can spend transactions by legacy nodes. So what prevents someone from taking a ...
0
votes
1answer
40 views

Do miners check whether a transaction is segwit or non segwit?

When a transaction is pushed directly to a miner does it check whether the transaction is segwit or not or only if it is valid?
0
votes
1answer
157 views

How can i create an Anyone can spend output?

How can i create an Anyone can spend transaction using p2pkh outputs? Also how would such a transaction in hex look like?
0
votes
1answer
45 views

Can op codes be used instead of signatures?

Are there any op codes or combination of opcodes that can be used instead of a digital signature when creating a transaction?
0
votes
0answers
30 views

Valid p2sh transaction using only the redeem script

Is it possible to create a valid p2sh transaction using only the redeem script in the scriptsig and no signature?
1
vote
2answers
55 views

Does a node validates a transaction that comes with a block if it's already in its mempool?

Except for checking for double spends, if there's a transaction in a block that's already in the node's mempool, it can theoretically skip its validation. Does it actually happen, or the nodes ...
0
votes
1answer
69 views

Verifying ownership of utxos [closed]

Is there any other way besides signing a transaction to verify ownership of utxos?
0
votes
1answer
47 views

Why does bitcoin use signatures to verify transactions?

Why does bitcoin use signatures to verify transactions in order for them to be broadcasted and mined and is there any other method that could be used instead of signatures?
0
votes
2answers
25 views

Create a transaction which sends bitcoin to the address it's being sent from?

Let's say address X has 1 btc. Can you create a transaction which would send the 1 btc from X back to X and broadcast it without having to sign it, since the 1 btc is going back into the address it is ...
1
vote
1answer
273 views

How to create a p2sh transaction with a scriptsig of OP_true?

How can I create a p2sh transaction with a scriptsig containing OP_TRUE only, removing the need for a digital signature, which will be broadcasted and mined? Also could some one provide an example of ...
0
votes
1answer
245 views

How to create a valid unsigned transaction

How can I create a valid unsigned transaction which can be broadcasted and mined using these addresses? Could someone create the raw transaction and show me? sender's address: ...
0
votes
1answer
35 views

How can you send a transaction directly to the memory pool?

Is it possible to send a transaction to the bitcoin memory pool directly to have it mined without validating it?
0
votes
3answers
75 views

Is every bitcoin transaction (eventualy) validated by every miner? [duplicate]

I can see that my bitcoin transfers becomes real when my exchange detects 2 or more confirmations. I believe each confirmation is a validation. Am I correct? If so, How many confirmations will have ...
0
votes
1answer
40 views

How do offchain transactions get validated/confirmed whilst using Lightning network?

How do offchain transactions get validated whilst using Lightning network?
0
votes
0answers
27 views

Is there such a coin?

I am working on an idea that I think could benefit from blockchain technology and a crypto coin. I am looking for help to figure out if something that meets my requirements, which I describe below, ...
2
votes
0answers
178 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 ...
0
votes
2answers
46 views

Cryptocurrency exchange needs more info than any bank or brokerage firm?

I wanted to quickly sign up for a cryptocurrency exchange today to act on some info I found out about a low-cost coin (hahahah, quickly. how naïve). In signing up for the account, I got to a step ...
1
vote
1answer
131 views

Block #338819 deemed invalid by v0.15.1

I am attempting to sync from scratch a full node (v0.15.1) on a linux machine (Linux Mint running Ubuntu precise 12.04.1 LTS). The sync grinds to a halt on block #338818. From examining debug.log I ...
0
votes
1answer
46 views

How are transactions verified by nodes other than the initial receiver?

If I understand correctly, when I create a new transaction from my wallet, I have to sign it and encrypt it. My wallet encrypts the message using the public key of the node it is connected to, so it ...
0
votes
1answer
33 views

In a chain split scenario (not soft fork), a miner has to confirm transactions from both chains?

In a scenario where a chain split occurs (two miners find a hash), would miners have to work with both chains until one of then become larger (more PoW)? i.e. Would they have to validate transactions ...
1
vote
1answer
287 views

How can one verify the address you are sending BTC to

I've had an incident with an exchange that provides addresses to deposit BTC funds. For some unknown reason, the exchange is telling me they have never received the funds. I read the address with a QR ...
1
vote
1answer
161 views

Script to periodically update assumevalid block in bitcoin core configuration, good idea?

On my server my full node Bitcoin Core 0.15.1 can take several minutes, on starting, to "validate blocks". And during that time it's thrashing the disk, slowing down everything else. So I discovered ...