Commit Graph

67 Commits

Author SHA1 Message Date
Cryptoforge
1ce4e97632 use zero consensus ids 2020-07-12 22:31:27 -07:00
Aditya Kulkarni
a69806cca3 Fix lint 2020-05-16 22:32:27 -07:00
Aditya Kulkarni
4f129e6a83 Add transparent address decode 2020-05-16 22:24:05 -07:00
Aditya Kulkarni
a0384d4fac Update master 2020-05-16 21:44:34 -07:00
Jack Grigg
c597db59a6 ff: Rename PrimeField::into_repr -> PrimeField::to_repr 2020-05-02 18:55:13 +12:00
Jack Grigg
49f119fb03 ff: Remove PrimeFieldRepr trait
The ff::PrimeField::Repr associated type now has the minimal necessary
bounds, which can be satisfied by a newtype around a byte array.
2020-04-23 18:15:14 +12:00
Sean Bowe
100878cd14
Version bump of all crates (except librustzcash) 2020-03-12 15:59:19 -06:00
François Garillot
865275e2a2
Correcting some trivial Rust option/iterator warts 2020-01-29 13:53:05 -08:00
Jack Grigg
d5ed684701
zcash_client_backend::decrypt_transaction 2019-11-27 15:45:13 +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
7fda177da8
Doc link fixes 2019-11-07 17:33:22 +00:00
Jack Grigg
bc35a62e10
Remove rand_os dependency 2019-10-31 18:57:52 +00:00
Jack Grigg
ac4acfa26e
Fix rand_os warning in tests 2019-10-31 16:36:54 +00:00
Aditya Kulkarni
4d290e7a32 Add regtest constants 2019-10-14 22:20:58 -07:00
Jack Grigg
e9f94119bc
Store witness inside WalletShieldedOutput 2019-10-09 14:12:30 +13:00
Jack Grigg
b44653e686
Move cmu and epk parsing onto CompactOutput struct 2019-10-09 14:12:30 +13:00
Jack Grigg
1e2bc7f65c
Test nullifiers in constant time
Checking for spent notes in a block is still not completely constant
time, due to filtering out negative results of the constant-time
comparison.

Part of #84.
2019-10-09 14:12:27 +13:00
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
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
Jack Grigg
b0ba7fe4d2
zcash_client_backend 0.1.0 2019-10-08 17:43:33 +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
Aditya Kulkarni
24691f2d50 Revert "Encode expanded spending keys"
This reverts commit 0743dadcd0.
2019-10-02 12:56:02 -07:00
Aditya Kulkarni
0743dadcd0 Encode expanded spending keys 2019-09-24 11:14:13 -07: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
Aditya Kulkarni
90b38d0eb1 Add regtest constants 2019-09-19 11:17:03 -07: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
abbd43ff57
Make pk_d validity an invariant of PaymentAddress
Introduces a PaymentAddress::from_parts constructor, and getters for
the diversifier and pk_d fields (which are now private).
2019-09-04 19:48:35 -04:00
Jack Grigg
86142d044c
PaymentAddress::to_bytes 2019-09-04 19:46:46 -04:00
Jack Grigg
73ee19239c
Replace manual address decoding with PaymentAddress::from_bytes 2019-09-04 19:46:46 -04:00
Jack Grigg
1c60a79ec1
Implement TransparentAddress encoding and decoding 2019-08-29 17:53:51 +01:00
Jack Grigg
4c1237fa50
zcash_client_sqlite::transact::create_to_address() 2019-08-29 17:53:40 +01:00
Jack Grigg
99aef05318
Store witness inside WalletShieldedOutput 2019-08-26 12:41:44 +01:00
Jack Grigg
8cd6666e56
Move cmu and epk parsing onto CompactOutput struct 2019-08-26 12:41:43 +01:00
Jack Grigg
2bafc688ff
Test nullifiers in constant time
Checking for spent notes in a block is still not completely constant
time, due to filtering out negative results of the constant-time
comparison.

Part of #84.
2019-08-22 12:52:01 +01:00
Jack Grigg
2774d2730f
Add prevHash field to CompactBlock
This enables basic verification of chain validity when CompactBlocks are
received without the full header.
2019-08-22 12:50:08 +01:00
Jack Grigg
2e038207f0
Update new witnesses with subsequent transactions in the same block 2019-08-22 12:50:06 +01:00
Jack Grigg
36f1ef62de
Add tx index within block to WalletTx struct 2019-08-22 12:50:05 +01:00