Commit Graph

23279 Commits

Author SHA1 Message Date
Jack Grigg
93bd00a0d5 Add key_io includes to Zcash-specific code 2018-05-08 21:39:56 +01:00
Pieter Wuille
3d31e09cbb Split key_io (address/key encodings) off from base58 2018-05-08 21:39:56 +01:00
Pieter Wuille
3e60c9fabd Stop using CBase58Data for ext keys 2018-05-08 21:39:55 +01:00
Jack Grigg
aa333ee8f2 Implement {Encode,Decode}PaymentAddress etc. without CZCEncoding 2018-05-08 21:39:55 +01:00
Jack Grigg
8bf3a3d700 Introduce wrappers around CZCViewingKey 2018-05-08 21:39:55 +01:00
Jack Grigg
472f75bc2d Introduce wrappers around CZCSpendingKey 2018-05-08 21:39:55 +01:00
Jack Grigg
80ed13d545 Introduce wrappers around CZCPaymentAddress
This patch removes the need for the intermediary Base58 type
CZCPaymentAddress, by providing {Encode,Decode}PaymentAddress
functions that directly operate on the conversion between strings
and libzcash::PaymentAddress.
2018-05-08 21:39:55 +01:00
Pieter Wuille
f146029b0a Replace CBitcoinSecret with {Encode,Decode}Secret 2018-05-08 21:39:54 +01:00
miketout
18c72b619a Merge pull request #13 from miketout/dev
Recognizing CLTV transactions more broadly
2018-05-08 13:35:23 -07:00
miketout
ea340a1443 Recognizing CLTV transactions more broadly 2018-05-08 13:33:14 -07:00
Sean Bowe
b4db32f53c Check Sapling Spend/Output proofs and signatures. 2018-05-08 14:30:26 -06:00
Sean Bowe
531fcc88da Update to latest librustzcash 2018-05-08 14:30:26 -06:00
Sean Bowe
55fabd8272 Refactor so that dataToBeSigned can be used later in the function for other purposes. 2018-05-08 14:28:01 -06:00
Sean Bowe
6eea48bf96 Remove unnecessary IsCoinbase() check. Coinbases are guaranteed to have empty vjoinsplit. 2018-05-08 14:23:09 -06:00
jl777
2e12bbce39 Test 2018-05-08 23:08:00 +03:00
jl777
751df7814f Test 2018-05-08 22:51:57 +03:00
jl777
f4dfe27442 Test 2018-05-08 22:44:52 +03:00
jl777
ccb805c993 Merge pull request #659 from jl777/jl777
Jl777
2018-05-08 21:05:15 +03:00
jl777
58d3618754 Test 2018-05-08 20:18:34 +03:00
jl777
0afe191c04 Test 2018-05-08 19:11:58 +03:00
jl777
1448ebba2b Merge pull request #658 from himu007/patch-10
delete vote2018
2018-05-08 19:09:09 +03:00
jl777
30fd48c34c Merge pull request #657 from himu007/patch-9
removed VOTE2018
2018-05-08 19:08:52 +03:00
Homu
b1d2a69908 Auto merge of #3202 - str4d:3058-sapling-bech32, r=str4d
Bech32 encoding support

Cherry-picked from the following upstream PRs:

- bitcoin/bitcoin#8578
- bitcoin/bitcoin#11167
  - Only the second and third commits (first is in #3228, fourth depends on #2390, later ones are SegWit-specific).
- bitcoin/bitcoin#12757
  - Only the change to `src/bech32.h`

Part of #3058.
2018-05-08 09:08:37 -07:00
jl777
bed479837b Merge pull request #656 from himu007/patch-8
removed VOTE2018
2018-05-08 19:08:34 +03:00
jl777
864067ba3b Merge pull request #655 from himu007/patch-7
removed VOTE2018
2018-05-08 19:08:14 +03:00
jl777
de230f5e75 Test 2018-05-08 19:05:38 +03:00
jl777
e37664a90f Test 2018-05-08 19:00:21 +03:00
jl777
ba1587fd37 Test 2018-05-08 18:55:16 +03:00
jl777
9703f8a03d Test 2018-05-08 18:43:08 +03:00
jl777
bed8cd1f49 Test 2018-05-08 18:38:51 +03:00
jl777
596b05baf2 Test 2018-05-08 18:05:21 +03:00
jl777
26810a265b Test 2018-05-08 18:03:43 +03:00
jl777
99e3046307 Test 2018-05-08 18:02:57 +03:00
Homu
0c1adf8281 Auto merge of #3201 - Eirik0:3190-dumpprivkey-help-text, r=str4d
Clarify help text of dumpprivkey

Closes #3190
2018-05-08 06:02:17 -07:00
Jack Grigg
50284985e9 Update sighash tests 2018-05-08 11:45:41 +01:00
Jack Grigg
b391b70736 Implement Sapling signature hash (ZIP 243) 2018-05-08 11:45:38 +01:00
Homu
0a98b97524 Auto merge of #3236 - str4d:3192-jsoutpoint-constructor, r=str4d
Change JSOutPoint constructor to have js argument be uint64_t

Closes #3192.
2018-05-08 02:50:04 -07:00
jl777
9c72a5cbb7 Test 2018-05-08 12:23:58 +03:00
jl777
51f0e5008d Test 2018-05-08 12:17:48 +03:00
jl777
0c03fd07bd Test 2018-05-08 12:07:29 +03:00
jl777
dd24966431 Test 2018-05-08 12:07:05 +03:00
jl777
9e44b3ce6f Test 2018-05-08 12:01:57 +03:00
Homu
333b9a0d0b Auto merge of #3170 - ebfull:sapling-merkle-tree, r=ebfull
Sapling merkle tree implementation

Closes #3056.

Please also review https://github.com/zcash/librustzcash/pull/8

This PR:

1. Introduces ZCSaplingIncrementalMerkleTree using Pedersen hashes.
2. Adds support for Sapling anchors into consensus rules. (Adds commitments, checks anchors are correct, handles block (dis)connects, etc.)
3. Handles mempool eviction for obsolete anchors.
4. Enforces correctness of block's Sapling root field
5. Changes miner to correctly apply the Sapling root to the block header
6. Handles mempool consistency checks for anchors
2018-05-07 20:37:46 -07:00
Sean Bowe
40bfb9e5b9 Swap bit endianness of test vectors 2018-05-07 18:57:04 -06:00
Sean Bowe
fcbe7eef8d Update sapling-crypto and librustzcash 2018-05-07 18:56:55 -06:00
miketout
4aace7629b Merge pull request #12 from miketout/dev
Enable time locked transactions to be recognized in the wallet
2018-05-07 16:23:13 -07:00
miketout
fab1429d48 Enable time locked transactions to be recognized in the wallet 2018-05-07 15:58:53 -07:00
Jack Grigg
e935beb810 wallet: Make some arguments const that can be 2018-05-07 22:13:26 +01:00
Jack Grigg
b87e271a9a wallet: Change IsLockedNote to take a JSOutPoint
This removes the uint64_t -> size_t -> uint64_t round trip, as well as the
JSOutPoint -> parts -> JSOutPoint round trip.
2018-05-07 21:56:57 +01:00
SHossain
3611134826 delete vote2018 2018-05-07 21:54:50 +01:00