Commit graph

13287 commits

Author SHA1 Message Date
Mark Friedenbach
0331fc28ec [Move Only] Move CTxOutValue to the top of the file since it will be used by the asset generation and reissuance classes. 2017-06-16 12:02:17 -04:00
Gregory Sanders
5421adae70 confidential_transactions.py: remove erroneous set_trace, fix race 2017-06-16 12:02:17 -04:00
Gregory Sanders
95d392f868 wallet.py begin re-activating 2017-06-16 12:02:17 -04:00
Gregory Sanders
15e94ed65a [MOVE UP] Confidential Assets python testing - no issuance skeleton anymore 2017-06-16 12:02:17 -04:00
Gregory Sanders
49e35dc943 Wallet: fix sendmany with assets 2017-06-16 12:02:17 -04:00
Gregory Sanders
abefb6e1b1 Wallet: fix more tx creation corner cases 2017-06-16 12:02:17 -04:00
Gregory Sanders
a63ef3a95c Wallet: add filter for listunspent, update help info 2017-06-16 12:02:17 -04:00
Gregory Sanders
97f4bad4a2 Fix wallet accounting and txn construction corner cases 2017-06-16 12:02:17 -04:00
Gregory Sanders
fdd9c9310b fix txvalidationcache_tests 2017-06-16 12:02:17 -04:00
Gregory Sanders
2543d06ed9 fix rpc_tests for new serialization of explicit fees 2017-06-16 12:02:17 -04:00
Gregory Sanders
4d21f07b06 fix transaction_tests with assets and explicit fee output 2017-06-16 12:02:16 -04:00
Gregory Sanders
979dc877d2 More test fixes, reactivation 2017-06-16 12:02:16 -04:00
Gregory Sanders
127645beb6 fix blind_tests 2017-06-16 12:02:16 -04:00
Gregory Sanders
3d4838f525 BlindOutputs: fixup blinding check at end 2017-06-16 12:02:16 -04:00
Gregory Sanders
2b0d1520b6 BlindOutputs: simplify corner case logic 2017-06-16 12:02:16 -04:00
Gregory Sanders
714e8fc0d0 Rangeproof commits to scriptpubkey 2017-06-16 12:02:16 -04:00
instagibbs
74cb1f5cab createrawtransaction: Add fee value to txn 2017-06-16 12:02:16 -04:00
instagibbs
c4a8bfaf19 Use CAmountMap, 0 values fine 2017-06-16 12:02:16 -04:00
Jerzy Kozera
26eec02917 Add assetlabel to help message about sendtoaddress 2017-06-16 12:02:16 -04:00
Gregory Sanders
b50bd63055 Fees are standard. 2017-06-16 12:02:16 -04:00
Gregory Sanders
dcc378adae Allow arbitrary assets for fees 2017-06-16 12:02:16 -04:00
Gregory Sanders
cb2ee26d12 Make sure coinbase has no fees 2017-06-16 12:02:16 -04:00
Gregory Sanders
796072852d Disallow 0-value fees 2017-06-16 12:02:16 -04:00
Gregory Sanders
9e669c8837 Move rest of CAmountMap stuff 2017-06-16 12:02:16 -04:00
Gregory Sanders
fa0a86fb74 Move CAmountMap to amount.h 2017-06-16 12:02:16 -04:00
Gregory Sanders
2f7a9a5846 Replace nTxFee with explicit output fees 2017-06-16 12:02:16 -04:00
Gregory Sanders
553cdeea00 Greatly simplify coinbase balance checking 2017-06-16 12:02:16 -04:00
instagibbs
7aae7bada7 Don't attempt to copy CReserveKeys 2017-06-16 12:02:16 -04:00
Gregory Sanders
a38c6b18b5 SurjectionProof caching 2017-06-16 12:02:16 -04:00
Gregory Sanders
13cdcfc979 Enable multithreaded validation of surjection proofs 2017-06-16 12:02:16 -04:00
Gregory Sanders
b780bf7047 SendFrom: Remove 2017-06-16 12:02:16 -04:00
Gregory Sanders
4f3f87649f Wallet: Support arbitrary assets 2017-06-16 12:02:16 -04:00
Gregory Sanders
c5533245b8 Give genesis block BITCOINID asset type 2017-06-16 12:02:15 -04:00
Gregory Sanders
99936b03db No dust for non-bitcoin outputs 2017-06-16 12:02:15 -04:00
Gregory Sanders
f9fd37cc8e Consensus: Add asset type to CTxOut and validation 2017-06-16 12:02:15 -04:00
Gregory Sanders
926851d823 Add BITCOINID static constant 2017-06-16 12:02:15 -04:00
Gregory Sanders
b8a35b0a46 Add CAssetID typedef 2017-06-16 12:02:15 -04:00
Mark Friedenbach
4a831b6740 [Hard Fork] CA: Add asset field to CTxOut, modifying the serialization format of both transaction and witness data 2017-06-16 12:02:15 -04:00
Mark Friedenbach
0e984761f1 CA: Add CTxOutAsset class for holding asset tags and surjection proofs 2017-06-16 12:02:15 -04:00
Mark Friedenbach
194d4b722b CA: Add skeletal CAssetReissuance class illustrating fields 2017-06-16 12:02:15 -04:00
Mark Friedenbach
427a8c2bca CA: Add skeletal CAssetGeneration class illustrating fields 2017-06-16 12:02:15 -04:00
Mark Friedenbach
2d1fdab4fa CT: Add CTxOutValue::SetNull for API similarity with other bitcoin classes 2017-06-16 12:02:15 -04:00
Mark Friedenbach
2d0e0f72b4 [Move Only] CT: Move small methods of CTxOutValue class into header for inlining 2017-06-16 12:02:15 -04:00
Mark Friedenbach
5c0f3f5012 CT: Remove constructor for CTxOutValue that was never implemented and never used 2017-06-16 12:02:15 -04:00
Mark Friedenbach
a94fe6839f [Hard Fork] CT: Swap meaning of serialization byte for explicit outputs
Previously 0 was explicit and 1 was original bitcoin format. This has been reversed such that the original bitcoin format is 0 and the new explicit format is 1.

This is by no means a necessary change, but it is a navel gazing fix that might as well be included since the format is changing anyway to allow compact explicit amounts.
2017-06-16 12:02:15 -04:00
Mark Friedenbach
5e32a07d4c [Hard Fork] CT: Resize vchCommitment based on type (explicit or committed)
Previously all outputs had a fixed size (33 byte) commitment field.
With this change, explicit / unblinded outputs are serialized to 9 bytes,
saving 24 bytes of transaction space per explicit output.
2017-06-16 12:02:15 -04:00
Mark Friedenbach
ab72a3dc05 CT: Rename nCommitmentSize -> nCommittedSize 2017-06-16 12:02:15 -04:00
instagibbs
27bc93d754 BlindOutputs: Move sum checker to end and always check 2017-06-16 12:02:15 -04:00
instagibbs
7501e0a1a0 Adapt daemon functionality to updated libsecp 2017-06-16 12:02:15 -04:00
instagibbs
369a8b79f6 Disable Schnorr, enable generator and surjectionproof wmodule 2017-06-16 12:02:15 -04:00