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

Version 1.2.0, 2020-06, Arithmetic circuits #11

Closed
wants to merge 1 commit into from
Closed

Conversation

naure
Copy link
Contributor

@naure naure commented Jun 2, 2020

Version 1.2.0, 2020-06, Arithmetic circuits

Interface definition:

  • (breaking) Position of the field ConstraintSystem.info (unused afaik.).
  • Added ConstraintSystem.constraint_type to support for both R1CS and arithmetic circuits.

Rust:

  • (breaking) New field ConstraintSystemOwned.constraint_type
  • A function to validate that a constraint system is indeed an arithmetic circuit (validate_constraint_type).

@naure naure changed the base branch from master to v1.1.0 June 2, 2020 22:15
@naure naure changed the title V1.2.0 Version 1.2.0, 2020-06, Arithmetic circuits Jun 2, 2020
let is_pure_linear =
n_a == 0 && n_b == 0;

if !(is_pure_multiplication || is_pure_linear) {
Copy link
Contributor Author

@naure naure Jun 2, 2020

Choose a reason for hiding this comment

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

@tromer What do you think of this validation?

n_a n_b n_c are the number of terms/wires in the linear combinations A*B=C.

In an arithmetic circuit there are

  • Multiplication gates with a single wire into each of A B C.
  • And linear combinations C such that C=0 (A and B are left empty meaning 0).

@naure naure changed the base branch from v1.1.0 to v1.1.1-libsnark June 16, 2020 21:05
Base automatically changed from v1.1.1-libsnark to master June 16, 2020 21:15
@naure naure added the wip Work in progress label Jun 16, 2020
@naure naure closed this Sep 6, 2020
@naure naure deleted the v1.2.0 branch October 5, 2020 09:13
@naure naure restored the v1.2.0 branch October 5, 2020 09:13
@naure naure deleted the v1.2.0 branch October 5, 2020 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wip Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant