Commit Graph
937 Commits
Author SHA1 Message Date
Jack Grigg 2bbd25b36b Add prevHash field to CompactBlock
This enables basic verification of chain validity when CompactBlocks are
received without the full header.
2019-10-09 14:11:14 +13:00
Jack Grigg a3b85b8fe6 Compute and store BlockHash inside BlockHeader 2019-10-09 14:11:14 +13:00
Jack Grigg b66ac11775 Update new witnesses with subsequent transactions in the same block 2019-10-09 14:11:14 +13:00
Jack Grigg e746f7b6f9 Add tx index within block to WalletTx struct 2019-10-09 14:11:14 +13:00
Jack Grigg 3b9dfc1e0b Detect change notes while scanning blocks 2019-10-09 14:11:14 +13:00
Jack Grigg fb9e9bb12f Check for spent notes while scanning blocks 2019-10-09 14:11:14 +13:00
Jack Grigg 2b71121681 Return the entire note and recipient address when scanning an output 2019-10-09 14:11:14 +13:00
Jack Grigg f899ecfce5 Increment the commitment tree and witnesses while scanning blocks 2019-10-09 14:11:14 +13:00
Jack Grigg 591b1fc28f Parse compact blocks to find wallet transactions 2019-10-09 14:11:12 +13:00
Jack Grigg af7e263bcc Build protobufs for compact formats 2019-10-09 14:09:41 +13:00
str4d a57dc7f478 Merge pull request #138 from str4d/release-0.1.0
Release 0.1.0
2019-10-09 11:11:58 +13:00
Jack Grigg 98731c8374 librustzcash 0.2.0 2019-10-08 17:43:33 +13:00
Jack Grigg b0ba7fe4d2 zcash_client_backend 0.1.0 2019-10-08 17:43:33 +13:00
Jack Grigg d6bc2fe0af zcash_proofs 0.1.0 2019-10-08 17:43:33 +13:00
Jack Grigg 8b08528bb0 zcash_primitives 0.1.0 2019-10-08 17:43:33 +13:00
Jack Grigg 25558893ab bellman 0.2.0 2019-10-08 17:43:33 +13:00
Jack Grigg 68cada53cf pairing 0.15.0 2019-10-08 17:43:33 +13:00
Jack Grigg aa37783c37 group 0.2.0 2019-10-08 17:43:33 +13:00
Jack Grigg 216f0f62a0 ff 0.5.0 2019-10-08 17:43:33 +13:00
Jack Grigg 80d339848f Actions: Various CI improvements
- Test against MSRV
- Parallel linting
- Compile benchmarks on nightly
2019-10-08 15:59:40 +13:00
Jack Grigg b872e9fc49 Fix pairing benchmarks
They were broken by #91 but went unnoticed because CI does not compile
the benchmarks, which requires the nightly toolchain.
2019-10-08 15:25:41 +13:00
str4d 39971891d5 Merge pull request #131 from str4d/119-key-encoding-tests
Unit tests for key encodings
2019-10-08 13:48:05 +13:00
str4d 2399d9f3e3 Merge pull request #93 from defuse/qed-it-lrz
Bring in QED-it Tests
2019-10-08 13:47:36 +13:00
str4d 212b6e67d0 Merge pull request #133 from NikVolf/patch-1
Bump Rust to 1.37 on CI
2019-10-08 09:43:18 +13:00
str4d 6de1cb1397 Merge pull request #137 from jimpo/rand_core-version
Specify rand_core >= 0.5.1 for OsRng import.
2019-10-05 16:12:26 -06:00
Jim Posen 93563c3c65 Specify rand_core >= 0.5.1 for OsRng import. 2019-10-05 12:16:10 +02:00
str4d 524055bbb4 Merge pull request #134 from NikVolf/z-rng
Avoid using rand_os crate (fixes warnings)
2019-10-02 17:35:56 -06:00
NikVolf 730d2cbc7e fix outdated example 2019-09-28 12:50:28 +03:00
NikVolf 7476e4ea28 alphabetical order 2019-09-28 12:49:37 +03:00
str4d c68e15e4f3 Merge pull request #130 from str4d/crate-docs
Crate documentation updates
2019-09-28 10:32:35 +01:00
NikVolf b42477a0bf update from rand_os to fix warnings 2019-09-28 10:48:43 +03:00
Nikolay Volf 4c9ebcce9a Bump Rust to 1.37 on CI 2019-09-25 12:07:48 +02:00
Jack Grigg e7b5329e95 Unit tests for key encodings
Closes #119.
2019-09-24 17:47:10 +01:00
Jack Grigg 4ad3988e43 Crate docs 2019-09-24 14:23:59 +01:00
Jack Grigg 7f3036d2c8 Update READMEs 2019-09-24 14:23:55 +01:00
Jack Grigg 1fbf38280e Fix intra-doc links 2019-09-24 10:42:49 +01:00
Jack Grigg d9a0b9c83f CI: Check intra-doc links
Credit: https://twitter.com/tomaka17/status/1176017851410526208
2019-09-24 10:35:12 +01:00
Jack Grigg 1d02363752 Add READMEs to Cargo.toml files
This will cause crates.io to render each crate's README as its
information page.
2019-09-23 14:42:38 +01:00
str4d 30660e1d1c Merge pull request #128 from str4d/125-zip-32-seed-length
Panic if spending_key is given a seed shorter than 32 bytes
2019-09-19 06:52:10 -04:00
str4d d2da9cfcb0 Merge pull request #127 from str4d/more-crate-updates
More crate updates
2019-09-18 11:44:13 -04:00
Jack Grigg 450087e280 Add test for spending_key panic on short seed 2019-09-17 23:58:14 +01:00
Jack Grigg 9377b78b35 Panic if spending_key is given a seed shorter than 32 bytes
This enforces the MUST requirement in ZIP 32. A panic is used instead of
an error because this should be considered an implementation error.
Ideally the type system would prevent this from occurring at all.

Closes #125.
2019-09-17 21:28:23 +01:00
Jack Grigg 39a73c8eda Add missing cs.is_satisfied() to bellman test 2019-09-17 00:16:33 +01:00
Taylor Hornby 3701c2b442 Increase the number of pedersen hash generators, exercise all test vectors. 2019-09-17 00:05:54 +01:00
Taylor Hornby 4dff8055bf Remove unfinished find_group_hash test. 2019-09-16 23:44:14 +01:00
Taylor Hornby caab37c336 Fix build warnings 2019-09-16 23:06:48 +01:00
Taylor Hornby e391594e9e Fix broken linear relation checking 2019-09-16 22:51:11 +01:00
Kobi Gurkan 15b4c37ab0 adds test for linear relation between pedersen hash generators 2019-09-16 22:23:28 +01:00
Aurélien Nicolas 3efb7f9146 Test PH circuit for the size used in the Merkle tree 2019-09-16 22:20:51 +01:00
Aurélien Nicolas d56758d426 Calculate number of constraints and more comprehensive test 2019-09-16 22:14:14 +01:00