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

Input/output statements in functions other than main for ABY backend #5

Closed
nishkum opened this issue Jul 12, 2019 · 1 comment
Closed

Comments

@nishkum
Copy link
Contributor

nishkum commented Jul 12, 2019

Consider this code:

def uint32_al foo(){
  input(CLIENT, y, uint32_al);
  return y;
}

def void bar(uint32_al x){
  output(ALL, x);
}

def void main(){
  uint32_al x = foo();
  bar(x);
}

When compiled with ABY backend, ezpc compiles fine - but ABY itself doesn't compile.
This is because input/output statements use a variable called role, which is currently only being defined in main - if used in other functions, it results in error.
A solution can be to define role as a global variable and assign it in main.

@nishkum
Copy link
Contributor Author

nishkum commented Jul 15, 2019

Fixed in #6 - closing the issue.

@nishkum nishkum closed this as completed Jul 15, 2019
trajore pushed a commit to trajore/EzPC_1 that referenced this issue Dec 27, 2023
* orca dumper untested

* minor orca related changes
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