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
0
votes
1answer
23 views

Where do I include my wallet address after finding the hash less than target - bitcoin

Please help me understand the logic behind mining a bitcoin from scratch. I want to create a bitcoin miner, it will not receive any blocks from any pools. All should be done inside the miner. So, I ...
0
votes
1answer
32 views

Double SHA256 giving me an incorrect value with this code VB.net

I'm trying to build a bitcoin miner. I have generated the message successfully, but I can't get the double SHA256 correctly. The value I'm getting is incorrect. What is wrong with this code? Private ...
0
votes
1answer
27 views

If i have 42 tera hashes of mining power, how long will it take me to mine a block solo, and if i join a mining pool, how much bitcoin will I get?

If i have 42 tera hashes of mining power, how long will it take me to mine a block solo, and if i join a mining pool, how much bitcoin will I get? I am intrested in buying 4 Bitmain Antminer T9+.
4
votes
1answer
430 views

Which is the smallest hash that has ever been hashed?

Let's assume, the hash 00000000000000000024c0bdbec66a889778c00bc69be0a96cbbd98b75c3ce09 of block #499644 is smaller than 0000000000000000002d429f39afec70c938e888c3417d690bbc85e83529991c of block #...
1
vote
1answer
1k views

Two identical R value finding z value from two transaction

tx1 from the trans1 i got Input Scripts 30450220262e481b6d8905b5adba67aff05eb8261501b0a9434c0b7f043d00cf8d23c91b022100bf82c0d212f30d3a0599e9b879516d762eaf5688ab83787cf470e99af5a6917101 ...
4
votes
1answer
299 views

A security need for Bitcoin to fork to quantum resistant algorithm in a few years?

in just a few years I believe that quantums will exist that break asymmetric ciphers, and bitcoin is based on asymmetric ones like public-key-cryptography, correct? Symmetric algorithms are supposed ...
2
votes
1answer
426 views

Bitcoin Difficulty granularity

Difficulty adjusts by very granular percentages to target for 10 minutes blocks. But adding another zero at the end of the chain of zeroes from the header hash requirement for a valid block would ...
3
votes
1answer
1k views

Longest unconfirmed transaction?

I recently tried to make a transaction with coinbase. In a hurry I put no fee though. It's still unconfirmed and blockchain.info doesn't recognize my hash. But my btc qt wallet is debited. My question ...
2
votes
2answers
156 views

API for multiple blockchains

Is there an API to get data for multiple blockchains? Most blockchain explorers already offer an API but I'd like to be able to get information for different blockchains through the same API.
1
vote
1answer
35 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.
27
votes
1answer
6k views

Why are Bitcoin addresses hashes of public keys?

Currently, Bitcoin addresses and their checksums are constructed from the public key by a using repeated hashing with SHA256 and RIPEMD160. Now I understand the reasoning behind using hashing for ...
0
votes
1answer
61 views

Signature digital algorithm in bitcoin, to what will it change in the future?

in follow-up to the question: 85202 There, @Ugam Kamat wrote ""ECDSA is the first thing that can get vulnerable with quantum computer. signature will need to move to post quantum world much before ...
1
vote
2answers
204 views

What are the unnamed parts of the segwit/bitcoin cash raw tx shown and how do I get them as shown?

There are three parts to this. Shown here. Part 1. This string is found at the final form of the raw tx: ...
2
votes
3answers
535 views

Why is HMAC-SHA512 used on root the root seed to create master private key and chain code in HD wallets?

The process is depicted in this picture. Specifically, given that the root seed was derived using PBKDF2 (with 2048 rounds of hashing with HMAC-SHA256 already), why do we undergo an additional pass of ...
1
vote
1answer
935 views

The warpwallet challenge 2

here you can find a public challenge aimed to brute force a brain wallet private key, derived from 8 char long [a-zA-Z0-9] passphrase with a salt of "a@b.c". Is it possible to adapt an hashing ...
2
votes
2answers
3k views

Generate private key from a bip-39 seed phrase?

I'm able to generate a new private key and associated public addresses using bitcoin-core, but what I really want to do is generate a new private key from a 24 word seed phrase. I'm not sure how to go ...
0
votes
1answer
193 views

How do I double SHA-256 the header of block #59,500?

I'm not sure how to combine all of this information. https://blockchain.info/block/00000000096af43105123c499521e1d131d172e7e1bf2ed0843290a921f1f6a7 Version 1 Time Bits 470771548 (is this the right ...
1
vote
2answers
67 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
897 views

How do I get hash to verify transaction?

If I have the public key and signature for a transaction how do I get the hash value that is used in verify(hash, sig, pubkey). I want to know how to work backwards from a raw transaction to get it, ...
2
votes
1answer
72 views

How can I find a hash with leading zeros

I came across a similar question that was asked but the answer didn't seem quite complete. Coding is completely foreign to me and I have spent some time trying to solve with no success. I am trying ...
1
vote
1answer
625 views

Bitcoin - Is the <pubKeyHash> in scriptPubKey already hashed?

In Bitcoin protocol, to set the output of a transaction you need a scriptPubKey which is in the following format. scriptPubKey = OP_DUP OP_HASH160 <pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG Is &...
2
votes
1answer
44 views

How does Bitcoin utilize cryptography and secure hash algorithm (SHA) to link records in the blockchain?

I am wondering how Bitcoin uses cryptography and secure hash algorithm such as SHA256 to link the records in the blockchain. And if possible I think it will give me a better understanding if there is ...
0
votes
0answers
34 views

