Question

Construct a Merkle tree out of the following four data items: “reserved” “volts” “with” “phantom”. Use...

Construct a Merkle tree out of the following four data items: “reserved” “volts” “with” “phantom”. Use the same process as we did in class exercise, using hex hashes as strings rather than numbers in subsequent hashes, and use capitalized hash strings. Enter the final root of the tree as your answer.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Merkle Trees are created by repeated hashing pairs of nodes until there is only one hash left.This type of hashing is called the root hash or the Merkle hash.They are constructed from the bottom up , from hashes of individual transactions.

Each leaf node is a hash of transactional data, and each non-leaf is a hash of its previous hashes. Merkle trees are binary and require an even number of leaf nodes.If the number of transactions is odd, the last hash will be duplicated once to create an even number of nodes.

An example of four transactions in a block : "reserved", "volts", "with" and "phantom"

Each of these is hashed, and the hash stored in each leaf node, resulting in Hash "reserved", "volts", "with" and "phantom". Consecutive pairs of leaf nodes are then summarized in a parent node by hashing Hash "reserved" and Hash "volts" , resulting Hash "reserved volts" Likely Hashing Hash "with" and Hash "phantom", resulting Hash "with phantom".

The hashes Hash "reserved volts" and Hash "with phantom" are then again hashed to produce the Root Hash which represents "reserved volts with phantom"

This hashing can be conducted on larger data sets.Consecutive blocks can be hashed until there is only one node at the top.

Thr Merkle Root hashing summarizes all the data in the related transactions, and is stored in the block header. It maintains the integrity of the data . If a single detail in any of the transactions or the order of the transaction changes, it do the Merkle Root. The Merkle Root allows for a quick and simple test of whether a specific transaction is included in the set or not.

A Merkle tree is different from a hash list .In the Merkle Tree , one branch can be downloaded at a time and the integrity of each branch can be immediately verified, even if the remaining of the tree is not yet available. It is a n advantage because files can be split up into very small data blocks, such that only small blocks need to be downloaded again if the original version is damaged.

Using Merkle tree significantly reduce the amount of data that a trusted authority has to maintain for verification purposes. It seprated the validation of data from the data itself. It can be reside locally or on a distributed system.

Benefits of Merkle Tree:

  • Merkle Tree provide a means to prove the integrity and validity of data.
  • Merkle Tree require little memory as the proofs are computationally easy and fast.
  • Its proofs and management only require tiny amounts of information to be transmitted across networks.
Add a comment
Know the answer?
Add Answer to:
Construct a Merkle tree out of the following four data items: “reserved” “volts” “with” “phantom”. Use...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • In c++ Section 1. Stack ADT – Overview  Data Items The data items in a stack...

    In c++ Section 1. Stack ADT – Overview  Data Items The data items in a stack are of generic DataType. This means use should use templating and your Node class. Structure  The stack data items are linearly ordered from the most recently added (the top) to the least recently added (the bottom). This is a LIFO scheme. Data items are inserted onto (pushed) and removed from (popped) the top of the stack.  Operations  Constructor. Creates an empty stack.  Copy constructor....

  • please use python and provide run result, thank you! click on pic to make it bigger...

    please use python and provide run result, thank you! click on pic to make it bigger For this assignment you will have to investigate the use of the Python random library's random generator function, random.randrange(stop), randrange produces a random integer in the range of 0 to stop-1. You will need to import random at the top of your program. You can find this in the text or using the online resources given in the lectures A Slot Machine Simulation Understand...

  • QUESTION: Please write a one paragraph lab report introduction based on the following experiment below: Organisms...

    QUESTION: Please write a one paragraph lab report introduction based on the following experiment below: Organisms must forage for food and other resources that are scattered around a heterogeneous environment. Food availability varies from site to site, but so do environmental conditions that foragers experience (e.g., temperature and wind) and the risks to which they are exposed. Foraging by any organism involves trading off the gains to be made by collecting food against the costs of doing so, including costs...

  • For this assignment your job is to create a two class application that examines the concept...

    For this assignment your job is to create a two class application that examines the concept of a numerical palindrome. A numerical palindrome is a non-negative whole number that is the same forwards and backwards, e.g. 2332, 12321, etc. Here's the catch: suppose you do the following. Start with any positive whole number. If it's a palindrome, you're done; if it isn't, reverse the number, add the reversal to the original value, and test this new result. It it's a...

  • C++. Need some help getting started. We will also have the following two functions: 1. A...

    C++. Need some help getting started. We will also have the following two functions: 1. A mutate function that randomly modifies a chromosome. 2. A crossover function that takes two chromosomes and splits each one at the same spot, then combines them together. Our genetic algorithm works by iterating over generations of chromosomes via the following process: 1. Generate random population. 2. Until we get an answer that is good enough, do the next steps in a loop: (a) Do...

  • CS 215 Program Design, Abstraction, and Problem Solving Programming Project #3 INTRODUCTION The goal of this...

    CS 215 Program Design, Abstraction, and Problem Solving Programming Project #3 INTRODUCTION The goal of this programming project is to enable the student to practice designing a program that solves a problem using a class and a linked-list and developing a C++ program to implement the solution. PROJECT TASKS 1. Read the problem definition below and then analyze it before designing a solution. You will produce a document (external documentation) of this definition, analysis, and design. 2. Write a C++...

  • Use program control statements in the following exercises: Question 1 . Write pseudocode for the following:...

    Use program control statements in the following exercises: Question 1 . Write pseudocode for the following: • Input a time in seconds. • Convert this time to hours, minutes, and seconds and print the result as shown in the following example: 2 300 seconds converts to 0 hours, 38 minutes, 20 seconds. Question 2. The voting for a company chairperson is recorded by entering the numbers 1 to 5 at the keyboard, depending on which of the five candidates secured...

  • Hello! Could you please write your own four paragraph (5-6 sentences per paragraph) take away or...

    Hello! Could you please write your own four paragraph (5-6 sentences per paragraph) take away or reflection of the below information? Please complete in 24 hours if possible. Thank you! RIS BOHNET THINKS firms are wasting their money on diversity training. The problem is, most programs just don’t work. Rather than run more workshops or try to eradicate the biases that cause discrimination, she says, companies need to redesign their processes to prevent biased choices in the first place. Bohnet...

  • A test harness program for testing sorting methods is provided with the rest of the textbook...

    A test harness program for testing sorting methods is provided with the rest of the textbook program files. It is the file Sorts.java in the ch11 package. The program includes a swap method that is used by all the sorting methods to swap array elements. Describe an approach to modifying the program so that after calling a sorting method the program prints out the number of swaps needed by the sorting method. Implement your approach. Test your new program by...

  • For this exercise, please consider the following facts: From 2005 to 2015, Plaintiff Dr. James Wells...

    For this exercise, please consider the following facts: From 2005 to 2015, Plaintiff Dr. James Wells owned and operated Wells Vision and Laser Eye Center in Ardmore, Oklahoma. In his practice, Dr. Wells performed laser eye surgeries using an excimer laser eye surgery machine, which he purchased in cash in 2005 for $300,000, and which had an expected lifespan of 30 years. In early 2016, Dr. Wells decided to move his practice to Destin, Florida. To that end, Dr. Wells...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT