-
Notifications
You must be signed in to change notification settings - Fork 759
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
Proof function renaming #3557
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -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( |
There was a problem hiding this comment.
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! 👍
Nice, thanks for adressing so quickly! 👍 🙂 Also great that the Verkle proof methods are already renamed along! |
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.