Commit graph

11694 commits

Author SHA1 Message Date
Karl-Johan Alm
bb7496b2da [rpc] listunspent: clarify that the asset type matters for default case, and do some formatting fixes. 2017-04-02 14:23:35 -04:00
Karl-Johan Alm
99009edd7b [rpc] createrawtransaction: Fix docs and rename nValue to amount, to match utxo dictionaries. 2017-04-02 14:23:35 -04:00
Karl-Johan Alm
fd195b4551 [doc] HelpExampleCLI should use the right binary name. 2017-04-02 14:23:35 -04:00
Gregory Sanders
2309b35f30 UnblindOutput: belt and suspenders check for all-blinded output 2017-04-02 14:23:35 -04:00
Gregory Sanders
3602ce6197 Refactor verifyamounts to accept all 4 (un)blinded configurations 2017-04-02 14:23:35 -04:00
Mark Friedenbach
cc4c550286 CA: Add implementation of asset derivation functions. 2017-04-02 14:23:35 -04:00
Mark Friedenbach
513eb8b82e CA: Add header definitions for asset tag derivation functions. 2017-04-02 14:23:35 -04:00
Mark Friedenbach
91e97c45de Add fast Merkle branch functions.
A fast Merkle branch uses midstate to perform a single SHA-256 compression per branch, and is not vulnerable to CVE-2012-2459. It produces different hashes though, so can only be used for new hash trees going forward.
2017-04-02 14:23:35 -04:00
Mark Friedenbach
d8ec55b5b7 Add mistate output to CSHA256.
This allows the intermediate state of a SHA-256 run to be saved for future resumption, or in the case of fast Merkle trees to perform a non-padded hash.
2017-04-02 14:23:35 -04:00
Gregory Sanders
6339f7d019 Explicit fee outputs: remove extra vData 2017-04-02 14:23:35 -04:00
Mark Friedenbach
2ba5249486 CA: Handle serialization of CAssetIssuance on coinbases correctly. 2017-04-02 14:23:35 -04:00
Mark Friedenbach
2cffaa1617 CA: Add constructor for CAssetIssuance. 2017-04-02 14:23:35 -04:00
Mark Friedenbach
4fc96ef936 f "CA: Switch to inflation-only issuance, unifying CAssetGeneration and CAssetReissuance in the process, and making serialization simpler overall." 2017-04-02 14:23:35 -04:00
Mark Friedenbach
0c6d02cbaa CA: Switch to inflation-only issuance, unifying CAssetGeneration and CAssetReissuance in the process, and making serialization simpler overall. 2017-04-02 14:23:35 -04:00
Mark Friedenbach
196763b490 CA: Remove the issuance/reissuance vectors from CTransaction which are no longer used with the new serialization scheme. 2017-04-02 14:23:35 -04:00
Mark Friedenbach
136d7705b5 CA: Add CAssetGeneration and CAssetReissuance fields with serialization 2017-04-02 14:23:35 -04:00
Mark Friedenbach
79a71e0b6e f "CA: Add skeletal CAssetReissuance class illustrating fields" 2017-04-02 14:23:35 -04:00
Mark Friedenbach
c818b5dc14 [Move Only] Move the output definitions before the input definitions, since the asset stuff in the inputs is going to reference some of the output declarations. 2017-04-02 14:23:35 -04:00
Mark Friedenbach
01f2605782 [Move Only] Put the asset definitions after COutPoint 2017-04-02 14:23:35 -04:00
Mark Friedenbach
8545f79f04 [Move Only] Move CAssetGeneration and CAssetReissuance up above CTxIn because that is where they are going to be used. 2017-04-02 14:23:35 -04:00
Mark Friedenbach
cfa895eac5 [Move Only] Move CTxOutValue to the top of the file since it will be used by the asset generation and reissuance classes. 2017-04-02 14:23:35 -04:00
Mark Friedenbach
d4e88c29c6 f "CA: Add skeletal CAssetReissuance class illustrating fields" 2017-04-02 14:23:35 -04:00
Mark Friedenbach
610db3eb26 f "CA: Add CTxOutAsset class for holding asset tags and surjection proofs" 2017-04-02 14:23:35 -04:00
Mark Friedenbach
129b1f2736 f "CA: Add skeletal CAssetReissuance class illustrating fields" 2017-04-02 14:23:35 -04:00
Gregory Sanders
1524da3f7c confidential_transactions.py: remove erroneous set_trace, fix race 2017-04-02 14:23:35 -04:00
Gregory Sanders
988c0b9229 wallet.py begin re-activating 2017-04-02 14:23:35 -04:00
Gregory Sanders
09cc726ee3 Confidential Assets python testing 2017-04-02 14:23:35 -04:00
Gregory Sanders
43f3201217 Wallet: fix sendmany with assets 2017-04-02 14:21:30 -04:00
Gregory Sanders
f20f6899ad Wallet: fix more tx creation corner cases 2017-04-02 14:21:30 -04:00
Gregory Sanders
35d73e1e88 Wallet: add filter for listunspent, update help info 2017-04-02 14:21:30 -04:00
Gregory Sanders
9db5853407 Fix wallet accounting and txn construction corner cases 2017-04-02 14:21:30 -04:00
Gregory Sanders
e57480840c Wallet: fix rpc_wallet_tests 2017-04-02 14:21:30 -04:00
Gregory Sanders
2fd62b3bf2 fix txvalidationcache_tests 2017-04-02 14:21:30 -04:00
Gregory Sanders
139adcc292 fix rpc_tests for new serialization of explicit fees 2017-04-02 14:21:30 -04:00
Gregory Sanders
ef68c19d59 fix transaction_tests with assets and explicit fee output 2017-04-02 14:21:30 -04:00
Gregory Sanders
4bfbc318e4 More test fixes, reactivation 2017-04-02 14:21:30 -04:00
Gregory Sanders
8106c148ca fix blindtest 2017-04-02 14:21:30 -04:00
Gregory Sanders
858b1253d4 blind_tests: fixing 2017-04-02 14:21:30 -04:00
Gregory Sanders
23a487a174 BlindOutputs: fixup blinding check at end 2017-04-02 14:21:30 -04:00
Gregory Sanders
9b41064a0e BlindOutputs: simplify corner case logic 2017-04-02 14:21:30 -04:00
Gregory Sanders
4e49c307b0 Rangeproof commits to scriptpubkey 2017-04-02 14:21:30 -04:00
instagibbs
1d0fd6cc2c createrawtransaction: Add fee value to txn 2017-04-02 14:21:30 -04:00
instagibbs
47987d8f95 Use CAmountMap, 0 values fine 2017-04-02 14:21:30 -04:00
Jerzy Kozera
03d91e3198 Add assetlabel to help message about sendtoaddress 2017-04-02 14:21:30 -04:00
Gregory Sanders
0500764152 Fees are standard. 2017-04-02 14:21:30 -04:00
Gregory Sanders
9b7d5e2385 Issuance skeleton: show asset generation in decoderaw 2017-04-02 14:21:30 -04:00
Gregory Sanders
f97475b4e5 Allow arbitrary assets for fees 2017-04-02 14:21:30 -04:00
Gregory Sanders
5bd72c12fe Make sure coinbase has no fees 2017-04-02 14:21:30 -04:00
Gregory Sanders
1dd6efe64f Disallow 0-value fees 2017-04-02 14:21:30 -04:00
Gregory Sanders
35af9730f3 Move rest of CAmountMap stuff 2017-04-02 14:21:30 -04:00