1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
Commit graph

972 commits

Author SHA1 Message Date
dark64
67b848ba97 improve inspect command 2021-12-16 12:24:13 +01:00
dark64
068000ea30 merge dev 2021-12-14 19:24:15 +01:00
dark64
d18af2dcf7 add ark groth16 dimension to integration test 2021-12-14 19:13:47 +01:00
dark64
01995f2e16 update cli 2021-12-14 19:01:33 +01:00
schaeff
048221bafd fix book link 2021-12-14 15:45:42 +01:00
schaeff
79e75cb726 disable m1, fix book, release 2021-12-14 15:25:12 +01:00
schaeff
565a411e13 bump zokrates_field dep 2021-12-14 11:35:35 +01:00
schaeff
253bbb91ab bump versions, generate changelog 2021-12-14 11:21:12 +01:00
Thibaut Schaeffer
c450f522e9
Merge pull request #1044 from Zokrates/mpc
Adding support for MPC
2021-12-14 11:13:34 +01:00
Thibaut Schaeffer
48c8023aad
Merge pull request #1067 from Zokrates/update-rust-toolchain
Update rust toolchain version
2021-12-13 14:42:23 +01:00
dark64
067ff2cf43 fix conflict 2021-12-13 10:44:56 +01:00
Darko Macesic
113538abc9
Merge pull request #1064 from Zokrates/condition-redefiner
Remove condition cache, add condition redefiner
2021-12-10 18:24:05 +01:00
dark64
95a931c579 clippy 2021-12-10 15:08:15 +01:00
dark64
db9615bdac merge develop, fix conflicts 2021-12-10 12:38:44 +01:00
schaeff
0877800cef fix smt test 2021-12-08 15:03:31 +01:00
schaeff
f712de4767 address review comments 2021-12-08 14:42:22 +01:00
schaeff
0ca5a4a7a3 clean 2021-12-07 19:25:24 +01:00
schaeff
9d95e08e30 merge dev 2021-12-07 19:17:55 +01:00
dark64
36362101f4 merge dev, fix conflicts 2021-12-07 14:44:23 +01:00
dark64
71a8121854 wrap phase2 in core 2021-12-06 19:50:25 +01:00
dark64
edf267abed support bls12_381 in mpc ceremony 2021-12-02 19:46:55 +01:00
dark64
7976774718 apply suggestions, remove mpc crate 2021-12-02 18:38:18 +01:00
dark64
3046f21e26 fix features 2021-11-25 20:13:06 +01:00
dark64
f2481d3dec refactor 2021-11-25 20:07:17 +01:00
dark64
bd34950f3f fix needless borrow 2021-11-24 18:28:55 +01:00
dark64
ccdce7a5ae minor refactor 2021-11-24 18:24:21 +01:00
schaeff
a5ca49f98c bump versions, changelog 2021-11-23 19:34:10 +01:00
dark64
97c03d12be add zokrates_mpc crate 2021-11-23 15:35:54 +01:00
dark64
5306ffe35e cleanup 2021-11-15 15:02:50 +01:00
Thibaut Schaeffer
d2e8b905c1
Merge pull request #1025 from Zokrates/cheaper-dynamic-comparison
Reduce the cost of dynamic LT checks
2021-11-11 10:21:55 +01:00
Darko Macesic
71872294b7
Merge pull request #1037 from Zokrates/remove-return-1
Remove confusing returns
2021-11-09 17:34:03 +01:00
Thibaut Schaeffer
d17d3121c9
Merge pull request #982 from Zokrates/type-alias
Implement type aliasing
2021-11-08 11:08:37 +01:00
dark64
2adea4b3de minor cleanup 2021-11-04 19:38:31 +01:00
dark64
2b1976e539 typo 2021-11-04 14:17:23 +01:00
dark64
362385a814 fix command messages, force display order 2021-11-04 12:42:32 +01:00
dark64
44b4fdde5a fix tests 2021-11-03 19:09:36 +01:00
schaeff
4cd0017f17 remove commented out code 2021-11-03 18:25:35 +01:00
schaeff
fce7fe8a97 adjust message 2021-11-03 17:08:18 +01:00
dark64
56ce03fe45 update radix file 2021-11-03 15:47:55 +01:00
dark64
38ff7f4f03 update docs 2021-11-03 15:44:51 +01:00
schaeff
81bd3671c3 fix libsnark, fix rng tutorial 2021-11-03 13:49:09 +01:00
schaeff
3c12feb74e fix clippy, implement embeds, fix tutorial 2021-11-03 11:52:24 +01:00
schaeff
d045121a7c remove unconstrained detection 2021-11-02 17:39:36 +01:00
dark64
a4811c98e0 refactor mpc commands, add mpc tutorial to the book 2021-11-02 15:29:59 +01:00
schaeff
a58f77ddfc fix libsnark 2021-10-29 14:36:43 +02:00
schaeff
30a04734b5 use iterators where possible, switch to cbor 2021-10-29 13:51:43 +02:00
dark64
06dc9348b3 add mpc verify command 2021-10-27 22:46:58 +02:00
dark64
b69a7d29a5 first working mpc prototype 2021-10-27 19:18:20 +02:00
dark64
5dd4644989 wip 2021-10-26 14:58:43 +02:00
schaeff
dad17b79e0 proof of concept of iterator treatment starting at flattening 2021-10-25 16:08:45 +02:00
schaeff
5ff16b25f8 change gettingstarted example to assert 2021-10-18 16:54:38 +02:00
schaeff
003d4fc6f0 tweak operator table 2021-10-18 13:02:59 +02:00
schaeff
0d0d9e04a3 merge dev 2021-10-15 13:54:41 +02:00
schaeff
aba1309ea4 fix smt test 2021-10-15 13:16:27 +02:00
schaeff
2c7d806064 merge dev 2021-10-15 13:07:07 +03:00
schaeff
f98585b784 revert to original impl, add symetric check, add logs 2021-10-15 13:00:48 +03:00
dark64
740b7ee935 merge dev, add tests 2021-10-14 21:44:21 +02:00
schaeff
1e04d56a7b fix smt test 2021-10-13 19:48:52 +03:00
schaeff
6798b02a13 merge dev 2021-10-13 01:05:41 +03:00
schaeff
43b2a1d350 move to non breaking nightly, fix conflicts 2021-10-12 16:37:30 +03:00
Thibaut Schaeffer
1f8b15a114
Merge pull request #1029 from Zokrates/upgrade-rust-toolchain
Upgrade rust toolchain
2021-10-12 15:56:43 +03:00
schaeff
eb492153f4 add docs, use alias in example 2021-10-12 12:10:02 +03:00
schaeff
ba3752307c Merge branch 'develop' of github.com:Zokrates/ZoKrates into type-alias 2021-10-11 11:17:20 +03:00
Thibaut Schaeffer
65c4ccb316
Merge pull request #997 from Zokrates/strict-field-to-uint
Make field to uint casts truncate values bigger than uint max
2021-10-11 10:17:29 +03:00
schaeff
6de5a21d7e improve example 2021-10-08 20:26:28 +03:00
schaeff
f3f400a6bd fix tests, add breaking example 2021-10-05 21:20:55 +03:00
dark64
13c0af63a8 merge develop, fix conflicts 2021-10-05 17:56:47 +02:00
schaeff
2169010cf7 fix clippy 2021-10-05 14:01:50 +03:00
schaeff
075673fc0b Merge branch 'develop' of github.com:Zokrates/ZoKrates into type-alias 2021-10-05 12:45:50 +03:00
schaeff
b3ddfca69c merge dev, some tests failing 2021-10-04 20:32:33 +03:00
dark64
044456418a update changelog, bump versions 2021-10-04 17:45:29 +02:00
Thibaut Schaeffer
5f2d65124b
Merge pull request #975 from Zokrates/allow-calls-in-constants
Allow calls in constants
2021-10-01 18:01:52 +03:00
dark64
3ad8938897 add failing test for unpack 2021-09-27 20:51:30 +02:00
dark64
0d8d7549a2 canonicalize paths 2021-09-26 17:00:37 +02:00
dark64
11d9dd939b fix integration tests 2021-09-26 16:52:51 +02:00
schaeff
ca55c984e3 address review comments 2021-09-24 17:54:16 +03:00
schaeff
4b99a99815 remove explicit generics where applicable 2021-09-23 14:45:45 +03:00
schaeff
77a3888600 fix example 2021-09-21 13:07:26 +03:00
schaeff
43f4934586 detect out of bounds reads and writes 2021-09-21 13:00:36 +03:00
dark64
3975437fe4 improve tests 2021-09-16 15:54:03 +02:00
dark64
11b595ef21 implement ternary operator 2021-09-15 19:39:01 +02:00
schaeff
187a1e834b refactor for ordered symbols, clean, propagate constants globally to cover constants in function key 2021-09-10 23:27:19 +02:00
schaeff
8f7cf36eec fold module when id is found for constant calls inliner 2021-09-06 19:25:29 +02:00
Thibaut Schaeffer
db25d3f159
Merge pull request #977 from Zokrates/handle-unconstrained-vars
Graceful handling of unconstrained variable detection
2021-09-06 16:47:23 +02:00
schaeff
97a034cdb9 implement imported constants, implement inference on generic structs 2021-09-04 23:36:14 +02:00
schaeff
edc8c015c4 add breaking test 2021-08-30 18:00:48 +02:00
dark64
fce2c9f32c flatten prog struct 2021-08-30 15:06:21 +02:00
Thibaut Schaeffer
cf9ca9bf72
Merge pull request #957 from Zokrates/zir-propagation
Apply propagation in ZIR
2021-08-27 15:59:17 +02:00
schaeff
88197a57d6 refactor to keep constants until reduction, then try to inline their definitions 2021-08-27 15:57:14 +02:00
dark64
2a94af6ff0 implement type aliasing 2021-08-25 18:21:41 +02:00
dark64
3235cf4df9 fix div by zero test 2021-08-23 21:23:44 +02:00
dark64
b01c477a55 merge develop, fix conflicts 2021-08-23 15:54:53 +02:00
dark64
b7a035025d add test for unconstrained input 2021-08-23 15:51:56 +02:00
schaeff
ce158ca5dc add breaking test when propagation is not powerful enough 2021-08-23 13:10:23 +02:00
dark64
db33856ed5 fix test 2021-08-23 00:56:45 +02:00
schaeff
7989ff3f55 Merge branch 'develop' of github.com:Zokrates/ZoKrates into allow-calls-in-constants 2021-08-21 00:20:05 +02:00
schaeff
cd468390bf Merge branch 'develop' of github.com:Zokrates/ZoKrates into fail-on-mistyped-constant 2021-08-21 00:19:31 +02:00
schaeff
c71b31d1af refactor constants to keep track of them across modules 2021-08-21 00:08:12 +02:00
schaeff
b5f243965d detect mistyped constant during constant inlining 2021-08-18 23:51:00 +02:00
dark64
f7f6a8421a merge develop, fix conflict 2021-08-17 18:46:56 +02:00
dark64
6ea4cfbe84 div by zero 2021-08-17 18:44:25 +02:00
dark64
934d36078e use result folder in zir propagation 2021-08-17 18:31:52 +02:00
schaeff
2727200b10 Merge branch 'develop' of github.com:Zokrates/ZoKrates into rc/0.7.6 2021-08-17 16:54:57 +02:00
Thibaut Schaeffer
872b07d3cb
Merge pull request #969 from Zokrates/avoid-blowup-on-element-wise-eq
Avoid AST depth blowup on complex equality
2021-08-17 01:27:27 +02:00
schaeff
dfd3d5a7ab bump versions, update changelog 2021-08-16 19:02:42 +02:00
schaeff
e5ae49831e add changelog, make test bigger 2021-08-16 16:55:17 +02:00
schaeff
79dea12a3e use binary tree to limit ast depth 2021-08-16 16:52:43 +02:00
Thibaut Schaeffer
b324e17684
Merge pull request #955 from Zokrates/bit_lt_embed
Add bit LT embed to make unpack safe for any size
2021-08-16 11:25:09 +02:00
Thibaut Schaeffer
d8ae907030
Fix constant in struct type (#965)
* add breaking test

* implement from constant for uint

* tweak

* tweak

* revert and add breaking test

* implement from
2021-08-16 10:44:00 +02:00
schaeff
0c68477275 add docs 2021-08-10 15:58:51 +02:00
Thibaut Schaeffer
ba5150afb4
Merge pull request #942 from Zokrates/update-stdlib
Use constants in stdlib where applicable
2021-08-09 16:04:23 +02:00
schaeff
81c537769c merge deve, fix conflicts 2021-08-09 14:06:34 +02:00
Thibaut Schaeffer
5a02186fc1
Merge pull request #944 from Zokrates/run-ci-tutorials
Test tutorials in CI
2021-08-09 12:04:42 +02:00
Thibaut Schaeffer
f717d243b2
Merge pull request #945 from Zokrates/generic-structs
Implement generic structs
2021-08-09 11:58:34 +02:00
schaeff
249187a157 merge dev, fix conflicts, fix comment in test 2021-08-09 11:43:03 +02:00
Thibaut Schaeffer
bff6843415
Merge pull request #950 from Zokrates/add-logging
Add compiler logging infrastructure
2021-08-06 16:25:23 +02:00
Darko Macesic
0f2e3f5881
Merge pull request #948 from Zokrates/gm17-stdlib-verify
Add gm17 verifier to stdlib
2021-08-05 16:34:59 +02:00
dark64
fee8535bce fix glob pattern 2021-08-05 16:28:42 +02:00
schaeff
b1c9a171f8 add bit lt embed, fail on non constant bound, implement safe unpack 2021-08-04 14:55:17 +02:00
schaeff
3103d17d6f add tests, unwrap on infailible semantic check 2021-08-03 00:20:40 +02:00
Thibaut Schaeffer
caf4dd2acb
Merge pull request #943 from Zokrates/use-field-constants
Use field constants to avoid curve-dependant code
2021-08-02 22:55:33 +02:00
Thibaut Schaeffer
34992138a8
Merge pull request #886 from axic/bubblesort
Add bubblesort example
2021-08-02 12:58:31 +02:00
dark64
b9f16d30eb flag tutorial tests as ignored 2021-08-02 12:46:10 +02:00
schaeff
dbcd0bd558 add log to core and env_log to cli 2021-07-29 11:13:54 +02:00
schaeff
1d985919ea Merge branch 'generic-structs' of github.com:Zokrates/ZoKrates into gm17-stdlib-verify 2021-07-28 13:11:57 +02:00
schaeff
f92df0fa1a add tests, fail gracefully on generic inference attempt and eq generic mismatch 2021-07-28 12:38:58 +02:00
schaeff
fbd7fddf99 update doc, example, fix absy creation 2021-07-28 00:11:18 +02:00
schaeff
5f75c495a0 Merge branch 'develop' of github.com:Zokrates/ZoKrates into generic-structs 2021-07-26 17:03:48 +02:00
schaeff
ecb105fb56 add test 2021-07-26 15:02:37 +02:00
schaeff
737d224d6b add gm17 passing test 2021-07-25 16:56:59 +02:00
schaeff
6bab1cdb88 Merge branch 'develop' of github.com:Zokrates/ZoKrates into generic-structs 2021-07-19 09:33:18 +02:00
schaeff
51fea62a9e add example, and make it compile, using a DeclarationType for common type detection 2021-07-16 15:30:59 +02:00
Leo Alt
034fbaf080 Link library properly in integration tests 2021-07-16 13:10:31 +02:00
Leo Alt
4e290c77a3 Enable Sol optimizer in integration tests 2021-07-16 13:10:31 +02:00
Leo Alt
939f1eb58c Remove Sol abi differences 2021-07-16 13:10:31 +02:00
schaeff
2857ceb972 bump solidity in integration tests 2021-07-16 13:10:31 +02:00
schaeff
7f33ddf4f7 remove duplicated example 2021-07-15 15:01:42 +02:00
schaeff
f656616683 fix tests, add changelog 2021-07-15 15:01:06 +02:00
dark64
0554f799c5 use correct stdlib path in tutorial tests 2021-07-15 13:43:44 +02:00
dark64
f52250f6e8 remove alias 2021-07-15 12:46:56 +02:00
dark64
02a0475842 fix tests 2021-07-15 12:10:26 +02:00
schaeff
044da908ea implement display for const declaration, add breaking test for wrong const type 2021-07-15 12:05:25 +02:00
dark64
18d57a0012 run rng tutorial as a test 2021-07-14 15:37:26 +02:00
dark64
aba16cdc8b use field constants to avoid curve dependant code 2021-07-14 14:10:16 +02:00
dark64
c8b2d25e25 use constants in stdlib where applicable 2021-07-14 13:11:53 +02:00
schaeff
0bb2f899bf bump versions, generate changelog 2021-07-10 13:13:31 +02:00
dark64
0018a4a196 Refactor abi input parsing to support decimal and hexadecimal value representations 2021-07-09 15:12:17 +02:00
schaeff
cbb6e4ff97 fix conflicts 2021-07-08 10:53:28 +02:00
schaeff
078390ad11 fail gracefully on undersized circuit 2021-07-05 18:45:23 +02:00
schaeff
f50c3af402 add docs 2021-07-02 18:36:36 +02:00
schaeff
70bd390388 fix naming on libsnark setup 2021-07-01 13:17:35 +02:00
Leo Alt
82fad64583 Tests 2021-06-30 21:58:20 +02:00
Leo Alt
ba22c64d0e Add CLI option to generate smtlib2 files. 2021-06-30 21:58:20 +02:00
schaeff
872ea9c5ce fix cli 2021-06-28 20:32:28 +02:00
schaeff
f300d2f7fd fail gracefully on undersized setup, build with libsnark 2021-06-28 20:02:15 +02:00
schaeff
37b45e236d implement entire flow 2021-06-25 18:09:28 +02:00
schaeff
91bb00cf50 Merge branch 'develop' of github.com:Zokrates/ZoKrates into marlin 2021-06-22 17:05:21 +02:00
schaeff
7bc90dd85c bump versions, generate changelog 2021-06-17 15:33:37 +02:00
Thibaut Schaeffer
b372f9fd7b
Merge pull request #905 from Zokrates/if-else-expression
Introduce if-else expression
2021-06-08 10:12:14 +02:00
schaeff
2db2f21710 visit declaration key 2021-06-07 13:38:49 +02:00
Alex Beregszaszi
9d47e000f5 Use tuple-swap function 2021-06-01 13:35:44 +01:00
Alex Beregszaszi
ea43c6f161 Bubblesort using a helper function 2021-06-01 13:13:04 +01:00
Alex Beregszaszi
08051b4b20 Add bubblesort example 2021-06-01 13:13:04 +01:00
Thibaut Schaeffer
e4ef841ec7
Merge pull request #896 from Zokrates/fix-multi-assignee-parsing
Fix multi assignee parsing
2021-06-01 09:48:18 +02:00
schaeff
2efb8820a5 add changelog, fmt, remove example which now compiles 2021-05-31 19:59:20 +02:00
schaeff
02a039bea4 add limit, add test 2021-05-28 16:45:00 +02:00
schaeff
83d972f0b4 clean 2021-05-27 15:11:44 +02:00
schaeff
cd84bb30c5 uncomment commented test lines 2021-05-26 16:04:24 +02:00
schaeff
de6bf42362 update tests 2021-05-26 16:03:07 +02:00
schaeff
e2878f19a3 update parser and ast to be stricter, fix conversion to absy, wip 2021-05-26 15:22:23 +02:00
Alex Beregszaszi
0017179c69 Fix compilation of reveal_bit example 2021-05-20 15:25:19 +01:00
Alex Beregszaszi
33c2dbe68a Move rng example source code to zokrates_cli/examples (so they are compiled) 2021-05-20 14:19:22 +01:00
dark64
73b28a9d0b bump version, update changelog 2021-05-19 16:36:22 +02:00
dark64
deb909e2db put branch isolator behind a compilation flag in static analysis 2021-05-19 15:16:38 +02:00
schaeff
9e268860e8 bump versions, generate changelog 2021-05-18 11:00:24 +02:00
schaeff
6e37b15973 merge dev 2021-05-17 23:04:16 +02:00
schaeff
4fbd534376 allow comment after new line, tweak docs 2021-05-17 22:58:24 +02:00
schaeff
254fad4cfa update book 2021-05-17 20:39:58 +02:00
schaeff
ad4717e67f put behind config flag 2021-05-17 10:34:37 +02:00
schaeff
09b1e52608 implement blocks for all types, add breaking example for edge case 2021-05-16 23:03:05 +02:00
schaeff
a1a65378a7 introduce block into ast and implement isolation on that 2021-05-16 19:16:25 +02:00
dark64
96952d6e04 refactor 2021-05-14 19:49:55 +02:00
dark64
5c528535f2 support constants in declaration types 2021-05-13 15:09:06 +02:00
Thibaut Schaeffer
3142bebdba
Merge pull request #848 from Zokrates/add-uint-to-abi-doc
Add uint to abi doc
2021-05-05 16:24:51 +02:00
Thibaut Schaeffer
401a77bdbe
Merge pull request #846 from Zokrates/fix-struct-member-type-mismatch
Fix struct member type mismatch crash
2021-05-05 16:24:27 +02:00
schaeff
6f6a8a64f1 change abi example, add uint comment 2021-05-05 11:24:54 +02:00
schaeff
1c2977ec26 add comment 2021-05-04 19:00:18 +02:00
schaeff
7ee9aed579 add tests, changelog 2021-05-04 18:57:00 +02:00
schaeff
8652241b12 fix nested struct flattening, derive debug 2021-05-04 15:47:01 +02:00
schaeff
0e56ff7c57 bump versions, generate changelog 2021-04-30 11:34:00 +02:00
Thibaut Schaeffer
8b02ca03c9
Merge pull request #834 from Zokrates/fix-repeat-inference
Fix integer inference on repeat operator
2021-04-30 11:28:04 +02:00
schaeff
9705da1afc implement marlin with raw keys 2021-04-30 11:13:30 +02:00
Thibaut Schaeffer
0d804fa6a6
Merge pull request #792 from Zokrates/constant-def
Introduce constant definitions
2021-04-30 11:11:31 +02:00
Thibaut Schaeffer
4f17446e3d
Merge pull request #761 from Zokrates/constant-range-check
Constant range check
2021-04-29 20:14:24 +02:00
schaeff
1a311afb0b Merge branch 'develop' of github.com:Zokrates/ZoKrates into marlin 2021-04-27 16:33:01 +02:00
schaeff
3fa3f3978b fix type of repeat after inference 2021-04-26 18:58:01 +02:00
dark64
ae7e095cac refactoring, fix constant aliasing 2021-04-26 13:16:25 +02:00
Thibaut Schaeffer
50d51df905
Merge pull request #829 from Zokrates/panic-hook
Add a custom panic hook
2021-04-22 16:31:52 +02:00
Darko Macesic
55222bdcc5
Update zokrates_cli/src/bin.rs
Co-authored-by: Thibaut Schaeffer <thibaut@schaeff.fr>
2021-04-21 22:51:08 +02:00
dark64
623b471452 clippy 2021-04-21 20:55:04 +02:00