Blockchain.info explorer doesn't recognize my hash

Blockchain.info doesn't recognize my tx. Can someone explain this. My wallet is debited. The transaction is unconfirmed too.
1
vote
1answer
27 views

What would be the effect on the number of leading zeros hash generation if bitcoin increase its nonce size from 32 to 60 or 100 bits?

If Bitcoin increases its nonce size from 32 bits to double or triple the size, how will it affect the speed of getting the right hash with the required number of zeros?
1
vote
1answer
31 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
2answers
46 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 ...
0
votes
2answers
63 views

I am just wondering what are the methods which can hide all the transactions and also able to validate transactions in an block chain?

I am new to block chain and was looking at how block chain work mainly proof of stake based . They check validity by going through all the transactions which is something concerning as everyone can ...
0
votes
0answers
100 views

How get the public key to hex script? like command decodescript of bitcoin core

If I want to recreate the command decodescript of bitcoin core? how is the process for decode the script P2PK? So I'm writing for personal exercise the Bitcoin script decompiler, form moment I have a ...
0
votes
1answer
17 views

How are the requirements of the hash for mining a new block determined?

How are the requirements of the hash for mining a new block determined? Is it published or a message is sent?
1
vote
0answers
60 views

How to sign an Altcoin transaction manually with 2 inputs and 2 outputs

So i'm working with the altcoin denarius which has the following raw TX structure. This is a transaction I am try to sign: Original: ...
2
votes
1answer
662 views

Can't find correct z1 & z2 for transaction

I've been trying to understand the issue and repeat Willem Hengeveld's answer, but I think I'm failing at getting correct script for hash. I'm looking for this transaction, my scripts are: ...
0
votes
1answer
147 views

Hash-based crypto-currencies?

What are the most famous crypto-currencies which use repeated hashes as proof-of-work? What are the other proof-of-work methods?
0
votes
1answer
887 views

BTC Hash-Rate API

I'd like to get hash-rate of BTC from OKcoin' API(GET /api/v1/charts/:type) here is OKCoin's API web site. How can I get information from here is OKCoin's API web site. python gets = requests.get("...
0
votes
0answers
40 views

BIP32 HD Wallet vs HMAC vs Hashing

I've been working on a website which will be caring out various cryptographic operations. On the website users can post Ads. Each Ad has a monotonically increasing unique ID. For each Ad, I would like ...
3
votes
2answers
750 views

Checking the Merkle Root for Block #100000

The below text is copied from the Bitcoin Developer Reference at bitcoin.org: If a block has three or more transactions, intermediate merkle tree rows are formed. The TXIDs are placed in order and ...
0
votes
0answers
31 views

Bitcoin Module - Hash512-EVP_ByteToToken

Is there any standalone software modules created which allow the user to complete the following: 1. Enter in passphrase 2. Enter a given salt 3. Enter the number of rounds I am looking ...
1
vote
1answer
56 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 ...
0
votes
1answer
24 views

When changing transaction data in a block change the hash of previous block?

If i only manually change the data on the block without touching/modifing the already calculated hash, then hash on the block its still valid because its already saved and was not touched ... so, ...
0
votes
2answers
727 views

How does changing transaction data in a block change the hash of previous block?

I am reading this article, within which it mentions that "Imagine this for a second, a hacker attacks block 3 and tries to change the data. Because of the properties of hash functions, a slight ...
0
votes
3answers
2k 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
47 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 ...
6
votes
3answers
9k views

What is the approach to calculate an Ethereum address from a 256 bit private key?

For a given private key generated by MyEtherWallet, I would like to see I have the tools to independently arrive at similar results. Wrote a wrapper around Keccak to accept both hexadecimal and ...
3
votes
1answer
392 views

Duplicated hash values in mining reward

This transaction is contained in two MainChain-Blocks: https://blockchain.info/tx/e3bf3d07d4b0375638d5f1db5255fe07ba2c4cb067cd81b84ee974b6585fb468 On Blockexplorer there is a note of this anomaly: ...
1
vote
2answers
395 views

Is verification of a blockchain computationally cheaper than recreating it?

One of the advantages of cryptocurrencies like Bitcoin that is often repeated is how hard it should be to manipulate past transactions. The reason that is often stated is that you would have to re-...
1
vote
1answer
34 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 ...
0
votes
0answers
48 views

Method to create P2SH address

I am trying to create a htlc smart contract manually by writing a script and finding the hex using the btcc compiler. Now node A has to create a transaction using that hex and lock money in that p2sh ...
1
vote
1answer
19 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
2answers
149 views

Electrum's “script hash” form with NBitcoin?

I've come across how scripts are hashed in the electrum (stratum) protocol implementation by looking at the docs. I'm using NBitcoin, and I've tried to generate this hash from a segwit address, first ...
0
votes
1answer
48 views

OP_EQUAL not working properly

I went to https://siminchen.github.io/bitcoinIDE/build/editor.html to try some bitcoin scripting and I wrote this script: <1PUzZ61FSVTn12CafJC85Vy1ts3BoFcXdU> OP_HASH160 <...
0
votes
0answers
20 views

Is the current hashcash proof of work system vulnerable to attack by quantum computer? [duplicate]

I've been caught up in the post-quantum cryptography scene for a little while now, and understand that the RSA or ECC cryptography inherent in a cryptocurrency network can be easily broken by a ...

1 2 3 4 5 8