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

Chunkify Code #12

Merged
merged 3 commits into from
Nov 16, 2023
Merged

Conversation

thomas-quadratic
Copy link
Contributor

PR description

This PR introduces two new features for TrieKeyAdaptor:

  1. It is now using PedersenHash to generate the keys
  2. It supports code chunkification

This makes it simpler to insert a contract's bytecodes into the trie.

PedersenHash wraps the besu-native pedersen commit and hash functions.
It is used now in TrieKeyAdaptor to generate trie-keys

Signed-off-by: Thomas Zamojski <[email protected]>
chunkifyCode splits a contract's bytecode into chunks before insertion into the trie.
Test is made on an ERC20 bytecode, the result being coherent with python's reference implementation.

Signed-off-by: Thomas Zamojski <[email protected]>
Copy link

  • I thought about the changelog.

Copy link
Contributor

@matkt matkt left a comment

Choose a reason for hiding this comment

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

LGTM

@matkt matkt merged commit cf00bfd into hyperledger:main Nov 16, 2023
5 checks passed
dragan2234 pushed a commit to dragan2234/besu-verkle-trie that referenced this pull request Jan 22, 2024
…yperledger#12)

PedersenHash wraps the besu-native pedersen commit and hash functions.
It is used now in TrieKeyAdaptor to generate trie-keys

Signed-off-by: Thomas Zamojski <[email protected]>
Signed-off-by: Dragan Pilipovic <[email protected]>
dragan2234 pushed a commit to dragan2234/besu-verkle-trie that referenced this pull request Jan 22, 2024
…yperledger#12)

PedersenHash wraps the besu-native pedersen commit and hash functions.
It is used now in TrieKeyAdaptor to generate trie-keys

Signed-off-by: Thomas Zamojski <[email protected]>
Signed-off-by: Dragan Pilipovic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants