1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00
Commit graph

228 commits

Author SHA1 Message Date
Dennis Kuhnert
a8796aecfa Fix dockerfile, add to README 2017-06-18 12:48:45 +02:00
Jacob Eberhardt
069cf1484e Removed test 2017-06-14 00:18:50 +02:00
Jacob Eberhardt
f7b197791f Code samples adapted so they have a main function
Code samples now reflect the changes made to the absy by adding functions.
2017-06-13 17:39:20 +02:00
Jacob Eberhardt
62094b409e Fixed warnings due to unused variables. 2017-06-13 17:22:51 +02:00
Jacob Eberhardt
2720026f77 Added functions example 2017-06-13 12:04:52 +02:00
Jacob Eberhardt
55a915912d Removed now invalid example 2017-06-13 11:58:00 +02:00
Jacob Eberhardt
f31cc4a7ba Function Expression can now be resolved. 2017-06-13 11:57:19 +02:00
Jacob Eberhardt
3eb3bb730e Parsing,AbSy, flattening and r1cs conversion adapted to support functions 2017-05-15 18:06:24 +02:00
Jacob Eberhardt
65bbe12bba Function definition abstraction added.
Parsing of function definitions added. No function call expressions yet. Snapshot before refactoring absy.rs.
2017-05-11 16:40:58 +02:00
Jacob Eberhardt
fc7c4555c9 Functions code sample added and Grammar adapted. 2017-04-06 15:30:41 +02:00
Jacob Eberhardt
9a466c9cb7 Merge branch 'master' of https://github.com/Kyroy/VerifiableStatementCompiler
Conflicts:
	lib/wraplibsnark.cpp
2017-03-27 18:10:23 +02:00
Jacob Eberhardt
e0b6c8f807 Solidity compatible export of verification key added. 2017-03-27 18:01:06 +02:00
Dennis Kuhnert
a1e1223920 Add `for' statement to parser 2017-03-23 22:35:43 +01:00
Dennis Kuhnert
fc51968c47 Format and inport changes 2017-03-23 19:56:25 +01:00
Jacob Eberhardt
d26f7c6382 Prime number for prime field changed, test cases adapted 2017-03-23 18:08:58 +01:00
Jacob Eberhardt
b6d98e6a0f Formatting and Comments 2017-03-22 19:06:11 +01:00
Jacob Eberhardt
397c99437a README updated. 2017-03-22 19:01:26 +01:00
Jacob Eberhardt
30a91f46d3 Bugfix in rust->cpp matrix conversion 2017-03-22 18:58:05 +01:00
Jacob Eberhardt
5a754b21ad Verification Key Export added. 2017-03-22 17:26:58 +01:00
Jacob Eberhardt
35d51194fe Libsnark connection implemented. R1CS now correclty transferred to cpp. 2017-03-21 13:53:18 +01:00
Jacob Eberhardt
bdf96e2bbb Rust-side of libsnark integration adapted. 2017-03-16 17:34:57 +01:00
Dennis Kuhnert
697f10f39c Use FieldPrime required bits in tests 2017-03-01 00:17:19 +01:00
Dennis Kuhnert
cc82bf0224 Fix bug in "<" flattening; Add test 2017-03-01 00:15:30 +01:00
Dennis Kuhnert
6c9fc391bb Rename VariableReference -> Identifier, NumberLiteral -> Number 2017-03-01 00:03:11 +01:00
Dennis Kuhnert
e5cffc9763 Optimize flattening of equation == 2017-02-28 21:47:44 +01:00
Dennis Kuhnert
7080e382e1 Add iterative version of count_variables_add 2017-02-26 12:17:55 +01:00
Dennis Kuhnert
019d8104ca Add iteratice version of swap_sub (r1cs) 2017-02-26 12:05:19 +01:00
Dennis Kuhnert
d9697ec42a Use get_required_bits; Optimize Condition::Lt flattening 2017-02-26 12:03:50 +01:00
Dennis Kuhnert
83c7ce2f21 Add field::get_required_bits 2017-02-26 12:02:39 +01:00
Dennis Kuhnert
0793d8b4eb Add documentation for flatten.rs; Add Flattener constructor parameter: bits 2017-02-25 00:11:20 +01:00
Dennis Kuhnert
f92cf94abf Complete parser grammar in comment 2017-02-22 20:44:10 +01:00
Dennis Kuhnert
1978509685 Add documentation to r1cs.rs 2017-02-22 15:43:59 +01:00
Dennis Kuhnert
91515ed726 Add Compiler statements for witness calculation; Add user input for unknown variables
Statement::Compilter starting with `#`
2017-02-22 11:06:28 +01:00
Dennis Kuhnert
72e3c422af Add == (if) implementation in flattening and r1cs 2017-02-22 08:59:12 +01:00
Dennis Kuhnert
6899896170 Bugfix in r1cs swap_sub, securing order in Add; Add test 2017-02-21 17:12:51 +01:00
Dennis Kuhnert
95c5315c62 Bugfix in r1cs swap_sub, no securing order; Add test 2017-02-21 15:58:15 +01:00
Dennis Kuhnert
29dab82612 Add tests for all examples; Add r1cs swap_sub cases 2017-02-21 13:05:30 +01:00
Dennis Kuhnert
4f87c10719 Add r1cs tests and change of existing testcases; Add r1cs Div cases
Usage of vector ordering and usage of assert_eq! for better FAIL output
2017-02-21 10:56:52 +01:00
Dennis Kuhnert
bd455bed63 Allow empty lines in code 2017-02-21 09:31:05 +01:00
Dennis Kuhnert
b01020f9cb Implement division for field; Add cases to r1cs; Bugfix in flattening for Mult; Bugfix for absy is_flattened 2017-02-20 16:35:50 +01:00
Dennis Kuhnert
4cb6f351e1 Bugfix of witness calculation; Intermediate results of new division implementation 2017-02-20 00:38:55 +01:00
Dennis Kuhnert
aef5a56d1f Add usize implementations for Field (from, pow) 2017-02-19 16:18:16 +01:00
Dennis Kuhnert
a8a67cd045 Add correct Pow and Div implementation and tests for FieldPrime 2017-02-19 11:04:58 +01:00
Dennis Kuhnert
e815ee7590 Add Field and its missing functionalities to the program workflow
Division not correct yet
2017-02-18 23:02:28 +01:00
Dennis Kuhnert
e1e309a296 Add Field and the implementation FieldPrime (not used yet) 2017-02-17 16:48:49 +01:00
Dennis Kuhnert
d8987ccabb Add support of simple conditions in flatten and r1cs 2017-02-17 16:46:29 +01:00
Dennis Kuhnert
2c65673d4a Add flattening of variable reassignment (#1) 2017-02-16 15:43:31 +01:00
Dennis Kuhnert
2378525d9c Add Flattener struct for saving variables in struct through all functions 2017-02-16 14:34:06 +01:00
Dennis Kuhnert
7d5c4d6bd0 Unify error passing syntax 2017-02-16 13:11:02 +01:00
Dennis Kuhnert
10c5f6c429 Add Condition statement to parser (#1) 2017-02-16 12:53:29 +01:00