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

140 commits

Author SHA1 Message Date
dark64
4980565e9d Fix keccak padding issue, allow arbitrary input size 2022-04-28 15:46:54 +02:00
dark64
7c14f564c4 fix typo 2022-03-31 15:26:10 +02:00
dark64
a98e62f34c add comments 2022-03-31 15:17:31 +02:00
dark64
ca5776e5f4 add sha256 with padding to stdlib 2022-03-30 16:14:15 +02:00
schaeff
ba3752307c Merge branch 'develop' of github.com:Zokrates/ZoKrates into type-alias 2021-10-11 11:17:20 +03:00
dark64
42fd168029 safe unpack on field to uint casts 2021-09-27 15:07:14 +02:00
schaeff
4b99a99815 remove explicit generics where applicable 2021-09-23 14:45:45 +03:00
dark64
942901c55b make field to uint casting more strict to match runtime behaviour 2021-09-12 19:28:34 +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
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
dark64
dbc1647c56 refactor mimcSponge 2021-08-09 10:44:15 +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
737d224d6b add gm17 passing test 2021-07-25 16:56:59 +02:00
dark64
292164c572 refactor 2021-07-16 13:19:57 +02:00
dark64
8282856028 use repeat on sha dummy blocks 2021-07-16 12:20:34 +02:00
dark64
c8b2d25e25 use constants in stdlib where applicable 2021-07-14 13:11:53 +02:00
dark64
b1974da128 add FIELD_MIN and FIELD_MAX constants to field module, update tests 2021-06-17 13:27:24 +02:00
dark64
316e1d386a Change endianness in keccak, sha3 and blake2s hash algorithms to big endian 2021-06-01 15:40:12 +02:00
dark64
5539edc16b remove strict ordering of declarations, refactor import logic 2021-05-12 20:03:08 +02:00
dark64
c80d2faf77 replace XOR with OR 2021-04-14 20:07:05 +02:00
dark64
c8b9436ee1 fix typo 2021-04-14 17:40:45 +02:00
dark64
6faf3cb689 update bit rotation logic in sha256 and blake2s, add bit rotation tests 2021-04-14 17:28:26 +02:00
Thibaut Schaeffer
6cfaedb70b
Merge pull request #806 from Zokrates/poseidon
Add poseidon hashing algorithm
2021-04-13 18:45:49 +02:00
dark64
6f86979dbd add comments 2021-04-13 17:03:42 +02:00
dark64
98f697b3d0 refactor constants 2021-04-13 14:41:29 +02:00
dark64
b21e2e5a2b add poseidon hash to stdlib 2021-04-09 22:56:42 +02:00
dark64
45747c94b6 spacing 2021-04-08 13:27:56 +02:00
dark64
75808e2e88 reexport embeds in stdlib, add field to uint casts 2021-04-08 13:15:06 +02:00
dark64
6b5424a7ed merge develop, add u64 embeds 2021-04-02 17:39:27 +02:00
schaeff
af0f1f0987 merge dev, fix conflicts, add changelog 2021-04-01 16:14:48 +02:00
schaeff
38b6fc76a4 merge dev and fix conflicts 2021-04-01 12:52:05 +02:00
Thibaut Schaeffer
a45dae01db
Merge pull request #783 from Zokrates/u32-shift-arg
Change shifts to take u32 as their second argument
2021-04-01 10:55:36 +02:00
Thibaut Schaeffer
feb1fe87cb
Merge pull request #736 from petscheit/adds_bool_pedersen
Adds pedersen bool library
2021-03-31 17:41:00 +02:00
schaeff
2690bcf139 fix zok source 2021-03-30 10:50:28 +02:00
dark64
e91691962f add keccak and sha3 to stdlib 2021-03-29 13:12:49 +02:00
schaeff
218db3e508 introduce EmbedCall, replace FunctionCall by it in inline, simplify zir as a result 2021-03-04 20:37:21 +01:00
schaeff
e0fcca6f42 merge dev 2021-02-24 23:05:41 +01:00
dark64
6a4c4f5a38 use eq condition 2021-02-08 11:10:25 +01:00
dark64
29d5977a90 add personalization to blake2s 2021-02-05 19:15:48 +01:00
dark64
fd3642542a tests 2021-02-05 17:13:03 +01:00
dark64
1ca980e8dd handle overflow on t0, use optimized right rotate 2021-02-05 13:24:55 +01:00
dark64
5b074301c1 add blake2s to stdlib 2021-02-05 12:56:18 +01:00
paul etscheit
0197c1e77f adds pedersen bool implementation 2021-02-01 13:31:33 +01:00
paul etscheit
ff730b082b fixes dummyblock 2021-01-25 11:16:56 +01:00
schaeff
2793e77eac merge dev, clippy, fix conflicts 2021-01-21 17:53:18 +01:00
schaeff
0537b1b256 make tests pass, simplify stdlib 2021-01-21 01:00:56 +01:00
schaeff
a70443ce94 make tests pass, typed repeat, generic stdlib 2021-01-19 22:50:33 +01:00
dark64
c1f1143681 add embed sha256 to stdlib 2021-01-12 14:20:57 +01:00
schaeff
b7894ea2f4 make sha generic, fix array display 2020-12-20 13:32:27 +01:00