Commit Graph

34 Commits

Author SHA1 Message Date
Jack Grigg 0f230a70b9
Implement uniform sampling of Jubjub scalars
Co-authored-by: Sean Bowe <ewillbefull@gmail.com>
2018-04-15 15:52:45 -06:00
Sean Bowe f9e58c01ce
Swap bit-endianness of value in note commitment. 2018-03-19 17:54:44 -06:00
Sean Bowe b14c9f8d68
Change personalizations to actually match spec this time. 2018-03-19 17:26:28 -06:00
Sean Bowe 8b6f113052
Change personalization to more closely align with the spec. 2018-03-17 10:24:55 -06:00
Dimitris Apostolou a7d704cd10
Fix typos 2018-03-16 23:25:36 +02:00
Sean Bowe b6e1b52a44
Fix comment about Montgomery curve selection 2018-03-08 13:03:07 -07:00
Sean Bowe b6ef12b077
General code quality improvements. 2018-03-08 00:41:47 -07:00
Sean Bowe c7c8d3c039
Move personalization constants to submodule. 2018-03-08 00:06:53 -07:00
Sean Bowe ef85173df5
Fix comments in jubjub code. 2018-03-06 22:25:15 -07:00
Sean Bowe 1f2bb62657
Rename proving key to proof generation key to disambiguate from the SNARK. 2018-03-06 09:56:29 -07:00
Sean Bowe 63c6830429
Cache fewer pedersen hash generators. 2018-03-06 09:03:29 -07:00
Sean Bowe f155c01cf5
Personalize GH for each generator independently. 2018-03-06 08:30:28 -07:00
Sean Bowe b831942501
Adopt BLAKE2s personalization throughout protocol. 2018-03-05 19:32:27 -07:00
Sean Bowe b45a37febb
Add comments and reorder some generators. 2018-03-05 16:00:04 -07:00
Sean Bowe 51c35a9bcf
Adopt new versions of pairing and bellman. 2018-03-04 22:25:04 -07:00
Sean Bowe 3346fba915
Implementation of Jubjub point representation. 2018-02-24 14:11:01 -07:00
Sean Bowe 4b6623cf44
Add some personalization and a generator. 2018-02-22 07:29:55 -07:00
Sean Bowe 5118fd5008
Add new fixed generators for the output circuit 2018-02-20 15:11:29 -07:00
Sean Bowe 821d22261e
Raise the number of chunks in Pedersen hashes to 63. 2018-02-11 12:59:57 -07:00
Sean Bowe 52829af6d8
Fix test for pedersen hash chunks per generator. 2018-02-11 12:59:49 -07:00
Sean Bowe 73e73d7c8c
Remove TODOs by creating tickets. 2018-02-07 13:55:34 -07:00
Sean Bowe edc4adc32c
Implementation of fixed-base Edwards scalar multiplication in the circuit. 2018-02-07 13:33:09 -07:00
Sean Bowe 69833e5162
Start initializing generators for various components in the protocol. 2018-02-06 11:08:17 -07:00
Sean Bowe f00e8a8292
Change group_hash to output points in the twisted Edwards form. 2018-01-29 08:56:58 -07:00
Sean Bowe 55598e4d4f
Define get_for_y for twisted Edwards points. 2018-01-29 08:32:06 -07:00
Sean Bowe 42514e7c47
Remove TODO's in favor of github issues. 2018-01-29 06:06:10 -07:00
Sean Bowe e9c9618ef4
Implement pedersen hashes inside and outside of the circuit. 2017-12-28 11:06:05 -07:00
Sean Bowe 031ae638ce
Tidy up the codebase (TODOs into github issues). 2017-12-18 22:08:57 -07:00
Sean Bowe 8c4433ee82
Add 2A precomputation to jubjub parameters. 2017-12-14 11:34:57 -07:00
Sean Bowe 3a6e8d448f
Add `get_for_x` to Montgomery implementation. 2017-12-12 10:31:13 -07:00
Sean Bowe e9d3923829
Refactor jubjub implementation to be abstract over field, parameters. 2017-12-11 23:06:05 -07:00
Sean Bowe c0f5645ab4
Do not perform inversions when converting from Montgomery to projective extended twisted Edwards. 2017-12-06 17:22:35 -07:00
Sean Bowe 7c48792511
Some test cleanups. 2017-12-06 10:21:56 -07:00
Sean Bowe 86619c7334
Implementation of fundamental circuitry and primitive Jubjub curve arithmetic. 2017-12-06 10:06:34 -07:00