7 - Merkel Trees (1)

    Master this deck with 15 terms through effective study methods.

    Generated from uploaded pdf

    Created by @ajaysai

    What defines a Merkle Tree?

    A binary tree where leaf nodes contain hashes of data blocks.

    How is the Merkle Root calculated?

    By hashing concatenated pairs of child hashes up to the root.

    What happens if a data block is modified?

    It changes the hash of the leaf and all parent hashes to the root.

    What is a hash function?

    Converts input data of arbitrary size into a fixed-size value.

    Why do we need data integrity?

    To efficiently determine if any file in a dataset has changed.

    What is a Merkle Proof?

    A method to verify the authenticity of a specific data block.

    How does a Merkle Tree differ from a binary tree?

    Merkle Trees store hashes for integrity verification, not data.

    What is the efficiency of verification with a Merkle Tree?

    Verification occurs in O(log2 N) hashes instead of O(N).

    What happens to the Merkle Root when a leaf changes?

    The Merkle Root changes due to the altered hash path.

    What is the purpose of the Merkle Root?

    It summarizes the integrity of the entire dataset.

    How do you handle an odd number of data blocks in a Merkle Tree?

    Duplicate the last hash to form pairs for hashing.

    What is the complexity of constructing a Merkle Tree?

    O(N) for construction and O(log N) for verification.

    What is the implication of a collision-resistant hash function?

    It ensures that two different inputs do not produce the same hash.

    What is the effect of a small input change on a hash?

    It results in a significantly different hash value.

    What is the relationship between leaf changes and internal nodes?

    A change in a leaf affects all internal nodes up to the root.