Duke Leto
90406d601c
desprout
2020-06-05 11:13:30 -04:00
Duke Leto
b32bf1f82c
Revert "desprout"
...
This reverts commit 7c6c7150c6 .
2020-06-04 21:51:21 -04:00
Duke Leto
7c6c7150c6
desprout
2020-06-03 22:20:10 -04:00
Duke Leto
89bbd48eae
More libsnark removal changes to various internals
2020-01-24 12:30:58 -05:00
jl777
0ea9ae3c05
Update copyright to 2019
2018-12-31 21:41:05 -11:00
miketout
4b729ec577
Changes for most chain power rule
2018-09-28 01:38:14 -07:00
miketout
9feb4b9e08
Major updates integration from all upstreams
2018-09-18 14:33:53 -07:00
Michael Toutonghi
5034d1c134
Sync with latest Komodo changes
2018-08-06 12:52:22 -07:00
Eirik Ogilvie-Wigley
00ed92343d
Add out point for sapling note data
2018-07-25 20:47:40 -07:00
jl777
ae4dbe22bb
tx.GetJoinSplitValueOut()
2018-07-12 00:58:25 -11:00
Ariel Gabizon
e1a3461cc2
Improve/Fix variable names
...
ZCProof was too general. pubKeyHash was actually the JoinSplit pubkey
itself.
2018-06-09 20:27:35 -07:00
Jack Grigg
a6bbb26e08
Replace boost::array with std::array
2018-05-26 00:12:57 +12:00
Sean Bowe
b7a6c32178
Integrate Groth16 verification and proving.
2018-05-14 16:26:23 -06:00
Jack Grigg
97b46f00cc
Add valueBalance to value balances, and enforce its consensus rules
2018-05-09 11:34:41 +01:00
miketout
e980a26ddd
Enable time locked coin bases to be used as normal coinbase transactions with longer maturity, fix max_money
2018-05-04 16:33:34 -07:00
Homu
9e5398686c
Auto merge of #3206 - bitcartel:3194_polymorphic_note_class, r=str4d
...
Update note classes to be polymorphic
Closes #3194 . Lays foundation for introduction of Sapling notes through refactoring and creation of a class hierarchy for Sprout notes. This PR updates some tests, but otherwise is a no-op.
2018-05-02 08:07:35 -07:00
Simon
b230fe6836
Refactoring: Rename class libzcash::Note to libzcash::SproutNote.
2018-04-25 11:33:24 -07:00
Jack Grigg
bf605b2644
Return result of boost::apply_visitor
...
Not returning a value at the end of a non-void function is undefined behaviour.
Given that this managed to pass our full test suite, I guess that GCC looks for
un-returned values at the end of a function and uses them as the return value,
if the keyword is missing. Clang OTOH complains, which is how we spotted this:
https://ci.z.cash/#/builders/16/builds/282
2018-04-24 23:04:09 +01:00
Jack Grigg
b7e75b17af
Implement basic Sapling v4 transaction parser
...
Details of Sapling datatypes will be filled in later; for now, they are treated
as binary blobs.
Includes code cherry-picked from upstream commit:
7030d9eb47254499bba14f1c00abc6bf493efd91
BIP144: Serialization, hashes, relay (sender side)
2018-04-19 05:01:47 +01:00
Pieter Wuille
c7d71985c9
Add deserializing constructors to CTransaction and CMutableTransaction
2018-04-17 13:29:51 +01:00
mruddy
690d38f0f8
Resolve issue bitcoin/bitcoin#3166 .
...
These changes decode valid SIGHASH types on signatures in assembly (asm) representations of scriptSig scripts.
This squashed commit incorporates substantial helpful feedback from jtimon, laanwj, and sipa.
2018-04-16 07:38:36 -06:00
jl777
9000990c30
Merge remote-tracking branch 'zcash/master' into rebase2
...
# Conflicts:
# .travis.yml
# Makefile.am
# README.md
# configure.ac
# depends/Makefile
# depends/builders/darwin.mk
# depends/funcs.mk
# depends/hosts/darwin.mk
# depends/packages/googlemock.mk
# depends/packages/googletest.mk
# depends/packages/libsnark.mk
# depends/packages/libsodium.mk
# depends/packages/packages.mk
# depends/packages/rust.mk
# src/Makefile.am
# src/Makefile.gtest.include
# src/chainparams.cpp
# src/chainparams.h
# src/checkpoints.h
# src/clientversion.h
# src/coins.cpp
# src/consensus/consensus.h
# src/gtest/test_mempool.cpp
# src/httprpc.cpp
# src/init.cpp
# src/komodo-tx.cpp
# src/main.cpp
# src/miner.cpp
# src/policy/fees.cpp
# src/policy/fees.h
# src/rpcmining.cpp
# src/rpcrawtransaction.cpp
# src/rpcserver.cpp
# src/test/policyestimator_tests.cpp
# src/test/rpc_wallet_tests.cpp
# src/test/transaction_tests.cpp
# src/txdb.cpp
# src/txmempool.cpp
# src/wallet/asyncrpcoperation_sendmany.cpp
# src/wallet/rpcwallet.cpp
# src/wallet/wallet.cpp
# src/wallet/wallet.h
# src/zcash/CreateJoinSplit.cpp
# zcutil/build.sh
2018-03-25 18:44:38 +03:00
Simon
072099d788
Implementation of Overwinter transaction format ZIP 202.
2018-02-16 10:10:15 -08:00
Homu
c8ecd49574
Auto merge of #2159 - bitcartel:1.0.7_payment_disclosure, r=str4d
...
Payment disclosure (experimental feature)
2017-11-14 14:06:22 -08:00
Simon
45232b1961
Add payment disclosure as experimental feature.
2017-11-14 13:29:05 -08:00
Sean Bowe
1a9543d064
Remove crusty old "loadVerifyingKey"/"loadProvingKey" APIs and associated invariants.
2017-10-21 15:42:41 +03:00
ca333
9d36579649
uni3
2017-10-09 11:45:49 +02:00
jl777
bc17ac4928
Merge remote-tracking branch 'zcash/master' into rebase
...
# Conflicts:
# README.md
# src/Makefile.gtest.include
# src/chainparams.cpp
# src/init.cpp
# src/miner.cpp
# src/wallet/wallet.cpp
2016-12-12 12:19:13 +02:00
Sean Bowe
bc59f53722
Isolate verification to a ProofVerifier context object that allows verification behavior to be tuned by the caller.
2016-12-05 12:40:06 -07:00
jl777
94eb04d704
osx compatibility
2016-11-11 09:25:48 -03:00
Simon
38276c6ba2
Add GenIdentity, an identity function for MappedShuffle.
...
We use this function in z_sendmany as part of the fix for #1779 .
2016-11-05 14:17:19 -07:00
Simon
7c463780cf
Fixes #1779 so that sending to multiple zaddrs no longer fails.
...
Commit 2eeb6b randomized the order of input and output notes,
but this is now known to prevent the chaining of multiple joinsplits
in a single transaction. The root cause has yet to be determined.
This patch is a temporary fix and disables the shuffling of input
and output notes. It also adds a chained joinsplit test to the
python qa test suite.
2016-11-04 23:23:48 -07:00
zkbot
c99a1c7e4f
Auto merge of #1566 - daira:1557.make-v2-txns-standard, r=ageis
...
1557.make v2 txns standard
Make v2 transactions standard. This also corrects a rule about admitting large orphan transactions into the mempool, to account for v2-specific fields. ref #1557
2016-10-21 01:10:37 -04:00
Daira Hopwood
e923e3ae0f
Make v2 transactions standard.
...
This also corrects a rule about admitting large orphan transactions into the mempool, to account for v2-specific fields.
Signed-off-by: Daira Hopwood <daira@jacaranda.org >
2016-10-18 19:37:55 +01:00
Jack Grigg
3774c944f8
Refactor test code to better test JSDescription::Randomized()
2016-10-18 12:44:56 -05:00
Jack Grigg
7f0aa74666
Implement static method for creating a randomized JSDescription
2016-10-18 10:41:00 -05:00
Simon
3bdb071cc3
Remove #1144 from transaction.cpp by reverting back to commit 942bc46.
2016-09-07 15:12:09 -07:00
Jack Grigg
5db5e42ec3
Add optional bool to disable computation of proof in JSDescription constructor
2016-08-30 00:29:49 +12:00
Simon
74cd8821c7
Remove GetSerializeHash() method.
2016-07-29 23:28:34 -07:00
Simon
3979881fc5
Fix comment.
2016-07-28 16:40:01 -07:00
Simon
90a9019387
Fix issue where a coinbase tx should have it's sigscript hashed
...
to avoid duplicate txids, as discussed in BIP34 and BIP30.
2016-07-27 00:52:27 -07:00
Simon
07e6d5b025
Refactor GetTxid() into UpdateTxid() to match coding style of hash member variable.
...
UpdateTxid() is called alongside UpdateHash() when a CTransaction is
deserialized or constructed. GetTxid() now returns a const reference.
2016-07-26 17:13:03 -07:00
Simon
1e84d84d3a
Rename GetHash() method to GetSerializeHash().
...
When pulling from upstream we are now forced to examine GetHash() usage
and replace with GetSerializeHash() if the caller wants a double SHA256
hash, or with GetTxid() if the caller wants a transaction id.
2016-07-26 17:09:27 -07:00
Simon
49689a574c
Add GetTxid() which returns a non-malleable txid.
2016-07-26 17:09:27 -07:00
Sean Bowe
942bc46756
Rename GetPourValueIn to GetJoinSplitValueIn
2016-07-18 10:06:18 -06:00
Sean Bowe
bfeaf0049a
Rename JSDescription's serials to nullifiers.
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
Sean Bowe
3a10823ad4
Wrap lines in *CTransaction constructors.
2016-05-30 19:35:09 -06:00
Sean Bowe
320f2cc7e0
Switch to Ed25519 for cryptographic binding of joinsplits to transactions.
2016-05-30 11:05:55 -06:00