Kris Nuttycombe
efaba87681
Add newtype for block height.
2020-09-17 10:26:41 -06:00
Jack Grigg
192db29a25
Take epk as a jubjub::ExtendedPoint for note decryption
...
We don't need to check if epk is in the prime-order subgroup before we
trial-decrypt, which saves a third of the cost of trial-decrypting
outputs that are not ours.
2020-09-10 00:39:21 +01:00
Sean Bowe
d4cba74402
Version bump 0.4.0 for crates
...
Bumps zcash_proofs, zcash_primitives, zcash_client_backend to 0.4.0
Also bumps zcash_client_sqlite to 0.2.0
2020-09-09 14:41:19 -06:00
ebfull
c7e9523dce
Merge pull request #284 from str4d/259-ovk-none
...
zcash_primitives: Support ovk = ⊥ in note encryption
2020-09-09 14:32:57 -06:00
Jack Grigg
59e26a0c0f
bls12_381 0.3.1 and jubjub 0.5.1
2020-09-09 16:51:53 +01:00
Jack Grigg
d4f87c12ed
rusqlite 0.24
2020-09-09 00:53:42 +01:00
Jack Grigg
46f17bd624
Bump protobuf dependencies
...
MSRV is now 1.44.1.
2020-09-09 00:32:16 +01:00
Jack Grigg
96bd59b942
Migrate to ff 0.8 and bellman 0.8
...
bellman 0.8 includes fixes for several performance regressions.
MSRV is now 1.44.0, matching the ff crate.
2020-09-09 00:27:51 +01:00
Jack Grigg
40e135783c
zcash_primitives: Support ovk = ⊥ in note encryption
...
Closes zcash/librustzcash#259 .
2020-08-28 21:17:16 +01:00
Jack Grigg
3f06d92eec
Depend on published versions of subtree crates
2020-08-27 23:25:20 +01:00
Jack Grigg
3cd8f64240
zcash_client_sqlite 0.1.0
2020-08-23 16:23:53 +01:00
Jack Grigg
0a3752c088
zcash_client_backend 0.3.0
2020-08-23 16:23:53 +01:00
Jack Grigg
9ce0994f0b
zcash_proofs 0.3.0
2020-08-23 16:23:53 +01:00
Jack Grigg
e25a7dacdf
zcash_primitives 0.3.0
2020-08-23 16:23:53 +01:00
Jack Grigg
d112add8a3
jubjub 0.4.0
2020-08-23 16:23:53 +01:00
Jack Grigg
bdb42bcbc8
pairing 0.17.0
2020-08-23 15:31:09 +01:00
Jack Grigg
ee3e8fbfbb
group 0.7.0
2020-08-23 15:31:09 +01:00
Jack Grigg
55fa366730
ff 0.7.0
2020-08-23 15:31:09 +01:00
Jack Grigg
d15acf8acc
zcash_primitives: Rename Note::cm to Note::cmu
2020-08-21 18:35:04 +01:00
Jack Grigg
fdf06032e3
s/{pairing::bls12_381, zcash_primitives::jubjub}/{bls12_381, jubjub}
...
FINALLY.
2020-08-19 23:08:19 +01:00
therealyingtong
c3d89644e2
Revert SaplingNoteEncryption::new() API to take rng instead of esk
2020-08-06 12:47:35 +08:00
therealyingtong
9970a8aefd
Hard-code NetworkUpgrade::Canopy in generate_random_rseed
2020-08-06 12:27:20 +08:00
therealyingtong
b05e257f79
Fix database queries in scan.rs and transact.rs
2020-08-06 12:00:49 +08:00
therealyingtong
44f46e50ce
Add <P: consensus::Parameters> type parameter to Builder struct
2020-08-06 11:43:07 +08:00
therealyingtong
d6deaddc0a
Only query last_height when needed in decrypt_and_store_transaction()
2020-08-05 16:09:41 +08:00
therealyingtong
2ed9b6f881
Refactor contextual random rseed generation into util method in zcash_primitives
2020-08-05 15:21:42 +08:00
therealyingtong
d5f80618ef
Switch plaintext version on height in commit_to_address() in zcash_client_sqlite
2020-08-05 14:26:57 +08:00
therealyingtong
a25348dfba
Revert passing Parameters to methods
2020-08-05 12:47:29 +08:00
therealyingtong
74b2f0a79e
Pass height to decrypt_transaction()
2020-08-04 21:05:29 +08:00
therealyingtong
895e251793
Fix tests
2020-07-31 22:40:48 +08:00
therealyingtong
65504d9ca7
Add enum Rseed<E::Fs> to Note struct
2020-07-31 22:28:40 +08:00
therealyingtong
b537f0f712
Pass height to methods which encrypt or decrypt Sapling outputs
2020-07-31 12:39:39 +08:00
Jack Grigg
8c250ca3de
zcash_sqlite: Add an unreliability warning to query::get_balance docs
2020-07-10 09:50:43 +12:00
Jack Grigg
8188fae779
zcash_client_sqlite: Implement outgoing viewing key policies
...
This enables an SQLite light client to specify whether recipient history
can be recovered from the block chain (and by what outgoing viewing key)
with per-transaction granularity.
2020-07-09 23:48:09 +12:00
Jack Grigg
0a61db0317
Upgrade to rusqlite 0.23
...
Requires bumping the MSRV to 1.40.0 because libsqlite3-sys uses features
introduced in that version. remove_dir_all can similarly be unpinned.
2020-06-27 00:45:12 +12:00
Jack Grigg
131e00e25d
zcash_client_sqlite::scan::decrypt_and_store_transaction
2020-06-25 18:54:41 +12:00
Jack Grigg
3036064cd0
zcash_client_sqlite: Update received note during scan if present
...
Fixes a bug where rewinding a block that contained a received note would
cause a constraint violation.
2020-06-25 18:54:41 +12:00
Kevin Gorham
9363ec36d9
Added a limit value for scanning.
...
This provides a way to expose a more fine grained measure of scan progress. For example, by scanning in batches of 100 blocks, rather than everything that is pending.
2020-06-25 18:54:41 +12:00
Jack Grigg
c8074d42b8
zcash_client_sqlite: Store is_change as INTEGER instead of BOOLEAN
...
Needed because SQLite internally stores BOOLEAN as INTEGER anyway, but
this causes problems with newer versions of Room on Android.
2020-06-25 18:54:41 +12:00
Jack Grigg
4cfdacedec
zcash_client_sqlite: Support sending to t-addrs
2020-06-25 18:54:41 +12:00
Jack Grigg
380c2f726f
Chain validity and reorg handling
2020-06-25 18:54:41 +12:00
Jack Grigg
f0ce0c5530
Add mainnet support to zcash_client_sqlite via a feature flag
2020-06-25 18:54:41 +12:00
Jack Grigg
a2de5d7028
Add security disclaimer to README
2020-06-25 18:54:41 +12:00
Jack Grigg
02324fb767
zcash_client_sqlite::query::get_*_memo_as_utf8()
2020-06-25 18:54:41 +12:00
Jack Grigg
34725df086
zcash_client_sqlite::transact::create_to_address()
2020-06-25 18:54:41 +12:00
Jack Grigg
3ef03f2f1d
zcash_client_sqlite::scan::scan_cached_blocks()
2020-06-25 18:54:41 +12:00
Jack Grigg
72dd76e4db
zcash_client_sqlite::query::{get_balance, get_verified_balance}
2020-06-25 18:54:41 +12:00
Jack Grigg
c8b70e569c
zcash_client_sqlite::query::get_address()
2020-06-25 18:54:41 +12:00
Jack Grigg
c0cf55c127
SQLite database structure and initialisation
2020-06-25 18:54:34 +12:00