Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proof function renaming #3557

Merged
merged 8 commits into from
Aug 5, 2024
Merged

Proof function renaming #3557

merged 8 commits into from
Aug 5, 2024

Conversation

scorbajio
Copy link
Contributor

@scorbajio scorbajio 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

@scorbajio scorbajio merged commit 401d650 into master Aug 5, 2024
34 checks passed
@scorbajio scorbajio deleted the proof-function-renaming branch August 5, 2024 19:48
@@ -667,7 +669,7 @@ export class DefaultStateManager implements StateManagerInterface {
const trie = this._getStorageTrie(address)
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