Завершено

Simplified Blockchain: Simulating Proof of Work

1. A blockchain node wants to compute a new block using proof-of-work.

2. Hash function is obtained from an AES encryption in CBC mode, where the key is obtained from the first 128 bits of the message (which is the contents of the block). You can download the implementation of AES online, but you need to state where the source is from. The output of the hash is 128 bit, which is obtained from the final ciphertext.

3. The program simulate the Proof-of-Work is described below.

The program for proof-of-work should perform the following:

1. The program takes at least two parameters as follows:

(a) The condition of the hash value of a new valid block (The number of leading zeros).

(b) The data newly added to the current block.

2. The program outputs a random nonce value for a new block and hashed value of the new block.

3. The program provides a function to validate the output. This function takes a random nonce and the data as inputs and outputs the hashed value to check the validity of the new block.

For example, your program can be executed with the following command

./hashcash limit 4 data [login to view URL]

In the above:

1. limit parameter takes the limit of hashed value of a new block. For example, a blockchain system only accepts a block if the first four digits of hashed value of a new valid block are 0s.

2. data parameter takes the name of a file. It contains data newly added to current block. It should be noted that the file (new [login to view URL]) must include all necessary information to create a new block. For example, it should include at least transaction records and the hashed value of the last valid block. Note that transaction records can be artificial. This assignment does not mark the validity of the transaction records.

3. The output of the program must be human readable such as hexadecimal format. Also, it satisfies the condition specified when the program executed.

Programming language in C++

Квалификация: Алгоритмы, Blockchain, Программирование на C++, Архитектура ПО

Показать больше proof of work algorithm code, proof of work bitcoin, proof of work blockchain medium, proof of work nonce, hashcash proof of work, proof of work newsletter, proof of work ethereum, proof of work explained simply, cover letter proof work, proof work, data proof work, c c freelance software developers in delhi, c programmer for hire in uk, c++ c# freelance software developers in delhi, c++ programmer for hire in uk, online jobs work from home without investment in dubai, work online web designing job in uae, analyst programmer net c# developer freelancer consultant in montreal qc, 5 dollar work c# freelance, freelance work c#

О работодателе:
( 0 отзыв(-а, -ов) ) Singapore, Singapore

ID проекта: #19424392

Поручен:

marianakuzmich

Hi, I am C++/Blockchain expert and have rich experience of C++/Blockchain programming. I have done job as same as your requirement before. I checked your requirement. I'm sure that I can easily do this project. I w Больше

$111 SGD за 5 дней(-я)
(26 отзывов(-а))
4.9

2 фрилансеров(-а) в среднем готовы выполнить эту работу за $83

umg536

Hello there, This is a default bid made. we'll discuss the price later in the chat after reading your project i can do this for you perfectly.I still have a few questions. please leave a message on my chat so we can di Больше

$55 SGD за 3 дней(-я)
(14 отзывов(-а))
5.9