Questions tagged [algorithms]

Regarding the underlying algorithms related to Bitcoin protocol.

Filter by
Sorted by
Tagged with
2
votes
0answers
664 views

Ws2tcpip.h and winsock2.h on Window QT Wallet

Been trying for the past few days but couldn't get it working, I already download the latest cryptopp library but its seems that maxcoin got some issue compiling If I qmake "USE_UPNP=-" maxcoin-qt....
1
vote
2answers
437 views

Is it possible that the authors of Bitcoin have an alternative way of generating bitcoins?

Is it possible that the Bitcoin creator (or developers) have an algorithm that allows computers to generate coins easily, but intentionally published only the current difficult mining algorithms. And, ...
1
vote
2answers
751 views

What is the most lightweight proof-of-work algorithm?

I know litecoin was created back in the day using Scrypt as to make it more lightweight but also harder to build ASIC hardware from - so everyday computers could mine. Are there other algorithms one ...
1
vote
2answers
380 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
3answers
2k views

Get uncompressed public key from compressed form

A similar question has an answer in Python which links to the bitcointalk forum: How can I get the uncompressed public key from the compressed public key in openssl? https://bitcointalk.org/index.php?...
1
vote
3answers
989 views

Is difficult hashing algorithm necessary?

To avoid GPU/ASIC mining, difficult hashing functions, such as scrypt and scrypt-jane, are proposed as PoW algorithm (However, GPU and ASIC are also suitable for basic scrypt operation). Is it good ...
1
vote
1answer
214 views

Possible to temporarily reduce the supply of a cryptocurrency?

Does a cryptocurrency that can have its supply be reduced based on some factor currently exist? If not, is this possible? If so, how?
1
vote
1answer
166 views

What happens if I use same k twice in DSA algorithm?

To sign a message , we choose nonce k but what happens if we use same k twice to sign a message using DSA algorithm?
1
vote
2answers
6k views

Creating a bitcoin/litecoin miner with Javascript

I am a web developer and looking for well written technical documents about how bitcoin/litecoin works, what is the workflow, what is the algorithm and how can I write a miner from scratch by using ...
1
vote
2answers
153 views

Are there any stochastically dependent proof of work algorithms?

In bitcoin, the probability of discovering a block on the X-th hash is the same1 as it is on the Y-th hash. As such, the probability of discovery is stochastically independent. Are there proof of ...
1
vote
1answer
498 views

what is the difference between eatch coins wallet address,what is the coin public id/salt?

i looked at the link: http://brainwallet.org/ witch generate offline wallets for all major coins, i noticed that the same Passphrase generate different [Private Key&Address] pairs for eatch coin ...
1
vote
1answer
645 views

How are bitcoins put in to circulation? [duplicate]

I'm excited because I bought my first bitcoins today! (0.41 bitcoins at that!) I'm wondering how they are put in to circulation? From my understanding it seems that the algorithm generates x bitcoins ...
1
vote
1answer
111 views

Why are transactions grouped into blocks? (how are new blocks-to-solve formed)

Why are transactions grouped into blocks when put onto blockchain (PART 1)? Lets say we have just put a block on a chain and there are no blocks at the moment that users mine. At that moment how many ...
1
vote
1answer
442 views

How do miners decode the input transaction?

When a transaction is broadcasted to the network, the transaction string contains the little-endian of SHA256(SHA256(X)) where X is the transaction string of input transaction. Now, since SHA is ...
1
vote
1answer
557 views

Bitcoin mining algorithm - target - Java

Default share difficulty is 1 (big-endian target for difficulty 1 is 0x00000000ffff0000000000000000000000000000000000000000000000000000) How to calculate this? How it look like on Java code? What ...
1
vote
1answer
1k views

Hashrate comparison for multiple hash algorithms

My question is about the hashrate obtained with same hardware (non-ASIC) on many algorithms. For example, I've read that Scrypt-N is about half the hashrate of Scrypt. Is that true for all hardwares? ...
1
vote
1answer
442 views

