Questions tagged [hash]

This tag should be used for questions related to hashes. A hash is the output of a hash function, a function which .is a mathematically reproducible but irreversible process that takes in an arbitrary length input and produces a fixed length output. The same input will always result in the same output. Hashing is central to Bitcoin mining as well as the generation of Bitcoin addresses.

Filter by
Sorted by
Tagged with
1
vote
2answers
318 views

How to get block header hex?

I am trying to research hash functions and I want to be able to use bitcoin's mining outputs as hashes. I am curious about where the actual hex value of the data that generates that hash with a lot of ...
1
vote
1answer
562 views

How does Bitcoin verifies signature if addresses are one way hashed

I'm stuck at understanding Bitcoin's transactions. So, the owner must sign the transaction with his private key, then miners can verify whether this signature matches his public key. However the ...
1
vote
2answers
10k views

When mining with 2 computers, do I need to use 2 separate wallets addresses?

I understand that each miner is working on a different block. Correct me if I'm wrong but this is because the first transaction in a block basically contains my wallet address so I can receive the ...
1
vote
4answers
4k views

Alternative Cloud Hashing sites to Cex.io [closed]

I am really impressed with Cex.io and their whole concept of trading Ghs for Bitcoin as well as cloud mining which I find to be novel and interesting. Are there any other sites like that? I know ...
1
vote
1answer
152 views

Why do miners need a nonce if the timestamp changes the hash of the block?

As the title says. If the timestamp is constantly changing with every guess, why does the miner also include the nonce? Is it because they're mining too fast for the timestamp to change?
1
vote
2answers
96 views

How do more leading zeroes make it more difficult to find a block?

A couple of articles describing the process of mining do say that the more miners are in the network, the more 0 numbers are included in the encoded hash of the particular block. I cannot find an ...
1
vote
1answer
214 views

How specific are ASIC's design? Can they single hash SHA256?

I understand that Bitcoin's ASICs are a highly optimized piece of equipment and, therefore, are also very specific. My question: are they able to do a single (or triple?) SHA-256 hash at all? And, ...
1
vote
3answers
576 views

Getting the wrong txid for coinbase transactions

I'm trying to hash transactions to get the txid. I get the hex values from blockchain.info. I get the correct hash for all transactions except for the coinbase when I hash it twice. Is there something ...
1
vote
3answers
6k views

Why is it impossible to modify a transaction in the blockchain?

Many pages (including Wikipedia) say that it is impossible to modify a transaction which is already in the blockchain included. But why is it so difficult?
1
vote
1answer
1k views

Why the nonce is difficult to find in Bitcoin?

I read many articles explain the Bitcoin POW, but every article seems copy form each other. they just indicate find a nonce start from 1, but I still confused why find a nonce number is so difficult? ...
1
vote
3answers
756 views

Hash pointers: Are hashes of data used as addresses?

I am wondering how hash pointers are implemented in reality. Currently, I am reading this article about hash pointers. According to this website a hash pointer allows both to request data and to ...
1
vote
1answer
353 views

How are thousands of transactions put into a block?

As much as I hate to admit it, I am not very tech savvy, and as such, I am fairly confused about the concept of the blockchain. I understand that the chain holds information about previously approved ...
1
vote
1answer
1k views

Is the hash of the previous block included in the block header?

What the title says above, but for more clarification I am asking whether the hash of the previous block header is part of what is hashed to create the header of the new block? Like what are all the ...
1
vote
1answer
2k views

Two identical R value finding z value from two transaction

tx1 from the trans1 i got Input Scripts 30450220262e481b6d8905b5adba67aff05eb8261501b0a9434c0b7f043d00cf8d23c91b022100bf82c0d212f30d3a0599e9b879516d762eaf5688ab83787cf470e99af5a6917101 ...
1
vote
2answers
459 views

Difficulty for hash (reversed function of “does hash met difficulty/target”)

What is an algorithm to determine what maximum difficulty already found hash meets?
1
vote
2answers
482 views

Required number of bits in nonce [duplicate]

