Commit graph

11716 commits

Author SHA1 Message Date
Mark Friedenbach
2a0eda566a Tests: Disable bloom filter tests which depend on interaction between bitcoin serialization and Merkle blocks / bloom filters. These tests will have to be redone using elements-formatted blocks. 2017-04-02 14:23:35 -04:00
Gregory Sanders
f120b21baf GetWithdrawLockGenesisHash: break out asserts from computation 2017-04-02 14:23:35 -04:00
Gregory Sanders
09544893b8 calculate_contract: break out asserts from calculations 2017-04-02 14:23:35 -04:00
Gregory Sanders
e666b9eaf4 EvalScript: break out asserts from state changes 2017-04-02 14:23:35 -04:00
Gregory Sanders
9e10299f19 generate: assert split from state change 2017-04-02 14:23:35 -04:00
Gregory Sanders
882e07551b blindoutputs assert 2017-04-02 14:23:35 -04:00
Gregory Sanders
a17f01014d ATMP: Remove assertion from state mutation 2017-04-02 14:23:35 -04:00
Gregory Sanders
8cc75c7f00 BlindOutputs: break out asserts into checks only 2017-04-02 14:23:35 -04:00
Gregory Sanders
829f2023d5 VerifyAmounts: break out asserts into result checks only 2017-04-02 14:23:35 -04:00
Gregory Sanders
25b89f3eef BlindOutput: Surjection proof init may fail 2017-04-02 14:23:35 -04:00
Gregory Sanders
0047e32b8c FundTransaction: better estimate final tx size 2017-04-02 14:23:35 -04:00
Gregory Sanders
87acf4ebb6 gettxout: return 'valuecommitment' if value blinded 2017-04-02 14:23:35 -04:00
Gregory Sanders
2b81178f29 [upstream] Don't filter label-named RPC commands 2017-04-02 14:23:35 -04:00
Gregory Sanders
f86b32e80d getrawtransaction: scriptpubkey type is 'fee' 2017-04-02 14:23:35 -04:00
Karl-Johan Alm
8c15763b7f [elements-tx] Add ASSET argument to MutateTxAddOutScript instead of only allowing the bitcoin asset. 2017-04-02 14:23:35 -04:00
Karl-Johan Alm
cb0f11f297 [elements-tx] Add ASSET argument to MutateTxAddOutAddr instead of only allowing the bitcoin asset. 2017-04-02 14:23:35 -04:00
Anditto Heristyo
a83902e70a Add example to sendtoaddress, generateasset, signblock, combineblocksigs, dumpblindingkey, and importblindingkey 2017-04-02 14:23:35 -04:00
Karl-Johan Alm
9953939542 [rpc] Include amount blinding factor in ListTransactions. 2017-04-02 14:23:35 -04:00
Karl-Johan Alm
2187936045 [squashme] Typo. 2017-04-02 14:23:35 -04:00
Karl-Johan Alm
5540e825e6 [rpc] Include asset blinding factor in ListTransactions. 2017-04-02 14:23:35 -04:00
Karl-Johan Alm
306f1863a2 [rpc] listunspent: switch to using GetAssetIDFromString. 2017-04-02 14:23:35 -04:00
Karl-Johan Alm
93aed63cad [wallet] Add GetAssetIDFromString method to get an asset id from either an id or a label string. 2017-04-02 14:23:35 -04:00
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