Merging blockchains after algorithm change

When a cryptocoin changes algorithm (eg. scrypt to X11), how does one achieve the merging of the two blockchains? I'm assuming that they couldn't be directly compatible based on being completely ...
1
vote
1answer
168 views

How is Ethash a 'memory hard' algorithm if it utilizes peak GPU memory bandwidth?

According to the Ethash algorithm described here, the computation for each nonce requires a loop of 64 iterations, where each iteration reads a chunk of 128 bytes from a pseudo-random location in ...
1
vote
1answer
639 views

if a Bitcoin mining nounce is just 32 bits long how come is it increasingly difficult to find the winning hash? [duplicate]

I'm learning about mining and the first thing that surprised me is that the nounce part of the algorithm which is supposed to be randomly looped until you get a number smaller than the target hash .. ...
1
vote
0answers
84 views

Why do different currencies use different units of difficulty? [closed]

I'm trying to understand the relationship between difficulty and network hash rate. I feel like I understand it for Etherium, where the difficulty is the same as the total number of hashes the network ...
1
vote
0answers
512 views

How do Bitcoin and Litecoin compare in scalability?

Bitcoin and Litecoin are very similar, however they differ in the hash algorithm, the block interval and reward schedule. How do these characteristics impact the scalability in terms of e.g. ...
1
vote
0answers
2k views

What is the difference between X11 and X11 Ghost (Gost)

I'm looking at SIBCOIN. Its algo is X11 Gost. I've been trying to see what differentiates that algo from "plain, vanilla" X11.
1
vote
0answers
517 views

Bitcoin pool mining test [closed]