Is there a formal proof that with N bits to iterate in the nonce of the block, a hash satisfying proof of work will be ever found? How large that N (number of bits in the nonce) should be to satisfy ...
1
vote
1answer
21k views

How to work out my hardware's hashrate power

Using my existing hardware, I want to work out which altcoin is still profitable to mine. I have found this link: http://dustcoin.com/mining But don't know which values to enter into the boxes at ...
1
vote
2answers
4k views

How to hash data from 'getblocktemplate' request

I've been reading lots of articles, trying to understand how to hash the data returned from getwork; but I totally overlooked getblocktemplate. I'm just trying to understand how all the data below is ...
1
vote
1answer
23 views

Doubt regarding hashing function in Merkle trees

From what I read, say in a block, there are 4 transactions. The hash value of transactions A and B are combined together to get the hash AB. Same goes for transactions C and D to get hash CD. Later AB ...
1
vote
1answer
161 views

where in the source code is the the proof of work checking the blockheader hash and nonce?

Where in the source code do we check whether hash(blockheader*nonce) < Difficulty In fact, the line I found is as follows: https://github.com/bitcoin/bitcoin/blob/v0.17.0.1/src/pow.cpp#L87 My ...
1
vote
1answer
136 views

How to determine right address from address hash

I'm using private libbitcoin server and libbitcoin explorer. When I use bx fetxh-transaction, it returns something like: I'm trying to figure out, how to get right address from address_hash. When I ...
1
vote
1answer
126 views

What does this comment in Chainparams.cpp mean?

