]>
Git Repo - librustzcash.git/log
jesse [Sat, 28 Aug 2021 16:13:44 +0000 (12:13 -0400)]
Update lib.rs
jesse [Sat, 28 Aug 2021 16:13:19 +0000 (12:13 -0400)]
Update lib.rs
jesse [Sat, 28 Aug 2021 16:12:59 +0000 (12:12 -0400)]
Update lib.rs
jesse [Sat, 28 Aug 2021 16:11:50 +0000 (12:11 -0400)]
Update lib.rs
jesse [Sat, 28 Aug 2021 16:09:33 +0000 (12:09 -0400)]
Update Cargo.toml
jesse [Sat, 28 Aug 2021 16:07:31 +0000 (12:07 -0400)]
Update Cargo.toml
str4d [Mon, 23 Aug 2021 20:25:59 +0000 (21:25 +0100)]
Merge pull request #429 from str4d/bump-deps
Bump dependencies
Jack Grigg [Mon, 23 Aug 2021 19:21:13 +0000 (20:21 +0100)]
proptest 1
Jack Grigg [Mon, 23 Aug 2021 19:18:45 +0000 (20:18 +0100)]
pprof 0.5
Jack Grigg [Mon, 23 Aug 2021 19:16:40 +0000 (20:16 +0100)]
fpe 0.5
Jack Grigg [Mon, 23 Aug 2021 19:15:51 +0000 (20:15 +0100)]
nom 7
str4d [Tue, 17 Aug 2021 13:57:59 +0000 (14:57 +0100)]
Merge pull request #417 from nuttycom/incremental_merkle_tree_ser
Add manual serialization for bridgetree::Frontier
Kris Nuttycombe [Tue, 17 Aug 2021 13:25:56 +0000 (07:25 -0600)]
Apply suggestions from code review.
Kris Nuttycombe [Mon, 16 Aug 2021 23:36:07 +0000 (17:36 -0600)]
Fix clippy complaints.
Kris Nuttycombe [Mon, 16 Aug 2021 19:48:37 +0000 (13:48 -0600)]
Add blanket implementation of Hashable for incrementalmerkletree::Hashable + HashSer
Kris Nuttycombe [Mon, 16 Aug 2021 16:20:14 +0000 (10:20 -0600)]
Apply suggestions from code review
Co-authored-by: str4d <[email protected] >
Kris Nuttycombe [Mon, 16 Aug 2021 16:06:38 +0000 (10:06 -0600)]
Serialize `Option` values by value, not by reference.
Co-authored-by: str4d <[email protected] >
Kris Nuttycombe [Thu, 12 Aug 2021 13:23:15 +0000 (07:23 -0600)]
Merge pull request #424 from daira/zip339-primitives
ZIP 339 support
str4d [Tue, 10 Aug 2021 23:47:27 +0000 (00:47 +0100)]
Merge pull request #425 from str4d/batch-note-decryption
Batch note decryption
Jack Grigg [Tue, 10 Aug 2021 23:21:00 +0000 (00:21 +0100)]
zcash_primitives: Implement `Domain::batch_epk` for `jubjub`
Jack Grigg [Tue, 10 Aug 2021 23:18:39 +0000 (00:18 +0100)]
zcash_primitives: Test that batched trial decryption matches unbatched
Jack Grigg [Tue, 10 Aug 2021 01:57:11 +0000 (02:57 +0100)]
zcash_note_encryption: Add support for batch-parsing `ephemeral_key`
This is useful when the underlying curve requires an inversion to parse
an encoded point (such as for Jubjub).
Jack Grigg [Fri, 6 Aug 2021 15:21:37 +0000 (16:21 +0100)]
zcash_primitives: Implement batched trial decryption optimisation
Jack Grigg [Fri, 6 Aug 2021 15:20:42 +0000 (16:20 +0100)]
zcash_note_encryption: Add batched trial decryption APIs
str4d [Tue, 10 Aug 2021 01:16:17 +0000 (02:16 +0100)]
Merge pull request #423 from str4d/trial-decryption-optimisation
Store OutputDescription `ephemeral_key` as bytes
Jack Grigg [Mon, 9 Aug 2021 20:45:16 +0000 (21:45 +0100)]
Update changelogs with `EphemeralKeyBytes` changes
Jack Grigg [Mon, 9 Aug 2021 20:28:42 +0000 (21:28 +0100)]
Use `EphemeralKeyBytes` type in place of `[u8; 32]`
Daira Hopwood [Sat, 7 Aug 2021 00:07:54 +0000 (01:07 +0100)]
ZIP 339 support.
Signed-off-by: Daira Hopwood <[email protected] >
Jack Grigg [Fri, 6 Aug 2021 15:54:48 +0000 (16:54 +0100)]
Store OutputDescription `ephemeral_key` as bytes
This removes an unnecessary `to_bytes` during trial decryption of notes,
and more closely matches the protocol spec. We retain the consensus rule
canonicity check on epk due to `SaplingVerificationContext::check_output`
taking a `jubjub::ExtendedPoint`, forcing `zcashd` to parse the bytes.
str4d [Thu, 5 Aug 2021 22:29:16 +0000 (23:29 +0100)]
Merge pull request #421 from str4d/bench-compact-decryption
zcash_primitives: Benchmark trial decryption of compact outputs
str4d [Thu, 5 Aug 2021 22:22:12 +0000 (23:22 +0100)]
zcash_primitives: Use `not(unix)` instead of `windows` for flamegraphs
Co-authored-by: Daira Hopwood <[email protected] >
Jack Grigg [Thu, 5 Aug 2021 21:40:46 +0000 (22:40 +0100)]
zcash_primitives: Remove spaces from benchmark group names
Jack Grigg [Thu, 5 Aug 2021 21:39:36 +0000 (22:39 +0100)]
Disable default benchmark harness for all workspace crates
This is necessary in order to provide criterion-specific arguments to
`cargo bench`, such as `--profile-time`.
Jack Grigg [Thu, 5 Aug 2021 21:21:56 +0000 (22:21 +0100)]
zcash_primitives: Add flamegraph support to benchmarks on Unix
Use `cargo bench -- --profile-time TIME_IN_SECONDS` to measure the
flamegraphs. They will be placed in `target/criterion/`.
Jack Grigg [Thu, 5 Aug 2021 21:13:23 +0000 (22:13 +0100)]
zcash_primitives: Benchmark trial decryption of compact outputs
These are effectively identical to full-output trial decryption (as the
primary cost is the scalar multiplication), but it's good to check.
Kris Nuttycombe [Wed, 7 Jul 2021 15:54:32 +0000 (09:54 -0600)]
Implement manual serialization for incremental Merkle tree components.
This also adds parsing of the legacy CommitmentTree format,
to permit easy migration of persisted data.
str4d [Fri, 30 Jul 2021 19:44:26 +0000 (20:44 +0100)]
Merge pull request #419 from str4d/418-ua-hrp-padding
zcash_address: Include HRP inside Unified Address Padding bytes
str4d [Fri, 30 Jul 2021 19:35:23 +0000 (20:35 +0100)]
Tweak test comment
Jack Grigg [Fri, 30 Jul 2021 14:34:36 +0000 (15:34 +0100)]
zcash_address: Include HRP inside Unified Address Padding bytes
Closes zcash/librustzcash#418.
Kris Nuttycombe [Thu, 29 Jul 2021 17:05:55 +0000 (11:05 -0600)]
Merge pull request #411 from nuttycom/use_orchard_zip244_commitments
Move Orchard bundle commitments to the `orchard` crate.
Kris Nuttycombe [Thu, 29 Jul 2021 16:37:23 +0000 (10:37 -0600)]
Use orchard::Flags::to_byte/from_byte
Kris Nuttycombe [Thu, 1 Jul 2021 16:27:30 +0000 (10:27 -0600)]
Move Orchard bundle commitments to the `orchard` crate.
str4d [Mon, 12 Jul 2021 21:02:34 +0000 (22:02 +0100)]
Merge pull request #416 from str4d/ua-parser-checks
Add Unified Address parser structural checks
Jack Grigg [Mon, 12 Jul 2021 20:17:25 +0000 (21:17 +0100)]
zcash_address: Fix clippy lint by using matches! macro
Jack Grigg [Mon, 12 Jul 2021 20:11:24 +0000 (21:11 +0100)]
zcash_address: Remove outdated unified::Receiver documentation
Receiver ordering is now explicitly defined by Typecode, and Receiver
is now a public type.
Jack Grigg [Mon, 12 Jul 2021 19:56:35 +0000 (20:56 +0100)]
zcash_address: Add UA test cases for truncation and invalid padding
Jack Grigg [Mon, 12 Jul 2021 19:19:26 +0000 (20:19 +0100)]
zcash_address: Invert Typecode::is_shielded to Typecode::is_transparent
Co-authored-by: Daira Hopwood <[email protected] >
Jack Grigg [Mon, 12 Jul 2021 12:39:01 +0000 (13:39 +0100)]
zcash_address: Enable constructing a unified::Address from Vec<Receiver>
This enforces the same structural validity checks as at parsing time.
Jack Grigg [Mon, 12 Jul 2021 12:35:06 +0000 (13:35 +0100)]
zcash_address: Add `unified::Address::receivers{_as_parsed}` APIs
These expose the receivers in sorted order, and in parsed order.
Jack Grigg [Mon, 12 Jul 2021 12:34:44 +0000 (13:34 +0100)]
zcash_address: Use preference ordering for Receivers
Jack Grigg [Mon, 12 Jul 2021 11:10:23 +0000 (12:10 +0100)]
zcash_address: Enforce UA structural validity checks
Jack Grigg [Mon, 12 Jul 2021 10:44:48 +0000 (11:44 +0100)]
zcash_address: Introduce UA-specific parser error type
Jack Grigg [Mon, 12 Jul 2021 10:41:40 +0000 (11:41 +0100)]
zcash_address: Add a Typecode enum
str4d [Fri, 9 Jul 2021 20:18:52 +0000 (21:18 +0100)]
Merge pull request #415 from str4d/ci-rustdoc-no-deps
CI: Don't render documentation for crates outside the workspace
Jack Grigg [Fri, 9 Jul 2021 20:17:56 +0000 (21:17 +0100)]
CI: Don't render documentation for crates outside the workspace
str4d [Fri, 9 Jul 2021 20:12:42 +0000 (21:12 +0100)]
Merge pull request #414 from str4d/ci-rustdoc-fix
CI: Fix documentation rendering
Jack Grigg [Fri, 9 Jul 2021 20:12:06 +0000 (21:12 +0100)]
CI: Fix documentation rendering
str4d [Fri, 9 Jul 2021 19:59:33 +0000 (20:59 +0100)]
Merge pull request #413 from str4d/ci-rustdoc
CI: Add workflow to render latest documentation
Jack Grigg [Fri, 9 Jul 2021 19:57:23 +0000 (20:57 +0100)]
CI: Add workflow to render latest documentation
str4d [Wed, 30 Jun 2021 19:21:09 +0000 (20:21 +0100)]
Merge pull request #410 from nuttycom/nonempty_bump
Update nonempty crate version.
Kris Nuttycombe [Thu, 17 Jun 2021 13:57:10 +0000 (07:57 -0600)]
Update `nonempty` and `orchard` dependencies.
str4d [Thu, 24 Jun 2021 00:28:44 +0000 (01:28 +0100)]
Merge pull request #409 from nuttycom/fix_clippy
Fix clippy complaints
Kris Nuttycombe [Wed, 23 Jun 2021 22:37:48 +0000 (16:37 -0600)]
Fix clippy complaints
str4d [Fri, 18 Jun 2021 19:40:57 +0000 (20:40 +0100)]
Merge pull request #407 from str4d/ua-test-vectors
zcash_address: Add Unified Address test vectors
Jack Grigg [Fri, 18 Jun 2021 19:02:26 +0000 (20:02 +0100)]
zcash_address: Add Unified Address test vectors
str4d [Tue, 15 Jun 2021 20:54:30 +0000 (21:54 +0100)]
Merge pull request #405 from str4d/bump-orchard-deps
Bump orchard deps
Jack Grigg [Tue, 15 Jun 2021 19:20:53 +0000 (20:20 +0100)]
Bump orchard deps
Includes additional patched dependencies, now that the orchard crate is
not pinning specific revisions of the in-development crates.
str4d [Tue, 15 Jun 2021 16:49:59 +0000 (17:49 +0100)]
Merge pull request #401 from str4d/368-zip-221-orchard
`zcash_history`: Implement v2 history tree with Orchard support
Daira Hopwood [Mon, 14 Jun 2021 21:46:22 +0000 (22:46 +0100)]
Merge pull request #402 from str4d/amount-to-orchard-valuesum
impl From<Amount> for orchard::ValueSum
Jack Grigg [Mon, 14 Jun 2021 10:41:02 +0000 (11:41 +0100)]
impl From<Amount> for orchard::ValueSum
This is necessary in order to be able to calculate bvk for Orchard
bundles.
Jack Grigg [Fri, 11 Jun 2021 01:12:01 +0000 (02:12 +0100)]
zcash_history: Migrate tests to V2 format
V2 is implemented as a wrapper around V1, so this simply expands the
tested code.
Jack Grigg [Fri, 11 Jun 2021 00:57:28 +0000 (01:57 +0100)]
zcash_history: Implement V2 tree format
Jack Grigg [Fri, 11 Jun 2021 00:11:30 +0000 (01:11 +0100)]
zcash_history: Introduce Version trait
Each Zcash epoch (between two network upgrades) has a separate history
tree, making it easy to switch the node data format at network upgrades.
This commit enables the general tree logic to be shared across history
tree versions.
str4d [Thu, 10 Jun 2021 18:22:03 +0000 (19:22 +0100)]
Merge pull request #400 from str4d/rework-shieldedoutput-api
zcash_note_encryption: Add `ShieldedOutput::ephemeral_key() -> EphemeralKeyBytes`
Jack Grigg [Thu, 10 Jun 2021 17:35:19 +0000 (18:35 +0100)]
zcash_note_encryption: Add `ShieldedOutput::ephemeral_key() -> EphemeralKeyBytes`
This replaces the `ShieldedOutput::epk() -> &Domain::EphemeralPublicKey`
which could not be satisfied by output types that did not parse epk.
str4d [Tue, 8 Jun 2021 18:47:55 +0000 (19:47 +0100)]
Merge pull request #399 from str4d/zip-244-auth-digest-test-vectors
Bring in ZIP 244 auth digest test vectors.
Jack Grigg [Tue, 8 Jun 2021 17:47:34 +0000 (18:47 +0100)]
ZIP 244: Write transparent scripts in their consensus encoding
str4d [Tue, 8 Jun 2021 17:34:47 +0000 (18:34 +0100)]
Merge pull request #396 from str4d/394-zip-216
Impl ZIP 216 on SaplingVerificationContext and redjubjub::PublicKey
Kris Nuttycombe [Tue, 8 Jun 2021 17:33:52 +0000 (11:33 -0600)]
Ensure tze digest is only included if TZEs are in the consensus rules.
Jack Grigg [Tue, 8 Jun 2021 17:17:30 +0000 (18:17 +0100)]
Bring in ZIP 244 auth digest test vectors.
From https://github.com/zcash-hackworks/zcash-test-vectors/pull/34.
str4d [Tue, 8 Jun 2021 16:59:36 +0000 (17:59 +0100)]
Merge pull request #398 from str4d/zip225-orchard-refactor
Extract ZIP 225 Orchard bundle parsing and serialization into helpers
Jack Grigg [Tue, 8 Jun 2021 15:53:16 +0000 (16:53 +0100)]
Extract ZIP 225 Orchard bundle parsing and serialization into helpers
These will be used by `zcashd` for handling the Orchard component of v5
transactions.
str4d [Tue, 8 Jun 2021 16:28:25 +0000 (17:28 +0100)]
Merge pull request #375 from nuttycom/feature/zip-225
ZIP 225 & ZIP 244
Kris Nuttycombe [Tue, 8 Jun 2021 13:02:52 +0000 (07:02 -0600)]
Apply suggestions from code review
Co-authored-by: Daira Hopwood <[email protected] >
Kris Nuttycombe [Sat, 5 Jun 2021 16:40:33 +0000 (10:40 -0600)]
Fix error in transaction auth digest.
Co-authored-by: str4d <[email protected] >
Kris Nuttycombe [Sat, 5 Jun 2021 16:36:52 +0000 (10:36 -0600)]
Minor error message improvement.
Co-authored-by: str4d <[email protected] >
Kris Nuttycombe [Sat, 5 Jun 2021 16:34:48 +0000 (10:34 -0600)]
Be more explicit about empty sapling & orchard hashes.
str4d [Sun, 6 Jun 2021 23:36:48 +0000 (00:36 +0100)]
Merge pull request #352 from str4d/zcash_address
New component: zcash_address crate
Jack Grigg [Sun, 6 Jun 2021 23:13:21 +0000 (00:13 +0100)]
zcash_address: Fix clippy lint
str4d [Sun, 6 Jun 2021 22:58:52 +0000 (23:58 +0100)]
zcash_address: Minor cleanups
Co-authored-by: Daira Hopwood <[email protected] >
str4d [Sun, 6 Jun 2021 22:54:11 +0000 (23:54 +0100)]
zcash_address: Use exhaustive matching in Display impl
Co-authored-by: Daira Hopwood <[email protected] >
Jack Grigg [Sun, 6 Jun 2021 22:45:15 +0000 (23:45 +0100)]
Impl ZIP 216 on SaplingVerificationContext and redjubjub::PublicKey
`PublicKey::verify` now always uses post-ZIP 216 validation rules, which
is fine in non-consensus contexts.
`SaplingVerificationContext` is used by `zcashd`'s consensus rules.
Kris Nuttycombe [Sat, 5 Jun 2021 16:15:35 +0000 (10:15 -0600)]
Deserialize signatures directly into actions.
Co-authored-by: str4d <[email protected] >
Kris Nuttycombe [Sat, 5 Jun 2021 15:56:00 +0000 (09:56 -0600)]
Use Vector read/write operations where possible instead of Array
Co-authored-by: str4d <[email protected] >
Kris Nuttycombe [Sat, 5 Jun 2021 15:48:12 +0000 (09:48 -0600)]
Remove consensus branch id from roundtrip serialization check.
Possible now that it's part of the transaction.
Kris Nuttycombe [Sat, 5 Jun 2021 15:45:55 +0000 (09:45 -0600)]
Keep builder spend data in spend_auth_sig fields.
Kris Nuttycombe [Fri, 4 Jun 2021 23:28:44 +0000 (17:28 -0600)]
Fix generation of arbitrary jubjub points.
Kris Nuttycombe [Fri, 4 Jun 2021 20:28:41 +0000 (14:28 -0600)]
Fix rustdocs
Kris Nuttycombe [Fri, 4 Jun 2021 18:22:00 +0000 (12:22 -0600)]
Apply suggestions from code review.
Kris Nuttycombe [Fri, 4 Jun 2021 18:12:07 +0000 (12:12 -0600)]
Rename Vector::write_items -> Array::write and Vector::read_count -> Array::read
This page took 0.061565 seconds and 4 git commands to generate.