i write part of miner for check correct work private String generateCoinbase(String en2){ StringBuilder coinbase = new StringBuilder(); coinbase.append(coinb1); coinbase.append(...
1
vote
1answer
569 views

Shabal256 code explanation

Can anyone please explain the code below with comments? What are pbegin & pend ? What is ( I believe it is data, where it comes from ?): (pbegin == pend ? pblank : static_cast<const void*>(...
0
votes
2answers
250 views

At which point and how does the miner who successfully solved hash get coins? [duplicate]

When miner creates a valid block he broadcasts that to the network. It can happen that someone else did the same. So we have half nodes think that chain+A is correct, and other half that it is chain+...
0
votes
2answers
46 views

I want to know how I can express a phenomenon found in Merkle Trees mathematically

I want to know how I can express a phenomenon found in Merkle Trees mathematically. If I want to figure out which leaf node in a Merkle Tree has changed I can look at the authentication path to figure ...
0
votes
1answer
199 views

How bitcoin protocol checks transaction is valid (in particular that inputs are unspent)?

I'm learning bitcoin protocol theory. To pay to someone you use a transaction. In the transaction you specify some of old transactions that gave you money (so called inputs). These inputs should have ...
0
votes
1answer
519 views

What parameters are used to calculate the challenge string during bitcoin mining (blockchain creation)?

How is the challenge string computed mathematically? What's preventing some node on the bitcoin network from broadcasting a challenge + proof to other nodes as it's own when it received it from some ...
0
votes
1answer
84 views

How can I check what mining algorithm does an altcoin use?

Where in the sourcecode files can this be checked? For example, lets get a specific coin: Chronon https://github.com/ChrononGroup/Chronon In what file can one check the mining algorithm?
0
votes
1answer
93 views

How many transactions per second can blake2s algorithm can handle?

i saw the hash functions speed (miBps) are 947 according to this website: https://blake2.net/ but how many transactions blake2s algorithm can handle? Verge uses the same algorithm right? more about ...
0
votes
2answers
145 views

How to return Tx to mem pool from orphan block

This question is centered around the implementation of how transactions on an orphan block return to the mem pool. In my understanding, once a block becomes orphan all it's transactions (that aren't ...
0
votes
1answer
399 views

Difference between scrypt and sha-256 mining?

So in detail my question is: are both these two algorithms different from each other?. I read somewhere that this two algorithm is used for the different cryptocurrency. if that's true. then why? ...
0
votes
1answer
101 views

Does the 100+ GB blockchain database contain every transaction?

Does the 100+ GB blockchain database contain every transaction since the beginning, or only a digest of them? I've read Nakamoto's paper and I see: the spent transactions before it can be ...
0
votes
1answer
2k views

Nicehash autoselected algorithm with very high difficulty

I'm new at this so please bare with me I have a couple gtx 750 lying around so I decided to give mining a try. I used nicehash, according to the site "NiceHash Miner autoselects the most profitable ...
0
votes
2answers
720 views

Own bitcoin pool miner algorithm

I receive these variables from the mining pool: job_id, prevhash, coinb1, coinb2, merkle_branch version, nbits, ntime, clean_jobs. What must I do with them? Can you write step by step formulas how ...
0
votes
1answer
2k views

Does Bytecoin use SHA-256?

Also, doesn't this mean that I can use hardware such as a bitcoin usb block erupter to mine it?
0
votes
1answer
416 views

Two identical transactions and hashes in Block Hashing algorithm

As I was reading Bitcoin hashing algorithm, I see that a Block Header contains hashes in the form of fields like hashPrevBlock , hashMerkleRoot . I have following questions: 1) Are the transactions ...
0
votes
1answer
176 views

What is the difference between BFT and PBFT

What are the differences between BFT and PBFT? I want to know the difference between these two concepts. If there is any improvement in the BFT's limitations, let me know. Please answer. Thank you.
0
votes
0answers
10 views

what happens when their is a bicoin algorithm half? [duplicate]

I saw in an article something about a bitcoin algorithm half in 2020, what exactly is this, I have tried looking this up but I couldn't find anything that told me what it was only this.
0
votes
1answer
250 views

Can the Antminer S3 mine Bitcoin using Blake2s algorithm?

If so, how? Nicehash can also do this, so what I'm trying to do is point my Antminer S3 to Nicehash's Blake2s stratum. But will changing the stratum URL be enough? Do I have to set up Blake2s first?
0
votes
1answer
258 views

How an order fulfillment works

I'm trying to understand how order fulfillment algorithm works from technical point of view. Let's say I created an order to sell 0.8 BTC and buy 5400 XRP along with other orders to sell 0.35 BTC, 2....
0
votes
1answer
94 views

Is the whole idea of proof of work or proof of stake quite unnecessary and superfluous for cyptocurrencies?

I only have a vague idea of proof of stake, but I think I reasonably understand proof of work. In the case of bitcoin, the whole hash thing business has to be combined with a mechanism to increase the ...
0
votes
1answer
314 views

Why do I keep getting a connection lost error in Nicehash Bitcoin mining

The algorithm I'm using is daggerhashimoto. At first I thought this was because of my country blocking Bitcoin mining or something, but it doesn't work even if I'm using a VPN (vpnbook.com/freevpn). ...
0
votes
1answer
141 views

which cryptocurrency using Slasher algorithm for Proof of Stake mining process?

Ethash algorithm for PoW mining process on my own cryptocurrency. I need to use Slasher algorithm instead of Ethash algorithm for Proof of Stake process. My question is Which cryptocurrency using ...
-2
votes
2answers
54 views

Any attack vector for Proof of Witness?

When Alice wants to send Bob some coins all she has to do is sign a transfer of ownership with her private keys and publicize that announcement until Bob is happy with the number of witnesses. For ...
-3
votes
1answer
75 views

Question about mining algo [duplicate]

Lets say mining block is generated in 18:00, next block is generated after 10 minutes in 18:10 by user GENERATOR_18_10 As I understand, all transaction fees (for transactions included in 18:10) will ...
-4
votes
2answers
210 views

WeaveCoin - Extremely High-Speed AltCoin - Is this Possible? [closed]

I've written a proposal for an extremely extremely high-speed transaction verification algorithm: http://kenthagerman.blogspot.ca/2014/08/weavecoin-high-speed-crypto-currency.html Is this possible? ...