There is a comment in the Bitcoin source code under src/chainparams.cpp /** * Build the genesis block. Note that the output of its generation * transaction cannot be spent since it did not ...
1
vote
2answers
1k views

How are Bitcoin Signed Messages generated?

Ledger Nano S and other pieces of Bitcoin software and hardware can sign messages using the private key associated with an address. Doing this, I get the following output: -----BEGIN BITCOIN SIGNED ...
1
vote
2answers
113 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 ...
1
vote
1answer
112 views

Why is the target truncated?

Reading the docs on target: The maximum target used by SHA256 mining devices is: 0x00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF Because Bitcoin stores the target as a ...
1
vote
1answer
261 views

Bitcoin RIPEMD160 purpose

Bitcoin uses RIPEMD160 on top of SHA256. Is its sole purpose to make public key address shorter or does it strengthen security in any way?
1
vote
1answer
122 views

What dead simple algoritm can be used for generating checksums by pen and pencil?

I'm holding a course on Bitcoin and blockchain technology. On my agenda I have an exercise where I'm going to let the attendees create their own blockchain on the wall using post-its. I'm in search ...
1
vote
1answer
206 views

Why do we inverse the hash of the blockheader?

Let's pick this example blockheader-hashing in Python: from hashlib import sha256 import hashlib header = "...
1
vote
2answers
1k views

Two addresses with same hash160?

It seems that two addresses have same hash160 69665e2c4fac771e340f8c6f91c719b0c37a6a8f: here 0 BTC: https://blockchain.info/address/1AcJanbHGrBFwS3KJMDW8kEZMtHiJhatzE here 0.00720407 BTC: https://...
1
vote
1answer
4k views

Where is debug.log file in Bitcoin source code?

I am running 64bit Ubuntu 17.04, I am following this tutorial for creating a new altcoin. I am up to section 7, here to be exact: The first time you run the compiled code (daemon or qt), it will say "...
1
vote
1answer
1k views

Why do we need block hashes in blockchain?

I believe there are around 3 types of overall hashes that we deal with in Bitcoin. block hashes Merkle tree hashes (makes transactions tamper proof by hashing them up to the Merkle root) public-...
1
vote
1answer
779 views

How to generate random addresses from public key such that they're recoverable later using pub key only

I head that from a public key, you can generate random addresses just by adding a nonce to the public key. Then, you can regenerate all these addresses again when you need, right? If my wallet has ...
1
vote
1answer
2k views

same R value is used for two different addresses? finding z1 and z2 value and privatekey

txid1 txid2 input script 1 304502206bcc247f1259262b4035bfa84f0397a69f69baa01659daaf94fe1164b650c86a022100a044b38e8264a1c928ddd28b4657aa7109d1ea30e911208c7ce57abcb1451fe601 ...
1
vote
1answer
536 views

How does Multi-Signature Pay 2 Script Hash (P2SH) enable stronger security?

Coinfloor says it will pay out withdrawals using Multi-Signature Pay 2 Script Hash. What is Multi-Signature Pay 2 Script Hash? I read What is "Script Hash" address exactly and how does it ...
1
vote
1answer
547 views

Are transactions still tamper-proof if blocks are hashed without nonces?

If an alt were to forgo difficulty and timed release of new supply by removing the nonce from blocks therefore the whole difficulty/target system, is hashing without nonces still providing the same ...
1
vote
1answer
290 views

How is the solution hash in a block generated?

For example, in the Genesis block in Bitcoin, from which values was the solution hash "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f" derived from? I understand that the nonce is ...
1
vote
1answer
29 views

With the right technology, could the entire blockchain be rewritten?

Imagine that someone had access to an alien super computer such that they could mine any block in nanoseconds. At that point, could that person create a chain with the same BTC genesis block, generate ...
1
vote
1answer
22 views

College Economics Student in Support of Crypto Looking for Live Hashrate Data

I am a college economics student doing a Thesis project in support of the long term viability of Crypto. Does anyone know where I can get live Hashrate data for free or for sale? I appreciate it - ...
1
vote
1answer
50 views

What will happen when a collision in SHA256 be found?

Would the protocol migrate to another Hash Algorithm inmediatly? What would be the next? SHA3 or BLAKE 2?
1
vote
1answer
114 views

How many bits of entropy is a Bitcoin address?

I've seen references to 160 bits of entropy, but I'm not sure if this is universal or just applies to the old address format.
1
vote
1answer
36 views

How to transfer hash power from one pool to another

Is it possible to transfer hash power from one pool to another? If yes, how?
1
vote
1answer
201 views

How many hash calculation is needed to reach one BTC?

What I am asking for is a formula and it's source of numbers to put in there and calculate how many hashes must be calculated to get 1 bitcoin today(or every other day in future)? For example, if I ...
1
vote
1answer
54 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 ...
1
vote
1answer
43 views

How is the PRIVATE KEY actually created in the first place?

How is the "Private Key" created in the first place? I understand that once you have your wallet, you will also gain access to your public key and private key... But in order to have a wallet ...
1
vote
1answer
39 views

How chaining the blocks protect against altering data?

I am confused with the block chaining, as i know a block header contains a reference to the previous block header hash with the merkle root and other fields. This header hash is related (computed) to ...
1
vote
1answer
65 views

Sorry newbie, I dont get the PoS block creation, to much contradiction

I am sorry for the repeat question but I cant find a clear answer. Most of the time PoS isnt explained in detail (only explaining the advantage) and a lot of sources contradict each other and now I am ...
1
vote
2answers
189 views

Why is the nonce bruteforced from 0 to n while mining?

bitcoin noob here. I was wondering why is the nonce increased from 0 to n while searching for a blockhash? Why not start at some other integer > 0 for example? My background is in ethereum-dev, so ...
1
vote
1answer
72 views

Can Bitcoin Tech be Used to Protect Journalists [closed]

Over eight Nigerian journalists are currently in police detention because they published investigative news stories that didn't sit well with the government of the day. How can the bitcoin ...
1
vote
1answer
658 views

Why is it important that the hash algorithm is puzzle friendly?

I don't understand "PUZZLE FRIENDLY". Here the definition I read: A hash function h is puzzle friendly if for every possible N-bit output value y, if K is chosen from a distribution with high ...
1
vote
2answers
171 views

Where is the Coin in the Transaction Hash Chain?

In Satoshi Nakamoto's diagram: I see a Hash in each transaction block. It would be interesting to see the first block in the chain--it isn't shown. I say that because I do not see anything that ...

1
3 4
5
6 7
9