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

Tree Hash Test Generator #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jannikluhn
Copy link
Collaborator

This is a test generator for the calculation of the hash tree root based on py-ssz. Same disclaimers as for the SSZ generator apply:

  • uses the current master of py-ssz which isn't on PyPI yet, so you'd have to install it manually
  • this is not based on the executable spec, so there might be bugs
  • it will likely never be merged here, but transferred to the spec repo

It features a lot of code duplication relative to the SSZ test generator. I'll clean this up once we're in the spec repo as we can have shared dependencies there. For now, it probably doesn't make a lot of sense to review this. I opened the PR anyways in case people find bugs in the generated tests and want to investigate.

Find the generated tests here.

@protolambda
Copy link

Ok, looks like this could be useful, but we need it to run on the official spec ssz (minimal_ssz.py) instead.
I'll try to port it today 👍

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.

None yet

2 participants