Stack Exchange Network

Stack Exchange network consists of 175 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 [cryptonight]

CryptoNight is a proof-of-work algorithm that mixes graphics processing unit (GPU) and central processing unit (CPU) mining to create a system resistant to both application-specific integrated circuits (ASICs) and fast memory-on-chip devices

0
votes
3answers
517 views

Is there a Javascript implementation of the CryptoNight algorithm?

Before I seek to write one of my own, I wanted to see if there's a CryptoNight Javascript algorithm anywhere out there. I found the CryptoNoter project, but it only contains an obfuscated binary file ...
1
vote
1answer
107 views

How does nicehash perform share validation?

I'm talking about two services: NiceHash and MiningRentals and CryptonightV1 algorithm (which they call CryptonightV7), for example. Let's suppose someone trying to fool one of them and: Miner (...
0
votes
1answer
105 views

Anyone know if CoinHive uses the new Monero hashing algorithm?

When I visit https://coinhive.com/ , I see a "Start Mining" button at the center of their page. I know recently Monero changed its hashing algorithm to be CryptoNight v1 (variant 1). Does Coinhive ...
0
votes
1answer
150 views

CryptoNight can mine monero?

Thanks in advance for all answers at first I am new in this business. I want to buy Baikal N240 which has Algorithm CryptoNight and CryptoNight-lite. I want Mine Monero. My question is, can we ...
0
votes
1answer
85 views

Hardening a mining pool

I have setup a mining pool for a smaller project that uses Cryptonight variant 1. I have been running into problems with ddos attacks when other people started launching other mining pools. At first ...
3
votes
1answer
119 views

What PoW hashing algorithms did Monero historically use?

Originally, Monero used the Cryptonight PoW algorithm, then started modifying it to thwart ASICs getting large parts of the network hash rate. What is the timeline of these changes ?
0
votes
1answer
40 views

Any quick way for me to test my browser's hash rate for CryptoNight v2?

I want to test the rate at which a WebAssembly miner can calculate CryptoNight v2 hashes in my Chrome web browser (or what my browser's Monero hash rate would have been as of ~May 2018). Is there an ...
0
votes
2answers
64 views

Would a long-time block target be annoying?

Lets imagen for a second that I have an idea for a really unique coin and not just a clone ... If I created this coin to have an average new block-time of 1 day would it need to give more coins for a ...
2
votes
1answer
320 views

What's the difference between the CryptoNightR and RandomX algorithms?

My understanding is that CryptoNightR randomly creates different calculations for each block, and that RandomX does the same, but using a system where any bytecode can be translated into a calculation....
1
vote
1answer
373 views

Can anyone explain the working of CryptoNight?

I went through this. And I could not comprehend well. For example, in SHA-256, it takes any type of input and gives a 256-bit output. And if we add a random number as a tail in the input, the output ...
4
votes
1answer
291 views

How is CryptoNight variant 4 increasing the CPU to ASIC performance ratio?

At block 1788000, Monero will switch PoW from CryptoNight variant 2 to variant 4. This change has two main goals: break any current CNv2 ASIC make hypothetical CNv4 ASICs perform less well compared ...
0
votes
1answer
1k views

What are the differences between Cryptonight-R and Cryptonight v4?

Monero is switching to Cryptonight variant 4 (CNv4) in March 2019. CNv4 is based on Cryptonight-R, with some modifications. What are these modifications ?
1
vote
1answer
96 views

What is the best Python library for hashing Cryptonight?

What is the best Python library for hashing Cryptonight hashes and building mining software?
1
vote
1answer
35 views

Is there a written document or resource about CryptoNight v2?

I am looking for something like this: https://cryptonote.org/cns/cns008.txt It's got a detailed, written explanation and not just code. I am trying to make a miner for learning purposes so I guess ...
1
vote
1answer
127 views

I'm trying to create a Python miner, can I get some guidance please?

I have been wondering how to make a Python Monero miner. I know about py-cryptonight, but does anyone know anything about how to actually code with it? I understand that cn_slow_hash is for mining, ...
1
vote
1answer
444 views

What are the main advantages / disadvantages between proposed RandomX to ProgPoW?

Ethereum developers recently decided to fork off Ethash ASICs like Monero did before. However, Monero changes its CryptoNight mining algorithm only slightly every six months until a more robust ...
2
votes
4answers
2k views

Would this be a good hardware setup for Monero mining?

I'm completely new to mining Monero but I want to give it a try and get more knowledge of hardware. So I got a good price for an Asrock D1800M. It is a BGA Celeron and the system should use around 20W ...
2
votes
2answers
525 views

Why does the Monero difficulty increase? [duplicate]

Monero's difficulty has soared a lot in the last days and the trend seems to be confirmed. Why did it happen? What is the technical reason?
2
votes
2answers
206 views

What is the difference between v7 and v8?

Only the version changes in block.major_version? const int cn_variant = b.major_version >= 7 ? b.major_version - 6 : 0; crypto::cn_slow_hash(bd.data(), bd.size(), res, cn_variant); Am I right? ...
0
votes
3answers
249 views

CryptoNight heavy vs CryptoNight light

Which version of the CryptoNight algorithm can we use for ASIC resistance. My understanding is that CryptoNight v7 is not ASIC resistant. Can you please explain the algorithm versions. Thanks in ...
2
votes
1answer
34 views

Where and how to start to understand Monero?

I'm a newbie and I would like to know more about Monero and the technology behind it. What is a good starting point to learn more about Monero? Website, wikis, books? Thank you so much for answers.
0
votes
1answer
34 views

Can't seem to reconstruct hashing blob for old block

I'm trying to re-construct the "hashing blob" for an old block and calculate the correct hash to validate some code, but I can't seem to get the correct results. I've confirmed (via unit tests against ...
0
votes
1answer
57 views

How to switch the algorithm according to hard fork height?

When a hard fork is scheduled, how does the program recognize the hard fork? And how to make the whole network recognize the new algorithm?
0
votes
1answer
61 views

Why does Monero use epee in the crypto module?

Is there any obvious gain to using epee in the crypto module? I don't know why this code is inside crypto instead of cryptonote: inline std::ostream &operator <<(std::ostream &o, ...
4
votes
1answer
73 views

CryptoNight detail. Why this kind of multiplication?

The Cryptonight description by the CryptoNote team states that The 8byte_mul function, however, uses only the first 8 bytes of each argument, which are interpreted as unsigned 64-bit little-...
4
votes
1answer
125 views

How is Keccak calculated in Monero?

I am reading the monero's implementation of Keccak (used as first part of slow_hash) in src/crypto/keccak.c I have found that it is a Keccak-256 (with b=1600, c=512, r=1088) and "output" of 1600 bits ...
5
votes
1answer
328 views

Cryptonote SHA3 bigger than 64byte? (Scratchpad Initialization)

The cryptonote whitepaper says First, the input is hashed using Keccak [KECCAK] with parameters b = 1600 and c = 512. [..] That's nothing else as hashing the input with SHA3. The size of a ...
1
vote
1answer
116 views

Why low hash rates doing SHA/CryptoNight algorithm?

I have benn dealing with crypto currencies for the last few days(especially on Raspberry Pis) and now I'm wondering how a Raspberry can have such a bad hashrate(1-20H/s)... Mining is just doing SHA/...
5
votes
1answer
184 views

What is the 'tail-hash' in Cryptonight?

I understand cryptonight uses keccak and aes. I don't understand what the tail-hash means though.
0
votes
1answer
133 views

Does anyone have test data that illustrates the CryptoNight 7 algorithm?

With the new CryptoNight 7 algorithm Monero introduced back in April, does anyone have an example of a data blob and a nonce that successfully hashes the block? I'm trying to figure out how to test ...
0
votes
1answer
273 views

Implementing Cryptonightv1 PoW algo change but miners are able to mine with both Cryptonightv0 or Cryptonightv1 now

I am modifying a cryptonote to transition over to PoW algo cryptonightv1 from cryptonightv0 and I am having a weird issue that I can't figure out...I'm starting to pull out my hair over this. I've ...
0
votes
1answer
68 views

Wanna Use this library for a small project

Hope someones here, I wanna ask if what are the parameters in this code, in line 315: void cryptonight_hash(void* output, const void* input, const int aes_ni_supported) { struct cryptonight_ctx *...
1
vote
2answers
361 views

How to validate cryptonight result?

I have a XMR proxy and check results with the job target before sending it to real pool. If I use mining software with the cryptonight-lite algorithm, my proxy accepts these hashes. Please help me to ...
1
vote
1answer
39 views

Can you only allow certain miners on a cryptonote blockchain?

I am creating my own Cryptonote coin for a specific, business need. Can I only allow certain IPs to mine on it?
2
votes
1answer
1k views
1
vote
0answers
884 views

Cryptonight V7 mining issues

I'm having a bit of problem here. As you all know, Cryptonight V7 is more profitable than v6 after the monero hardfork, I started trying to mine with this algo in Nicehash.But I got an error. The ...
0
votes
1answer
82 views
0
votes
1answer
673 views

Does Monero still use the Cryptonight algorithm since the fork?

Ok, I have read about the Lithium Luna release that's supposed to be ASIC resistant. However, I'm unclear about whether Monero is now using a new hash algorithm. Is Monero still using its ...
17
votes
5answers
34k views

Is Monero amenable to ASIC mining?

Is Monero ASIC resistant? If not, are there already people out there running on ASICs?
1
vote
1answer
3k views

Cryptonight mining on Raspberry Pi

Recently I found out about cryptonight algorithms, Bytecoin in specific. I have about 20 Raspberry Pi’s here and I would like to know if cryptonight mining is possible on ARM processors. I am also ...
1
vote
0answers
516 views

Sapphire RX 550, differences in models and consequences on hashrate

I'm new to mining, and I wanted to use Sapphire RX 550 GPUs to build a CryptoNight rig after reading a couple posts on the Internet about them, for instance: How To Get 470 h/s On CryptoNote ...
1
vote
2answers
1k views

cpuminer-multi error when mining cryptonight on Linux

I have just set up cpuminer-multi on my Raspberry Pi B+, my aim is to mine a cryptonight coin called Bytecoin. Instead of connecting the mining Pi to the pool, I will be connecting the mining Pi to a ...
20
votes
2answers
30k views

Where can I find a description of the CryptoNight hash algorithm?

Where can I find a description of the CryptoNight hash algorithm? Both a thorough and ELI5 description of the hash algorithm would be appreciated
1
vote
0answers
340 views

Error message: failed to allocated device memory for long state

Trying to execute ccminer-cryptonight through powershell and finally hit an impasse. Any ideas? edit:attempting to nvidia mine using 1080ti Error msg
-1
votes
1answer
3k views

Best new cryptocurrencies to mine using CPU [closed]

I’ve been mining LiteCoins since it was worth around £40. Now it’s worth £200 pounds and I have less than 0.01 LTC and I cannot withdraw any of what I earned from my pool. This balance is very low ...
2
votes
1answer
964 views

CryptoNight Algorithm Keccak1600?

I've looked at this file https://github.com/monero-project/monero/blob/master/src/crypto/slow-hash.c#L543 What does it mean when it says " CryptoNight Step 1: Use Keccak1600 to initialize the '...
3
votes
1answer
455 views

What are the differences between the slow hash, fast hash, and tree hash on the monero github?

Additionally, if I wanted to put together my own implementation of the Monero CryptoNight PoW, specifically for mining, and was using one of those (with the corresponding tests on GitHub) to validate ...
4
votes
2answers
786 views

Where can I find some test inputs and outputs for the CryptoNight (Monero PoW) hash algorithm?

I'm interested in cobbling together my own implementation, but in order to validate it, I need to find some valid inputs/outputs (4 minimum, i.e. one that goes through the groestl path, one that goes ...
15
votes
3answers
40k views

Is it better to mine with a CPU or GPU

"The proof-of-work algorithm, CryptoNight, is AES-intensive and "memory heavy", which significantly reduces the advantage of GPU over CPU." https://en.wikipedia.org/wiki/Monero_(cryptocurrency) ...
5
votes
2answers
440 views

Monero Hash, how does it work, C++ basisc

I am trying to understand xmr-stak miner program. I have understood most of it but having hard time visualizing some pointer manipulation in below code. Its been over 10 years for me to go through any ...