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

Conversion to GarbledVec is broken #7

Open
GoogleCodeExporter opened this issue Mar 16, 2015 · 1 comment
Open

Conversion to GarbledVec is broken #7

GoogleCodeExporter opened this issue Mar 16, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Try to run:
Protocol:
    # input of client
    client.v = UnsignedVec(bitlen=8, dim=2)
    client.v.input(desc="enter values for v")
    # convert unsigned to garbled vector
    client.gv = GarbledVec(val=client.v)

You'll get:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/tasty", line 8, in <module>
    load_entry_point('Tasty==Binary', 'console_scripts', 'tasty')()
  File "tasty/scripts/main.py", line 36, in start
  File "tasty/protocol_mode.py", line 137, in process_server_mode
  File "tasty/tastyc/tastyc.py", line 249, in compiler_start
  File "tasty/tastyc/analyze_costs.py", line 217, in analyze_costs
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 243, in visit
    return visitor(node)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 251, in generic_visit
    self.visit(item)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 243, in visit
    return visitor(node)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 251, in generic_visit
    self.visit(item)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 243, in visit
    return visitor(node)
  File "tasty/tastyc/analyze_costs.py", line 138, in visit_Assign
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 243, in visit
    return visitor(node)
  File "tasty/tastyc/analyze_costs.py", line 185, in visit_Call
  File "tasty/tastyc/analyze_costs.py", line 146, in visit_constructor
  File "tasty/tastyc/analyze_costs.py", line 210, in check_costs
  File "tasty/types/__init__.py", line 2197, in calc_costs

NotImplementedError: calc_costs() not implemented for 
GarbledVec.GarbledVec([<class 'tasty.types.UnsignedVec'>])


Same with SignedVec and ModularVec to GarbledVec.
I'm running Tasty 0.1.3 on MacOSX 10.6.8 with Python 2.7.1

P.S. All but one testcases in tasty/tests/functional/conversion_tests.py are 
commented out.

Original issue reported on code.google.com by nullacht...@gmx.li on 5 Jul 2011 at 12:40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant