Commit Graph

34 Commits

Author SHA1 Message Date
Sean Bowe 198dfd3c36 Switch to use the official Sapling parameters. 2018-08-04 16:28:39 -06:00
Charlie OKeefe eb20680502 Remove extra slash from lockfile path 2018-07-24 16:18:30 -06:00
Sean Bowe 45f1cb440e Update Sapling testnet parameters 2018-05-18 13:26:39 -06:00
Sean Bowe acfcdb94b9 Load Sapling testnet parameters into memory. 2018-04-17 15:04:46 -06:00
kozyilmaz 4c2120c736 [macOS] use shlock instead of flock in fetch-params 2017-12-17 20:18:03 +03:00
kozyilmaz 3c3623ef23 [macOS] added curl method for param download 2017-12-17 19:30:19 +03:00
kpcyrd 076e177dd9 Prefer wget over ipfs 2017-09-21 03:28:14 +02:00
kpcyrd 3ccbbe31a4 Fetch params from ipfs if possible
Disable ipfs with ZC_DISABLE_IPFS=
2017-09-21 03:28:04 +02:00
Murilo Santana 5ad3193ac8 Fix sha256sum on busybox by using -c instead of --check 2016-11-20 16:04:51 -02:00
Kevin Gallagher 4bc627b6a3 Improves usability of fetch-params.sh
Remove the lockfile at the end (fixes #1731)
Makes it clearer what happens in the script output if params already exist.
2016-11-02 11:06:55 -07:00
zkbot 278439fbe3 Auto merge of #1623 - ebfull:sprout-params, r=str4d
Zcash zk-SNARK public parameters for 1.0 "Sprout".

Created in the ceremony this weekend! 🎉

We're writing a blog post about this, I'm going to publish the code shortly too.

Closes #1553
2016-10-27 03:08:10 +00:00
Kevin Gallagher a885ee4668 Prefer sha256sum but fall back to shasum if not available
One is provided by coreutils, the other is a Perl module.
2016-10-24 14:39:52 -07:00
Sean Bowe 27e3f362f0 Zcash zk-SNARK public parameters for 1.0 "Sprout". 2016-10-24 11:22:39 -06:00
Kevin Gallagher e3320f4f0f Increases timeout to 30s, wait before retry to 3s
Default: 20 tries
2016-10-11 10:56:01 -07:00
Kevin Gallagher f964718c83 Set wget retry options for fetching parameters
This will retry upon refused connections and similar errors, wait 1 second
before the next retry, time out after 10 seconds if no data is received or
the connection times out, plus try an infinite number of times.
2016-10-10 20:34:55 -07:00
Sean Bowe 796c7ee52f Update to `beta2` public parameters, remove `regtest`/`testnet3` parameters
subdirectories.
2016-10-03 15:58:02 -06:00
Kevin Gallagher e70213103c Verify TLS certificates w/ wget in fetch-params.sh
Per NCC-2016-017, wget was run with --no-check-certificate,
which means that the connection can be man-in-the-middled,
even if we are verifying the integrity of the params later via hash sums.
The rationale cited in the Bash comments does not stand up to scrutiny.
There's really no persuasive reason not to verify certificates.

Fixes #1346.
2016-09-30 12:08:15 -07:00
Kevin Gallagher 2e113f6b9d Lock to prevent parallel execution of fetch-params.sh
Two instances of the fetch-params.sh script running at once will
result in corruption of the proving key and an error when the
hashes are computed. This implements a lock to stop such a
scenario from occurring.

We also terminate and don't create the symlinks if the downloaded
parameters fail the checksum command.
2016-09-22 03:08:42 -07:00
Alfie John 70db019c6a Updating wording to match Beta Guide 2016-09-15 22:00:13 +10:00
Alfie John 42c03d49f2 Typo in params README 2016-09-15 21:58:55 +10:00
Sean Bowe 393b2b7834 Update proving/verifying keys. 2016-08-22 15:48:43 -06:00
Sean Bowe 1477fd3f40 Remove the constraint system from the alpha proving key. 2016-07-19 14:01:58 -06:00
Sean Bowe 1744fec274 Update the zkSNARK parameters. 2016-06-03 21:04:07 -06:00
Sean Bowe 6b5d608899 Update proving key and tests that depend on transaction structure changes 2016-05-24 11:09:17 -06:00
Alex 7e540a0b6f add sha256sum support for Mac OS X 2016-05-23 23:54:29 +02:00
Sean Bowe 3e0af61b86 Update zkSNARK proving/verifying keys. 2016-05-12 16:45:12 -06:00
Sean Bowe b8d320df19 Update public zkSNARK parameters for new circuit. 2016-05-12 16:44:49 -06:00
Taylor Hornby b79bfd7a75 Remove sed hack from fetch-params.sh 2016-02-03 12:57:07 -07:00
Nathan Wilcox c25c1d95cd Add feature to resume downloads of params files. 2016-01-22 09:37:24 -08:00
Nathan Wilcox 6d9975e19b Ignore certificate errors when fetching params. We already have sha256 integrity, no need for confidentiality/DNS authentication. 2016-01-20 14:45:18 -08:00
Nathan Wilcox 24f54da4f2 Add symlinks to the params files for testnet3. 2016-01-19 14:36:18 -07:00
Taylor Hornby 74e519aa2d Update the SHA256 hashes for the new parameters. 2016-01-05 13:32:46 -07:00
Taylor Hornby 9d69acabed Rename zerocash to Zcash. 2015-12-22 00:49:17 -07:00
Taylor Hornby 0c5b41f0ce Copy zcutil/fetch-params.sh from the private alpha branch, changing the file names. 2015-12-15 01:26:04 -07:00