Duke Leto
4d965f53eb
A bunch more libsnark deletions/updates
4 years ago
Duke Leto
1c5e3e71b8
Clean up
5 years ago
jl777
52445b8430
Slowflag into CBOPRET if
5 years ago
Duke Leto
f6a4f17f82
Avoid downloading the 700MB sprout-groth16 file we do not need
5 years ago
Bartlomiej Lisiecki
191fc2e152
Add support for importing and exporting sapling ivk
5 years ago
jl777
9a59f56135
https://github.com/zcash/zcash/pull/3670/files
6 years ago
ca333
492d6703ed
sync jl777:FSM
6 years ago
Jack Grigg
ee3fa7020e
Pass parameter paths as native strings to librustzcash
6 years ago
miketout
5f63373eb9
Selectively reject Sapling transactions while synced below activation height. Add separate control of staking.
6 years ago
Jack Grigg
2b47b0de7d
Position PoW.MinDifficultyRules test after rule activates
6 years ago
Jack Grigg
1702a86455
Allow minimum-difficulty blocks on testnet and regtest
A block may be mined with nBits set to the minimum difficulty if its
nTime is set more than six block intervals (15 minutes) after its parent
block.
This is a consensus rule change on testnet that will result in a chain
split (as desired).
6 years ago
Jack Grigg
639e46b4d7
Revert "Remove testnet-only difficulty rules"
This reverts commit 333ea3c426
.
6 years ago
miketout
4b729ec577
Changes for most chain power rule
6 years ago
Eirik Ogilvie-Wigley
83c4e360da
Address need not be optional when adding sapling keys
6 years ago
Jack Grigg
34e222c18e
Revert "Disable Sapling features on mainnet"
This reverts commit 554e00e8f9
.
6 years ago
Jack Grigg
bd3c860cb4
Use ovk directly in the TransactionBuilder API instead of fvk
6 years ago
Larry Ruane
6206d86237
Test peer banning logic in both pre- and post-initial block download states
6 years ago
Jack Grigg
07d3f947ec
Extract a helper method for finding the next epoch
6 years ago
Simon
17b6a9d376
Update comment for test ContextualCheckBlockTest.BlockSproutRulesRejectOtherTx
6 years ago
Jack Grigg
b33a7ec46e
wallet: Don't allow an HDSeed to be overwritten
We can maybe relax this restriction later once we have worked out the UX
implications.
6 years ago
Jack Grigg
70b4ad2dcd
wallet: Switch from SaplingSpendingKey to SaplingExtendedSpendingKey
The wallet now only stores Sapling extended spending keys, and thus can
only be used with keys generated from an HDSeed via ZIP 32.
Note that not all Sapling keys in the wallet will correspond to the
wallet's HDSeed, as a standalone Sapling xsk can be imported via
z_importkey. However, it must have been generated from a seed itself,
and thus is more likely to be backed up elsewhere.
6 years ago
Jack Grigg
ec653523ad
Store HDSeed in CCryptoKeyStore
6 years ago
Jack Grigg
70c8c25e4b
Store HDSeed in CBasicKeyStore
6 years ago
Jack Grigg
7614198f9d
ZIP 32 Sapling structs
6 years ago
Jack Grigg
2962a72e35
Rename GetFirstBlockTransaction() to GetFirstBlockCoinbaseTx()
6 years ago
Jack Grigg
d7bcbfaee4
Fix test after refactor to check bacd-cb-height rule on a genesis block
6 years ago
Jack Grigg
fb22b3bbd8
Revert NU activation heights in reverse order
Ensures that global state remains consistent.
6 years ago
Jack Grigg
d70d103ee0
Ensure SCOPED_TRACE falls out of scope when necessary
6 years ago
George Tankersley
e601446adc
Refactor ContextualCheckBlock tests
Combines some of the needlessly separate tests. Each formerly separate
test is tagged with a SCOPED_TRACE to make sure logs are still useful.
6 years ago
George Tankersley
ec7466b62f
Refactor ContextualCheckBlock tests ( #3187 )
Initial cleanup. Reduces duplication of code, especially around
constructing transactions, resetting the activation heights, and setting
up the EXPECT calls for accepting and rejecting tests.
Also adds a bunch of comments explaining the test plan and what
particular parts of the test are doing.
6 years ago
David Mercer
32d3a3352e
libsnark: convert long long and unsigned long to C++11 fixed-width types
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
8 years ago
Jack Grigg
c5b26acad8
Use boost::filesystem::path::string() instead of path::native()
This fixes a mingw32 conversion error during cross-compilation.
6 years ago
Jack Grigg
554e00e8f9
Disable Sapling features on mainnet
Also places them behind an experimental features flag on testnet
6 years ago
Jack Grigg
e7ca4eb3c3
test: gtest for Sapling encoding and decoding
6 years ago
Simon
d4d0ec7e95
Update test to pass in required cm to SaplingNotePlaintext::decrypt().
6 years ago
Sean Bowe
69c4391b0f
Check commitment validity within the decryption API for Sapling note plaintexts.
6 years ago
Sean Bowe
198dfd3c36
Switch to use the official Sapling parameters.
6 years ago
Jack Grigg
25d5e80cbe
Rename *SpendingKey -> *SproutSpendingKey
Also GetPaymentAddresses -> GetSproutPaymentAddresses
6 years ago
Jack Grigg
4c77517772
Rename *ViewingKey* -> *SproutViewingKey*
6 years ago
Jack Grigg
5175a7f07b
Pass SaplingPaymentAddress to store through the CKeyStore
6 years ago
Sean Bowe
d9ef8f622e
Check the hash of the (Sapling+) zk-SNARK parameters during initialization.
6 years ago
Sean Bowe
80bd573dc2
Make changes to gtest ECC behavior suggested by @str4d .
6 years ago
Sean Bowe
262d21bcbb
Don't call ECC_Start/ECC_Stop outside the test harness.
6 years ago
Eirik Ogilvie-Wigley
7d379f18c5
Rename test objects to include sprout or sapling
6 years ago
Eirik Ogilvie-Wigley
8ea8ef9850
Rename Witnesses to include sprout or sapling
6 years ago
Eirik Ogilvie-Wigley
4fc309f0f5
Rename Merkle Trees to include sprout or sapling
6 years ago
Sean Bowe
a310f6c5fa
Relocate ECC_Start() to avoid test failures.
6 years ago
Sean Bowe
3d75e8b3e7
Move `extern params` to beginning of `test_checktransaction`.
6 years ago
Sean Bowe
291895fac7
Ensure sum of valueBalance and all vpub_new's does not exceed MAX_MONEY inside of CheckTransactionWithoutProofVerification.
6 years ago
Jack Grigg
54a868cf0a
Rename xsk to expsk
xsk will be used for ZIP 32 extended spending keys, so renaming here to
reduce confusion.
6 years ago