zkbot
a723794f81
Auto merge of #1233 - str4d:1199-note-tracking, r=str4d
...
Add Note tracking
This PR extends the existing transaction tracking in the wallet to track spendable Notes.
Closes #1199
2016-09-01 08:17:07 +00:00
Jack Grigg
73db0c12b9
Increase coverage of GetNoteDecryptor()
2016-09-01 14:44:01 +12:00
Jack Grigg
be86b6c332
Add test for GetNoteDecryptor()
2016-08-31 18:57:32 +12:00
zkbot
835588a629
Auto merge of #1314 - str4d:fix-getblock-solution-output, r=ebfull
...
Output Equihash solution in RPC results as a hex string
When the Equihash solution was changed to a compact form in #1175 , the block header changed from storing a vector of indices to a vector of chars. `blockToJSON()` was not updated, which meant that RPC calls like `getblock` returned the solution as a list of 1344 integers.
This PR changes `blockToJSON()` to output the Equihash solution as a hex string, identical to how it appears in the block header.
2016-08-30 18:40:19 +00:00
Jack Grigg
3e3da44c71
Test solution output of blockToJSON()
2016-08-30 14:42:49 +12:00
Simon
df3af446e7
Fixes #1122 where json_spirit could stack overflow because there
...
was no maximum limit set on the number of nested compound elements.
2016-08-26 23:35:45 -07:00
Simon
4b2e557181
Fix comments.
2016-08-24 11:19:34 -07:00
Simon
4cea36bef3
Add gtest to cover new methods in:
...
CWallet
- GenerateNewZKey()
- AddZKey()
- LoadZKey()
- LoadZKeyMetadata()
CWalletDB
- WriteZKey()
2016-08-24 11:19:33 -07:00
Daira Hopwood
c6a7e897bc
Add mostly-static checks on consistency of Equihash parameters, MAX_HEADERS_RESULTS, and MAX_PROTOCOL_MESSAGE_LENGTH.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org >
2016-08-24 06:13:06 +01:00
zkbot
cd9d373987
Auto merge of #1260 - str4d:1175-byte-array-manipulation, r=ebfull
...
Update Equihash implementation to match the Zcash spec
Closes #1175
2016-08-24 03:01:13 +00:00
Jack Grigg
90b740fd3b
Test conversion between solution indices and minimal representation
2016-08-24 13:42:52 +12:00
Sean Bowe
ae6b333c75
Perform curve parameter initialization at start of gtest suite.
2016-08-22 15:47:00 -06:00
Sean Bowe
f0dab51cf3
Implement zkSNARK compression.
2016-08-22 00:36:12 -06:00
zkbot
365845216b
Auto merge of #1268 - ThisIsNotOfficialCodeItsJustForks:t1130-upgrade-libsodium, r=ebfull
...
Upgrade libsodium for AVX2-detection bugfix.
Upgrades libsodium to bring in an AVX2-detection bugfix (to help with #1130 ).
2016-08-22 02:34:30 +00:00
Jack Grigg
6e629886e5
Add another test case based on example in the spec
2016-08-21 05:57:46 +12:00
Taylor Hornby
2902ac7ce8
Use libsodium's s < L check, instead checking that libsodium checks that.
2016-08-18 16:38:20 -06:00
zkbot
28a30f7801
Auto merge of #1254 - ebfull:tx-structure-changes, r=bitcartel
...
Change memo field size and relocate `ciphertexts` field of JoinSplit description
Closes #1190
Closes #1187
2016-08-18 16:49:47 +00:00
zkbot
3d28c86c8e
Auto merge of #1205 - str4d:1199-key-management, r=str4d
...
Add support for spending keys to the basic key store
Prerequisite for #1197 and #1199 .
2016-08-18 00:27:09 +00:00
Jack Grigg
a4f4fa8fe9
ASSERT -> EXPECT in test to get more info per test run about future regressions
2016-08-18 12:25:01 +12:00
Jack Grigg
04dfc3c569
Rework test to check for failure to return a spending key
2016-08-18 12:22:30 +12:00
Jack Grigg
5be6abbf84
Store the Equihash solution in minimal representation in the block header
...
The genesis blocks and miner tests have been regenerated, because changing the
block header serialisation format changes the block hash, and thus validity.
The Equihash solutions have been removed from the bloom test inputs for
simplicity (block validity is not checked there; only a valid serialisation is
necessary).
2016-08-16 16:02:39 +12:00
Jack Grigg
20abe2083c
Extend byte array expansion and compression methods with optional padding
2016-08-16 11:02:04 +12:00
Jack Grigg
caa0348f04
Update Equihash hash generation to match the Zcash spec
...
Changes:
- floor(512/n)*n/8 bytes of BLAKE2b output is split between floor(512/n)
adjacent indices, instead of using one hash call per index.
- Parameters with n/(k+1) mod 8 != 0 will expand the BLAKE2b output to byte
boundaries for colliding, instead of using a longer output and clearing bits.
- The genesis blocks have been regenerated.
- The test vectors have been regenerated.
- The Equihash inputs for the cancellation tests were modified to ensure that
valid solutions were available to exercise the full solver.
2016-08-16 11:02:04 +12:00
Jack Grigg
881ffbfc87
Add methods for byte array expansion and compression
...
These methods convert between:
- A byte array of length NL/8, and
- An array of N blocks of ceil(L/8) bytes.
2016-08-16 11:02:00 +12:00
Sean Bowe
f5e5707d4c
Change memo field size and relocate ciphertexts field of JoinSplit description.
2016-08-15 09:39:14 -06:00
Jack Grigg
b5c06c83b0
Consistent parameter naming
2016-08-12 14:37:17 +12:00
Robert C. Seacord
47251e8460
Update test_equihash.cpp
2016-08-10 22:02:00 -04:00
Jack Grigg
7c929cf5bc
Add support for spending keys to the basic key store
2016-08-09 17:38:25 +12:00
zkbot
0822971120
Auto merge of #1183 - bitcartel:zc.v0.11.2.latest_txid_tests, r=bitcartel
...
Add gtest for non-malleable txids.
1. Test txid of normal transaction is double sha256 with sigscript input data removed
2. Test txid of coinbase transaction is double sha256 over whole tx
You can run a single test with:
./zcash-gtest --gtest_filter="txid_tests*"
2016-08-06 21:47:23 +00:00
Simon
2a7fde3f42
Add test for non-malleable txids. To run just this test:
...
./zcash-gtest --gtest_filter="txid_tests*"
2016-08-05 22:54:21 -07:00
Jack Grigg
fa19e1b357
Add test showing bug in IsProbablyDuplicate()
2016-08-06 15:23:47 +12:00
Jack Grigg
51eb5273f5
Equihash: Pass each obtained solution to a callback for immediate checking
...
Closes #1143
2016-07-27 19:15:49 +12:00
zkbot
6dfc9e7a7c
Auto merge of #1120 - str4d:1055-asynchronous-miner-interrupts, r=str4d
...
Make Equihash solvers cancellable
The miner only cancels the solver when chainActive.Tip() changes.
Closes #1055
2016-07-25 23:51:23 +00:00
Jack Grigg
1655db285d
Move initialisations to simplify cancelled checks
2016-07-22 23:54:14 +12:00
Sean Bowe
4d66f8f68a
Add test for non-intuitive merkle tree gadget witnessing behavior.
2016-07-21 19:28:58 -06:00
Jack Grigg
5b4ebcd5e2
Add tests that exercise the cancellation code branches
2016-07-21 16:39:32 +12:00
Sean Bowe
1d184d53e1
Rename cacheSerials to cacheNullifiers and fix tests.
2016-07-18 10:06:18 -06:00
Sean Bowe
8f95cd3c26
Test fixes.
2016-07-18 10:06:18 -06:00
Sean Bowe
8675d94b63
Rename vpour to vjoinsplit.
2016-07-18 10:06:18 -06:00
Sean Bowe
a8c68ffe99
Rename CPourTx to JSDescription.
2016-07-18 10:06:18 -06:00
zkbot
fc127fc2db
Auto merge of #1051 - ThisIsNotOfficialCodeItsJustForks:t863-mock-coverage-of-checktransaction, r=ebfull
...
Add mock test coverage of CheckTransaction
Closes #863 .
2016-07-14 18:43:07 +00:00
Taylor Hornby
a4944ffcb0
Fix bad_txns_oversize test for increased block size.
2016-07-14 12:17:01 -06:00
Sean Bowe
2668a1bc13
Remove the rest of libzerocash.
2016-07-10 20:25:02 -06:00
Taylor Hornby
d9ee9a51d1
Test non-canonical ed25519 signature check
2016-06-23 18:22:20 -06:00
Taylor Hornby
4aea53423e
More testing of CheckTransaction
2016-06-23 16:59:00 -06:00
Taylor Hornby
948d4e6c10
Split JoinSplit proof verification out of CheckTransaction.
2016-06-23 16:35:31 -06:00
Taylor Hornby
cea9f58791
WIP: Add mock test coverage of CheckTransaction
2016-06-22 17:25:35 -06:00
Taylor Hornby
fc057da455
Add example mock test of CheckTransaction
2016-06-15 17:01:55 -06:00
Sean Bowe
6ab0a227c6
Fix test against merkle tree root.
2016-06-15 15:31:14 -06:00
zkbot
8ff7c0752e
Auto merge of #954 - ebfull:fix-cpourtx-structure, r=ebfull
...
CPourTx structural changes
* Enable binary serialization of proofs and the proving key (closes #799 ) and make the proofs fixed-size.
* Reorder fields of CPourTx to match the spec (closes #927 )
2016-05-25 16:33:31 +00:00