Commit Graph

70 Commits

Author SHA1 Message Date
narodnik
83199007e1 add tutorial example, corresponds to zk-explainer document 2021-07-04 12:38:41 +02:00
Nym
f7bd9dfceb Fix comment about merkle tree depth. 2021-06-27 11:34:20 +00:00
Nym
48beeeb94d Blind the asset_id and enforce asset matches among inputs and outputs. 2021-06-27 11:29:16 +00:00
Nym
9aa387f0f1 Fix comment. 2021-06-26 20:05:27 +00:00
Nym
c5c7fe7b9d Change the value for the final preimage size assert. 2021-06-26 18:03:21 +00:00
Nym
0f31c97152 Merge branch 'master' into asset-id 2021-06-26 17:46:17 +00:00
Nym
f7e6700e8c Emit the signature public from the spend contract.
This was out of sync with the generated file
src/circuit/spend_contract.rs that has been modified manually.
2021-06-26 17:44:19 +00:00
Nym
7377a47362 Set the merkle tree depth to 32. 2021-06-26 17:23:58 +00:00
Nym
9942b28e94 Add asset_id to coin. Unenforced for now but gets passed around and
included in the coin hash.
2021-06-26 17:08:28 +00:00
narodnik
444770feda rename sapvi namespace to drk 2021-05-22 15:45:02 +02:00
plato
3eed8b7b87 added some debug 2021-03-17 09:31:25 +01:00
rachel-rose
3214e223be changed value names 2020-10-20 20:48:11 +02:00
rachel-rose
7c6c63ba53 removed trailing whitespace 2020-10-19 14:25:46 +02:00
narodnik
6d9e5a0411 added proofs/jubjub.params 2020-10-16 11:24:51 +02:00
narodnik
15dffe950d rename lcX_add_one_coeff to lcX_add_constant, and add mimc example 2020-10-12 22:27:12 +02:00
narodnik
1094a2234d cleanup proofs directory 2020-10-11 07:01:57 +02:00
narodnik
38b93fe60b create jubjub specific tests 2020-10-11 06:59:00 +02:00
narodnik
dd0ae8616e working jj mul 2020-10-09 10:22:22 +02:00
narodnik
d16f68b9f0 half working jj mul 2020-10-08 23:57:14 +02:00
narodnik
7f11f30021 jj conditional select working 2020-10-08 22:27:29 +02:00
narodnik
1ef6264de9 begin setup for VCR mul calc 2020-10-08 21:55:15 +02:00
narodnik
945789c182 not small order 2020-10-08 21:15:22 +02:00
narodnik
0902abc58e begin to add mint2 contract 2020-10-08 20:59:24 +02:00
narodnik
bfd48c077f improve bits proof program 2020-10-08 10:05:36 +02:00
narodnik
ae181b1da3 add mimc hash function 2020-10-07 00:04:53 +02:00
narodnik
6ec9ff9d82 remove unused constants from bits.psm 2020-10-06 14:46:48 +02:00
narodnik
cb8851df17 bit decomposition 2020-10-06 14:44:52 +02:00
narodnik
1d5ef0d17e reveal public values 2020-10-04 14:37:58 +02:00
narodnik
0bfe462401 replace {{prefix}} with {{P}} 2020-10-04 14:34:57 +02:00
narodnik
90c255aa0b working point addition 2020-10-04 14:25:21 +02:00
narodnik
12863ecbc2 completed vm.py 2020-10-04 01:18:15 +02:00
narodnik
3267015f2e simplify vm.pism 2020-10-03 23:45:19 +02:00
narodnik
e2c77a2329 add jubjub.py 2020-10-03 23:11:06 +02:00
narodnik
89eb6e8c27 add vm.pism file 2020-10-01 02:15:41 +02:00
narodnik
1776f87d59 hide the coin... we don't reveal that 2020-09-23 16:40:21 +02:00
narodnik
2724fd3cb5 finished merkle inclusion proof 2020-09-23 16:35:55 +02:00
narodnik
e6590a4ebf add merkle hash function 2020-09-23 16:13:12 +02:00
narodnik
2d6beacaac begin merkle root hashing. 2020-09-23 15:46:32 +02:00
narodnik
7c7119572e switch nullifier hash to PRF_NF 2020-09-23 15:00:37 +02:00
narodnik
d366922217 partially working spend contract (just needs merkle inclusion part) 2020-09-23 13:29:20 +02:00
narodnik
7369f8f404 use a jinja macro to define a new function for putting fr values :) 2020-09-22 20:58:57 +02:00
narodnik
6e9c86a6de added code for mint contract 2020-09-22 20:37:17 +02:00
narodnik
fbd0653c5d initial mint contract 2020-09-22 15:59:24 +02:00
narodnik
0d97db8f6c add comment with vim autoload for pism 2020-09-22 14:11:43 +02:00
narodnik
e59009461b add simple preprocessor 2020-09-22 09:33:45 +02:00
narodnik
b6324df476 fix breaking change from last commit 2020-09-21 22:48:14 +02:00
narodnik
f6410d5499 finished adding final commands: ec_get_u, alloc/clone_bit, binary_push, scalar_alloc, conditionally_reverse, scalar_as_binary, scalar_enforce_equal, emit_scalar 2020-09-21 22:44:56 +02:00
narodnik
1483a5c7c2 fix breaking change in last commit 2020-09-21 16:10:42 +02:00
narodnik
86daadded0 comment most of the proof out 2020-09-21 16:06:39 +02:00
narodnik
58ee64a837 add pedersen_hash related functionality 2020-09-21 16:05:12 +02:00