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

Filter by
Sorted by
Tagged with
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
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?
15
votes
2answers
9k views

What is the difference between CryptoNote and CryptoNight?

I saw some mining software labelled as CryptoNight miners and they have XMR (Monero) in their list. Many other CryptoNote mining software also has XMR in their list. What is the case? And while adding ...
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) ...
12
votes
2answers
2k views

Mining Monero with Pencil and Paper

People have successfully performed SHA-256 hashing with pencil and paper If I wanted to perform the CryptoNight PoW by hand how would I do so? Are there any PoW instructions that a human with a ...
11
votes
1answer
290 views

Which reasons were discussed for potentially changing the proof-of-work algorithm?

Which reasons were discussed for potentially changing the proof-of-work algorithm to something else in the future (Cuckoo cycle in particular)?
10
votes
3answers
1k views

Energy consumed to protect the Monero network

Based on typical Monero mining equipment used today, approximately how many Kilowatt-hours (kWh) of electricity are consumed each day in by computers running the Monero cryptonight PoW mining ...
10
votes
1answer
610 views

How secure is CryptoNight?

Has any research been done on CryptoNight? How secure is it, in terms of having a flaw that would allow PoWs to be produced free or cheaply, independent of difficulty?
9
votes
2answers
172 views

CryptoNote features in other cryptocurrencies

How many CryptoNote based currencies exist today? Have ring signatures appeared in any cryptocurrencies that are not based on CryptoNote? How many CryptoNote coins are not using a CryptoNight based ...
9
votes
2answers
2k views

CryptoNight-Lite PoW modifications in Aeon

What PoW modifications are contained in CryptoNight-Lite as implemented by Aeon? How much faster is blockchain synchronization because of these modifications compared to standard CryptoNight? What ...
9
votes
1answer
893 views

How does CryptoNight “depend on all the previous blocks”?

Originally, I thought the CryptoNight puzzle was similar to the SHA2 puzzle, with a more exotic hash function replacing SHA2. In other words, the puzzle was essentially H(prev||nonce) < diff, but ...
6
votes
1answer
400 views

Is CryptoNight the hash function which plays the role of the “random oracle”?

Is CryptoNight the hash function which plays the role of the "random oracle" in the random oracle model under which certain properties of CryptoNote are mathematically proven in the original paper? Or ...
5
votes
2answers
444 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 ...
5
votes
1answer
2k views

Monero Pool job contents, blob length

I am trying to understand the contents, their meaning and their volatility of the job we receive from Monero pool. For example data from pool: {"id":1,"jsonrpc":"2.0","error":null,"result":{"id":"...
5
votes
1answer
4k views

How significant is the number of threads when mining? (I7-4790K)

I'm currently mining XMR on a dedicated server that has an Intel I7-4790K CPU. It has 4 cores/8 threads, and 8 MB of L3 cache. I'm using cpuminer-multi. This is a full node with the monero daemon ...
5
votes
1answer
573 views

Can a CryptoNote coin be merge mined with a non-CryptoNote coin?

If the CryptoNight algorithm was replaced with say, SHA-256, could it be merge mined with bitcoin, for example? The prior merge mining question is about mining with other CryptoNote networks.
5
votes
1answer
332 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 ...
5
votes
1answer
186 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.
4
votes
1answer
682 views

Is Monero susceptible to botnets?

When reading up on CryptoNote, something struck me on the wikipedia page. From wikipedia (emphasis mine) CryptoNight is a proof-of-work algorithm that mixes graphics processing unit (GPU) and ...
4
votes
1answer
130 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 ...
4
votes
2answers
808 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 ...
4
votes
1answer
75 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
366 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 ...
4
votes
1answer
434 views

What other benefits does Cuckoo Cycle have over cryptonight, is it quantum computer proof?

I have read Which reasons were discussed for potentially changing the proof-of-work algorithm? but aside from being more asic 'resistant' and faster to verify what other reason should monero change ...
3
votes
1answer
473 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 ...
3
votes
1answer
125 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 ?
3
votes
1answer
554 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....
3
votes
1answer
2k views

How can I validate a cryptonight algorithm implementation?

Is there an easy way to validate an implementation of the cryptonight hash function? I wrote an implementation just to explore the features of various hash functions, but I'd like to validate that I'm ...
3
votes
1answer
3k views

Monero CPU mining, how much memory to include in a new build

I would like to try Monero CPU mining on a new Linux box I would like to build. More memory the better for CryptoNight algorithm, right? Is there an upper limit at a point where more memory is not ...
3
votes
1answer
357 views

Keccak vs Keccak-f permutation in cns008

Keccak is mentioned in cns008 (the cryptonight hash description) in two ways: First in section 3 (Scratchpad Initialization) as Keccak, and another time in section 5 (Result Calculation) as Keccak-f (...
2
votes
1answer
987 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 '...
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
241 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? ...
2
votes
1answer
38 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.
2
votes
1answer
1k views

Are Cryptonight lite and Cryptonight lite v1 the same?

Are Cryptonight lite and Cryptonight lite v1 the same?
2
votes
3answers
4k views

How to mine with NVidia GeForce GTX 560Ti on Linux?

The questions is in title. Been surfing a bit, and I'm not aware of any software which allows mining with Nvidia GPU on Linux.
2
votes
2answers
212 views

Would having two separate proof of work algorithms for Monero be more secure?

Say 50% is CryptoNight and 50% is an ASIC friendly PoW, would this create more security? Maybe current miners would leave, creating less security? This might be an idea that would be better for the ...
2
votes
2answers
597 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
830 views

connecting wolf`s miner to monero daemon

I want to start solo-gpu mining with wolf`s amd miner. in the config file i put daemon+tcp://localhost:18781 and so far its connecting to the daemon but I'm getting following message: "Setting up GPU(...
1
vote
1answer
154 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
124 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/...
1
vote
1answer
559 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 ...
1
vote
1answer
39 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
114 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
412 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 ...
1
vote
1answer
42 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?
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
2answers
392 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
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 ...
1
vote
1answer
116 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 (...