Mark Friedenbach
081b83229e
CA: hashAssetIdentifier -> assetEntropy
2017-06-16 12:02:33 -04:00
Mark Friedenbach
a25f6c6e08
CA: CAssetID -> CAsset
2017-06-16 12:02:33 -04:00
Mark Friedenbach
892cb984ae
CA: uint256 -> CAssetID
2017-06-16 12:02:33 -04:00
Mark Friedenbach
6a23fa3950
2WP: Remove residual traces of bitcoin serialization from src/primitives/transaction*
2017-06-16 12:02:33 -04:00
Gregory Sanders
755cefb173
BlindOuputs succeeds if no blinding known/attempted
2017-06-16 12:02:33 -04:00
Mark Friedenbach
28c7d34f77
2WP: Separate mainchain and sidechain data structures into different classes, with the bitcoin data structures living in the src/primitives/bitcoin subdirectory.
2017-06-16 12:02:32 -04:00
Mark Friedenbach
0f22bbf046
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-06-16 12:02:18 -04:00
Gregory Sanders
eb5a6d1329
GetWithdrawLockGenesisHash: break out asserts from computation
2017-06-16 12:02:18 -04:00
Gregory Sanders
9aa92db6e1
calculate_contract: break out asserts from calculations
2017-06-16 12:02:18 -04:00
Gregory Sanders
28c65e9695
EvalScript: break out asserts from state changes
2017-06-16 12:02:18 -04:00
Gregory Sanders
26747fd0c5
generate: assert split from state change
2017-06-16 12:02:18 -04:00
Gregory Sanders
6fe3b5222c
blindoutputs assert
2017-06-16 12:02:18 -04:00
Gregory Sanders
d650674bca
ATMP: Remove assertion from state mutation
2017-06-16 12:02:18 -04:00
Gregory Sanders
a93c0279bf
BlindOutputs: break out asserts into checks only
2017-06-16 12:02:18 -04:00
Gregory Sanders
29b8fe161b
VerifyAmounts: break out asserts into result checks only
2017-06-16 12:02:18 -04:00
Gregory Sanders
8ab5a89f71
BlindOutput: Surjection proof init may fail
2017-06-16 12:02:18 -04:00
Gregory Sanders
d3c966d7cd
FundTransaction: better estimate final tx size
2017-06-16 12:02:18 -04:00
Gregory Sanders
bbe3bfb293
gettxout: return 'valuecommitment' if value blinded
2017-06-16 12:02:18 -04:00
Gregory Sanders
2f5f1b3c20
[merged PR #9894 ] don't filter label-named rpc commands
2017-06-16 12:02:18 -04:00
Gregory Sanders
51a03610a0
getrawtransaction: scriptpubkey type is 'fee'
2017-06-16 12:02:18 -04:00
Karl-Johan Alm
9d1523b0c2
[elements-tx] Add ASSET argument to MutateTxAddOutScript instead of only allowing the bitcoin asset.
2017-06-16 12:02:18 -04:00
Karl-Johan Alm
49b6ad9a5a
[elements-tx] Add ASSET argument to MutateTxAddOutAddr instead of only allowing the bitcoin asset.
2017-06-16 12:02:18 -04:00
Anditto Heristyo
24bc7f26dc
Add example to sendtoaddress, generateasset, signblock, combineblocksigs, dumpblindingkey, and importblindingkey
2017-06-16 12:02:18 -04:00
Karl-Johan Alm
db66dd03d1
[rpc] Include amount blinding factor in ListTransactions.
2017-06-16 12:02:18 -04:00
Karl-Johan Alm
1ae030aa16
[squashme] Typo.
2017-06-16 12:02:18 -04:00
Karl-Johan Alm
99dc60f8d1
[rpc] Include asset blinding factor in ListTransactions.
2017-06-16 12:02:18 -04:00
Karl-Johan Alm
9d4b9691fa
[rpc] listunspent: switch to using GetAssetIDFromString.
2017-06-16 12:02:18 -04:00
Karl-Johan Alm
da36309317
[wallet] Add GetAssetIDFromString method to get an asset id from either an id or a label string.
2017-06-16 12:02:17 -04:00
Karl-Johan Alm
3832bd46e0
[rpc] listunspent: clarify that the asset type matters for default case, and do some formatting fixes.
2017-06-16 12:02:17 -04:00
Karl-Johan Alm
cff526d387
[rpc] createrawtransaction: Fix docs and rename nValue to amount, to match utxo dictionaries.
2017-06-16 12:02:17 -04:00
Karl-Johan Alm
9ffa0c67fa
[doc] HelpExampleCLI should use the right binary name.
2017-06-16 12:02:17 -04:00
Gregory Sanders
e757c31481
UnblindOutput: belt and suspenders check for all-blinded output
2017-06-16 12:02:17 -04:00
Gregory Sanders
eccff6b060
Refactor verifyamounts to accept all 4 (un)blinded configurations
2017-06-16 12:02:17 -04:00
Mark Friedenbach
3836bad390
CA: Add implementation of asset derivation functions.
2017-06-16 12:02:17 -04:00
Mark Friedenbach
31db963aef
CA: Add header definitions for asset tag derivation functions.
2017-06-16 12:02:17 -04:00
Mark Friedenbach
3518ae82d6
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-06-16 12:02:17 -04:00
Mark Friedenbach
29ad41dd56
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-06-16 12:02:17 -04:00
Gregory Sanders
cc49c12e0a
Explicit fee outputs: remove extra vData
2017-06-16 12:02:17 -04:00
Mark Friedenbach
fcfcfa7d09
CA: Handle serialization of CAssetIssuance on coinbases correctly.
2017-06-16 12:02:17 -04:00
Mark Friedenbach
a26a684371
CA: Add constructor for CAssetIssuance.
2017-06-16 12:02:17 -04:00
Mark Friedenbach
a6e610307e
CA: Switch to inflation-only issuance, unifying CAssetGeneration and CAssetReissuance in the process, and making serialization simpler overall.
2017-06-16 12:02:17 -04:00
Mark Friedenbach
17075960bc
CA: Remove the issuance/reissuance vectors from CTransaction which are no longer used with the new serialization scheme.
2017-06-16 12:02:17 -04:00
Mark Friedenbach
a6e9b224a5
CA: Add CAssetGeneration and CAssetReissuance fields with serialization
2017-06-16 12:02:17 -04:00
Mark Friedenbach
0061285e0f
[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-06-16 12:02:17 -04:00
Mark Friedenbach
bdc49c987f
[Move Only] Put the asset definitions after COutPoint
2017-06-16 12:02:17 -04:00
Mark Friedenbach
f45ad32e01
[Move Only] Move CAssetGeneration and CAssetReissuance up above CTxIn because that is where they are going to be used.
2017-06-16 12:02:17 -04:00
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