Commit Graph

3768 Commits

Author SHA1 Message Date
teor 76131db25a Add commented-out prints of solution candidates for debugging 2024-04-19 02:27:34 +00:00
teor 9391e65c21 equihash: Clear slots when setting the hash state
The equivalent change is made to the C worker, which is unused.
2024-04-19 02:27:34 +00:00
teor 2bd7bc8f8e equihash: Don't import a header that's missing in Windows CI 2024-04-19 02:27:34 +00:00
teor b737d0fe26 equihash: Remove unused thread support to enable Windows compilation 2024-04-19 02:27:34 +00:00
teor 989f40ee9b equihash: Add a portable endian.h for `htole32()` on macOS and Windows
Source: mikepb/endian.h@0f885cbba6
License: Public Domain (or "BSD OR MIT OR Apache-2.0")
2024-04-19 02:27:34 +00:00
teor d7ccd07d0b equihash: Ensure returned compressed solutions are unique 2024-04-19 02:27:34 +00:00
teor 5f77bd79db equihash: Place solver behind a feature flag 2024-04-19 02:27:34 +00:00
teor 3c78bf60a1 equihash: Set C pointers to NULL after freeing them to avoid double-frees
Also includes some redundant cleanup code for defense in depth.
2024-04-19 02:27:34 +00:00
teor 463e7d9958 equihash: Move allocation out of the loop 2024-04-19 02:27:34 +00:00
teor fe3b269f3a equihash: Verify compressed solutions in tests 2024-04-19 02:27:34 +00:00
teor 1b20c15053 equihash: Add Rust APIs for compressed solutions 2024-04-19 02:27:34 +00:00
Jack Grigg d07505de71 equihash: Add Rust API for Tromp solver
Co-authored-by: teor <teor@riseup.net>
2024-04-19 02:00:40 +00:00
Jack Grigg 45e7238b80 equihash: Pass `blake2b_simd` bindings to Tromp solver as callbacks
This avoids linker errors by removing cycles.
2024-04-19 02:00:40 +00:00
Jack Grigg 3aaeb8b719 equihash: Modify Tromp solver to compile as C
Co-authored-by: teor <teor@riseup.net>
2024-04-19 02:00:40 +00:00
Jack Grigg 7ab6c47d5b equihash: Import `blake2b_simd` C bindings from `zcashd`
Source: zcash/zcash@01d5576a97
License: MIT
2024-04-19 02:00:40 +00:00
Jack Grigg 45652a21a8 equihash: Import Tromp solver
Source: zcash/zcash@01d5576a97
License: MIT
2024-04-19 02:00:40 +00:00
str4d 5df164b2a4
Merge pull request #1357 from zcash/equihash-refactor-code
Refactor `equihash` code
2024-04-19 02:59:45 +01:00
Jack Grigg d4b405f03f equihash: Move helper methods for minimal reprs into a submodule 2024-04-18 23:19:35 +00:00
Jack Grigg cc1bcb8a4a equihash: Move `Params` into an internal submodule 2024-04-18 21:07:24 +00:00
str4d 3877c38a2c
Merge pull request #1343 from zcash/dependabot/github_actions/peaceiris/actions-gh-pages-4
build(deps): bump peaceiris/actions-gh-pages from 3 to 4
2024-04-18 15:20:42 +01:00
str4d 390b929663
Merge pull request #1347 from zcash/dependabot/github_actions/supplypike/setup-bin-4
build(deps): bump supplypike/setup-bin from 3 to 4
2024-04-18 15:20:04 +01:00
dependabot[bot] 5cf83c5a44
build(deps): bump supplypike/setup-bin from 3 to 4
Bumps [supplypike/setup-bin](https://github.com/supplypike/setup-bin) from 3 to 4.
- [Release notes](https://github.com/supplypike/setup-bin/releases)
- [Commits](https://github.com/supplypike/setup-bin/compare/v3...v4)

---
updated-dependencies:
- dependency-name: supplypike/setup-bin
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-10 05:56:09 +00:00
dependabot[bot] b42b4984ad
build(deps): bump peaceiris/actions-gh-pages from 3 to 4
Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) from 3 to 4.
- [Release notes](https://github.com/peaceiris/actions-gh-pages/releases)
- [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-gh-pages/compare/v3...v4)

---
updated-dependencies:
- dependency-name: peaceiris/actions-gh-pages
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-09 05:52:08 +00:00
Kris Nuttycombe 19fce07c4d
Merge pull request #1342 from zcash/release-zcash_client_sqlite-0.10.3
Release zcash_client_sqlite version 0.10.3
2024-04-08 15:02:09 -06:00
Kris Nuttycombe a7de8a3dba Release zcash_client_sqlite version 0.10.3 2024-04-08 13:24:42 -06:00
Kris Nuttycombe e37e490450
Merge pull request #1341 from nuttycom/fix_birthday_query
zcash_client_sqlite: Fix broken `account_birthday` method.
2024-04-06 09:50:48 -06:00
Kris Nuttycombe f7c29f0111 zcash_client_sqlite: Fix the broken `account_birthday` query. 2024-04-05 18:21:11 -06:00
Kris Nuttycombe 20e8bca8d9 zcash_client_sqlite: Add a test demonstrating the broken `account_birthday` query. 2024-04-05 16:56:54 -06:00
Kris Nuttycombe 430212cd53
Merge pull request #1184 from zcash/1169-sync-engine
zcash_client_backend: Implement async wallet synchronization function
2024-04-03 11:23:02 -06:00
Jack Grigg 7f017bc126 CI: Test with `sync` feature flag 2024-04-02 00:37:16 +00:00
Jack Grigg 24277a6ba4 zcash_client_backend: Implement async wallet synchronization function
This implements the necessary state machine for taking a wallet in some
arbitrary synchronization status, and fully scanning (the remainder of)
the chain.

Closes zcash/librustzcash#1169.
2024-04-02 00:26:08 +00:00
oscar-pepper 25b8404e2d
Add block cache trait (#1192) 2024-04-01 21:55:16 +01:00
str4d 023e3cad4c
Merge pull request #1337 from nuttycom/fix_suspicious_account_query
zcash_client_sqlite: Fix sloppy named-parameter reference.
2024-04-01 21:48:09 +01:00
str4d eff1a2be7d
Merge pull request #1339 from nuttycom/use_named_column_accessors
zcash_client_sqlite: Use named column accessors for `to_spendable_note`
2024-04-01 21:35:45 +01:00
Kris Nuttycombe bdd0990db2 zcash_client_sqlite: Use named column accessors for `to_spendable_note` 2024-04-01 13:49:40 -06:00
Kris Nuttycombe 9bd97814db zcash_client_sqlite: Use named column references in `to_unspent_transparent_output` 2024-04-01 12:19:54 -06:00
Kris Nuttycombe e618d80cde zcash_client_sqlite: Fix sloppy named-parameter reference. 2024-04-01 12:19:49 -06:00
Kris Nuttycombe 55895b85b5 zcash_client_sqlite: Add a test for multiple-account retrieval. 2024-04-01 12:19:48 -06:00
Kris Nuttycombe cc9ea3901c
Merge pull request #1334 from zcash/fix/ensure_orchard_in_default_ua
zcash_client_sqlite: Add a migration to ensure that default addresses…
2024-03-29 13:03:07 -06:00
Kris Nuttycombe c34b68204d zcash_client_sqlite: Add a migration to ensure that default addresses have an Orchard receiver. 2024-03-29 11:53:28 -06:00
str4d 86823c929a
Merge pull request #1333 from zcash/fix/single_pool_send_to_t
zcash_client_sqlite: Fix incorrect input selection filtering when sending to transparent.
2024-03-27 21:49:11 +00:00
Kris Nuttycombe 1cb33c8b06 zcash_client_backend release version 0.12.1 2024-03-27 14:58:12 -06:00
Kris Nuttycombe d431889560 zcash_client_sqlite: Fix incorrect input selection filtering when sending to transparent.
The "avoid pool crossing" conditions in not selection were erroneously
not taking into account the need to pay transparent outputs.
2024-03-27 14:58:12 -06:00
Kris Nuttycombe a58355f697 zcash_client_backend: Add a failing test for note selection error. 2024-03-27 14:58:12 -06:00
str4d 0d80f3c01a
Merge pull request #1331 from zcash/release-zcash_client_sqlite-0.10.2
zcash_client_sqlite 0.10.2
2024-03-27 19:07:52 +00:00
Jack Grigg bea4097ded zcash_client_sqlite 0.10.2 2024-03-27 11:05:26 -04:00
str4d 9195019375
Merge pull request #1328 from zcash/1326-zcs-fix-query
zcash_client_sqlite: Fix column name in UTXO query
2024-03-27 14:49:11 +00:00
Jack Grigg 5462f84676 zcash_client_sqlite: Fix column name in UTXO query
Closes zcash/librustzcash#1326.
2024-03-27 13:49:20 +00:00
Jack Grigg 020305fd20 zcash_client_sqlite: Add tests that hit zcash/librustzcash#1326. 2024-03-27 13:49:15 +00:00
Kris Nuttycombe 3ccc14f501
Merge pull request #1321 from zcash/fix_sent_note_recipient_constraint
zcash_client_sqlite: Fix sent note recipient constraint
2024-03-25 20:41:08 -06:00