Skip to content

Conversation

am1r021
Copy link
Contributor

@am1r021 am1r021 commented Aug 5, 2024

This change aims to provide more detail in the naming of the now standalone proof functions in the Verkle and Merkle datastructures:

The following functions have been renamed in Merkle-Land:

  • createProof -> createMerkleProof
  • updateFromProof -> updateTrieFromMerkleProof
  • verifyProof -> verifyMerkleProof

The following functions have been renamed in the still experimental and under development Verkle-Land:

  • createProof -> createVerkleProof
  • verifyProof -> verifyVerkleProof

The statemanager wrapper function verifyProof remains unchanged since keeping it general will allow for a Merkle or Verkle backend.

Copy link
Contributor

@acolytec3 acolytec3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@am1r021 am1r021 merged commit 401d650 into master Aug 5, 2024
@am1r021 am1r021 deleted the proof-function-renaming branch August 5, 2024 19:48
trie.root(hexToBytes(storageHash))
for (let i = 0; i < storageProof.length; i++) {
await updateFromProof(
await updateTrieFromMerkleProof(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, especially this one I can understand a lot better just from reading it, now seeing it in the code base! 👍

@holgerd77
Copy link
Member

Nice, thanks for adressing so quickly! 👍 🙂 Also great that the Verkle proof methods are already renamed along!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants