Sean Bowe
31d887c943
Merge commit 'd7f78db121ee6f720e97401ded0c9c597d1a4857' into depends-updates-2
2020-03-03 17:44:28 -07:00
Sean Bowe
d7f78db121
Squashed 'ff/' changes from 661558e..ddff465
...
ddff465 Bump version and dependency on ff_derive
25d11d6 Bump version
95e2723 Bump version to 0.5.1
f76872a Add ?Sized to RngCore trait bounds (#14 )
09a32b1 ff 0.5.0
32543ab Crate docs
22031dc Update READMEs
658fe6d CI: Check intra-doc links
35f5026 Add READMEs to Cargo.toml files
6804225 Migrate ff_derive to proc-macro2 1.0
b9a79ce cargo fmt
82574c2 cargo fix --edition-idioms for ff
3b0cf72 Add edition = 2018
8a2b51b Replace try! macro
40fc9ba cargo fix --edition for ff
22c67f3 cargo fmt
312141c Clarify masking of bits in Field::random impls
89a68e1 Migrate to rand 0.7
58415fb Migrate ff, group, pairing, and bellman to rand 0.6
8b6e6b1 Migrate ff to rand_core 0.3 (used by rand 0.5)
git-subtree-dir: ff
git-subtree-split: ddff4658ddd7496bb29cc636c391b7aaaca24673
2020-03-03 17:43:16 -07:00
str4d
d4bae99cb7
Merge pull request #204 from str4d/proving-api-ux-refactors
...
UX refactors for proving-related APIs
2020-02-16 18:56:46 +00:00
Jack Grigg
2d30c29d06
Pass &impl TxProver to Builder::build
...
This allows the caller to build multiple transactions with a single
proving backend.
2020-02-08 00:37:31 +00:00
Jack Grigg
76e0f658c1
Rename CommitmentTreeWitness -> MerklePath
2020-02-08 00:36:40 +00:00
Jack Grigg
3a3008caf9
Pass CommitmentTreeWitness directly into Builder::add_sapling_spend
...
This is more likely to be the data that the caller has available, and
is all we need now that a CommitmentTreeWitness can compute its root.
2020-02-07 17:31:38 +00:00
Jack Grigg
8a210ec271
CommitmentTreeWitness::root(leaf)
2020-02-07 17:21:59 +00:00
Jack Grigg
2064d1c801
Refactor zcash_primitives::merkle_tree::CommitmentTreeWitness
...
- The internal Option wrapper was an unnecessary leftover from when this
code was directly inside the prover, where Some(x) represents an
assigned variable.
- CommitmentTreeWitness::from_slice_with_depth is more idiomatic Rust.
2020-02-07 00:06:57 +00:00
str4d
ee32f7facb
Merge pull request #198 from huitseeker/warts
...
Addressing some trivial Rust option/iterator lints
2020-02-04 18:18:09 +00:00
str4d
903c02b991
Merge pull request #202 from str4d/coverage-build-fix
...
CI: Use stable Rust release for code coverage
2020-02-03 19:05:34 +00:00
Jack Grigg
1f38523fff
CI: Use stable Rust release for code coverage
...
Fixes an issue where cargo-tarpaulin failed to build the crate on
1.37.0, but the crate itself builds fine with that version.
2020-02-03 18:08:56 +00:00
François Garillot
865275e2a2
Correcting some trivial Rust option/iterator warts
2020-01-29 13:53:05 -08:00
str4d
18aceea225
Merge pull request #50 from zancas/mv_tests_extract_data
...
Mv tests extract data
2019-12-12 17:46:38 +00:00
zancas
0aa127d7b1
refactor to manage test code and data in separate modules
2019-12-11 23:58:13 +00:00
str4d
8626cc7f26
Merge pull request #186 from str4d/multicore-feature-flag
...
Pass bellman's multicore feature flag through to zcash_proofs
2019-12-11 20:04:45 +00:00
Jack Grigg
eed7e8199f
Pass bellman's multicore feature flag through to zcash_proofs
...
This enables someone using zcash_proofs to disable multicore.
2019-12-11 18:46:47 +00:00
str4d
c3f9e2d73c
Merge pull request #180 from str4d/mmr-cleanups
...
MMR API cleanups
2019-12-05 16:35:28 +00:00
Jack Grigg
cca1670248
Clarify length of return buffer for appended leaves
2019-12-05 14:33:03 +00:00
Jack Grigg
f1619f896c
Clearer variable names in MMR tests
2019-12-05 14:29:08 +00:00
Jack Grigg
edcd884fe8
Simplify short array copies
2019-12-05 14:24:31 +00:00
Jack Grigg
583a04b4de
Pass array references correctly in MMR tests
2019-12-05 14:23:59 +00:00
Jack Grigg
573510115d
Clean up remainder of MMR code
2019-12-05 11:11:32 +00:00
Jack Grigg
8ad33e50a6
Use explicit sizes for pointers to arrays in FFI
2019-12-05 11:09:55 +00:00
Jack Grigg
fb8c73c950
Use iterators in construct_mmr_tree
2019-12-05 11:06:26 +00:00
Nikolay Volf
9ea0427678
MMR trees API ( #118 )
...
The main design goals of this mmr implementation were
1. Avoid database callbacks. As it is implemented, calling side must just smartly pre-load MMR nodes from the database (about log2(tree length) for append, twice as much for deletion).
2. Reuse as much code/logic between rust and c++ clients.
3. Close to zero memory consumption.
2019-12-04 21:24:26 +00:00
ebfull
dd112813a1
Merge pull request #174 from str4d/152-nu-awareness
...
Network upgrade awareness
2019-12-04 10:42:16 -07:00
str4d
0907adf608
Merge pull request #176 from str4d/156-scan_transaction
...
zcash_client_backend::decrypt_transaction
2019-12-03 23:15:17 +00:00
str4d
7820548ea3
Merge pull request #173 from gregdhill/bvk-to-cv_sum
...
rename bvk to cv_sum
2019-11-27 20:42:54 +00:00
Jack Grigg
d5ed684701
zcash_client_backend::decrypt_transaction
2019-11-27 15:45:13 +00:00
Jack Grigg
e6a8630b35
impl TryFrom<u32> for BranchId
2019-11-27 13:18:31 +00:00
Jack Grigg
cd326f2b6a
Consensus parameters for network upgrades
2019-11-27 13:18:30 +00:00
Jack Grigg
c24024b8e1
Create a consensus::BranchId enum for type safety
...
Includes all currently-known consensus branch IDs for the Zcash network.
2019-11-25 21:04:20 +00:00
Gregory Hill
7eb4a6d1d9
rename bvk to cv_sum
...
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
2019-11-25 14:28:19 +00:00
str4d
141821d3c1
Merge pull request #157 from adityapk00/transparent_compile_fix
...
Compile Fix: Add missing sighash declaration
2019-11-14 19:03:59 +00:00
Aditya Kulkarni
219391ac92
Add missing sighash declaration
2019-11-14 09:54:07 -08:00
str4d
67d700feab
Merge pull request #107 from str4d/transaction-builder-transparent-inputs
...
Add P2PKH transparent input support to transaction::Builder
2019-11-13 22:15:55 +00:00
str4d
ac983b7612
Merge pull request #149 from str4d/ffi-cleanup
...
FFI cleanup
2019-11-13 19:24:22 +00:00
Jack Grigg
8d6f882510
Renames after moves
2019-11-13 19:21:47 +00:00
Jack Grigg
8d967c8609
Move transparent input pushing onto TransparentInputs
2019-11-13 19:20:09 +00:00
Jack Grigg
d9d50b98ab
Move transparent signing onto TransparentInputs
2019-11-13 19:12:55 +00:00
str4d
88e02329eb
Merge pull request #129 from adityapk00/regtest_constants
...
Add regtest constants
2019-11-13 13:54:55 +00:00
Jack Grigg
60eac4e8b7
Escape non-link square brackets in comments
2019-11-11 10:29:36 +00:00
Jack Grigg
4ae238ea1f
librustzcash crate doc
2019-11-11 10:21:38 +00:00
str4d
8d7f27ffb9
Merge pull request #154 from zcash/codecov-action
...
Move code coverage from Travis CI to Actions
2019-11-07 22:01:15 +00:00
str4d
2ecdbc2036
Merge pull request #153 from str4d/doc-link-fixes
...
Doc link fixes
2019-11-07 21:57:35 +00:00
Jack Grigg
bb39037798
Move code coverage from Travis CI to Actions
2019-11-07 18:16:27 +00:00
Jack Grigg
7be66ad8f8
Rename Actions workflow
2019-11-07 17:40:41 +00:00
Jack Grigg
7fda177da8
Doc link fixes
2019-11-07 17:33:22 +00:00
Jack Grigg
d1bc61800c
Move Sprout proof logic into zcash_proofs
2019-11-06 08:58:42 +00:00
Jack Grigg
de5943aea4
Ignore clippy::not_unsafe_ptr_arg_deref lint
2019-11-06 07:51:46 +00:00