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

Error when running Python tests 'No such node (gammaABC)' #9

Closed
HarryR opened this issue Feb 21, 2019 · 2 comments
Closed

Error when running Python tests 'No such node (gammaABC)' #9

HarryR opened this issue Feb 21, 2019 · 2 comments

Comments

@HarryR
Copy link
Owner

HarryR commented Feb 21, 2019

Raised in #4 by @uivlis

* G1 elements in proof: 2
* G2 elements in proof: 1
* Proof size in bits: 1019
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::ptree_bad_path> >'
  what():  No such node (gammaABC)
Aborted
make[1]: *** [test] Error 134
make[1]: Leaving directory `/home/ubuntu/workspace/python'
make: *** [python-test] Error 2

Presumably originates from:

The Python code passes a JSON blob to the native verifier containing the verification key.

Two ways to debug this would be:

  1. In https://github.com/HarryR/ethsnarks-miximus/blob/master/python/miximus.py#L116 add a print statement for self._vk.to_json().encode('ascii')
  2. In https://github.com/HarryR/ethsnarks-miximus/blob/master/circuit/miximus.cpp#L314 add a print statement for vk_json

This would verify that the JSON is in the correct format in Python, and verify that it's being received correctly by the C++ library.

He said the first error he ran into was:
TypeError: the JSON object must be str, not 'bytes' in line 110 from miximus.py. I changed

return Proof.from_json(data)

into

return Proof.from_json(data.decode('ascii'))
@HarryR
Copy link
Owner Author

HarryR commented Feb 21, 2019

In #10 I have made it easy to build the project on Amazon Cloid9 using the default Amazon Linux AMI (Redhat based, cmake 2.8).

I'm unable to reproduce the problem described above, Python tests run.

@HarryR
Copy link
Owner Author

HarryR commented Feb 21, 2019

I have added appveyor.yml to the project, so it's now being built on Windows, see: https://ci.appveyor.com/project/harryr/ethsnarks-miximus/builds/22548437

There has been no testing on windows though.

@HarryR HarryR closed this as completed Feb 25, 2019
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

No branches or pull requests

1 participant