Mark Friedenbach
5ced151f4b
CA: Remove TODO note that has already been done
2017-06-16 12:02:34 -04:00
Mark Friedenbach
d2d0fd02fa
CT: Don't assume size of a serialized pubkey (removes a magic number).
2017-06-16 12:02:34 -04:00
Mark Friedenbach
88a31dff93
CT/CA: Enforce validity of confidential commitments via CConfidentialCommitment::IsValid()
2017-06-16 12:02:34 -04:00
Mark Friedenbach
58c21ae15c
CT: Turn CTxOut::vchNonceCommitment into a CConfidentialCommitment subclass
...
Note: This changes the serialization of the nonce commitment, from an arbitrary length vector to an either 1 (null) or 33 (commitment) byte fixed format.
2017-06-16 12:02:34 -04:00
Mark Friedenbach
a2c0f11f8e
CT/CA: Unify CTxOutAsset and CTxOutValue into a single templated abstract base class
2017-06-16 12:02:34 -04:00
Mark Friedenbach
9ebe6371a1
CT: Move CTxOutValue::vchNonceCommitment into CTxOut
2017-06-16 12:02:34 -04:00
Mark Friedenbach
515bed6331
CT: Move CTxOutValue::vchRangeproof into CTxOut
2017-06-16 12:02:34 -04:00
Mark Friedenbach
2103355a30
CA: Move CTxOutAsset::vchSurjectionproof into CTxOut
2017-06-16 12:02:34 -04:00
Mark Friedenbach
690a403a6d
CT: CTxOutValue::IsAmount() -> CTxOutValue::IsExplicit()
2017-06-16 12:02:34 -04:00
Mark Friedenbach
6d3406185f
CA: CTxOutAsset::vchAssetTag -> CTxOutAsset::vchCommitment
2017-06-16 12:02:34 -04:00
Mark Friedenbach
37230ccc1b
CA: CTxOutAsset::IsAsset() -> CTxOutAsset::IsExplicit()
2017-06-16 12:02:34 -04:00
Mark Friedenbach
b1d487d3e7
CA: CTxOutAsset::IsAssetCommitment() -> CTXOutAsset::IsCommitment()
2017-06-16 12:02:33 -04:00
Jorge Timón
0f79b488a2
fixup! CA: Use fee asset instead of BITCOINID
2017-06-16 12:02:33 -04:00
Jorge Timón
745194e5b7
CA: Introduce -feeasset option
2017-06-16 12:02:33 -04:00
Mark Friedenbach
fbee09383d
CA: Remove unnecessary return statment after exception throw
2017-06-16 12:02:33 -04:00
Mark Friedenbach
21ecd834d7
CT: Remove residual code using the Elements alpha serialization prefixes
2017-06-16 12:02:33 -04:00
Mark Friedenbach
8e288cbb66
CA: Standardize prefixes so that value and asset commitments use the same constant values for null/empty and explicit values.
2017-06-16 12:02:33 -04:00
Mark Friedenbach
ba3926500f
CA: Remove CAsset::ToString() as it is exactly identical in implementation to CAsset::GetHex(), and GetHex() more clearly matches up with the actual semantics.
2017-06-16 12:02:33 -04:00
Mark Friedenbach
9897078ec8
CA: Switch to CAsset::SetNull() API instead of assignment & default constructor.
2017-06-16 12:02:33 -04:00
Mark Friedenbach
0cf9d89441
CA: Switch to standard CAsset::IsNull() API instead of comparing against CAset()
2017-06-16 12:02:33 -04:00
Mark Friedenbach
4344ec6a53
CA: Change CAsset from a typedef of uint256 into its own class, so that it has stictly enforced semantics about its usage/API.
2017-06-16 12:02:33 -04:00
Mark Friedenbach
8b2cb06617
CA: Switch CTxOutAsset::GetAssetID() to return a constant reference to the stored asset ID rather than perform unnecessary memory reallocation.
2017-06-16 12:02:33 -04:00
Gregory Sanders
c8307f5f58
CA: fixup! Make CWallet::mapAssetLabels and CWallet::mapAssets private
2017-06-16 12:02:33 -04:00
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