Commit graph

165 commits

Author SHA1 Message Date
Gregory Sanders
0ed009fbfd assettag -> assetcommitment 2017-04-02 14:30:01 -04:00
Mark Friedenbach
287421e031 TODO: Reminder to add issuance information to the JSON-RPC response 2017-04-02 14:30:01 -04:00
Mark Friedenbach
d081aeda5e f "CT: Turn CTxOut::vchNonceCommitment into a CConfidentialCommitment subclass" 2017-04-02 14:30:01 -04:00
Jorge Timón
fbde518eb3 f'DEMO ONLY: issuance skeleton' 2017-04-02 14:30:01 -04:00
Mark Friedenbach
22d1f49c0b [Hard-Fork] CT/CA: Put the asset surjection proof, value range proof, and issuance rangeproofs under the witness commitment 2017-04-02 14:30:01 -04:00
Mark Friedenbach
889a05fdd4 Segwit: Rename CTransaction::GetWitnessHash() -> CTransaction::GetHashWithWitness()
The upstream name of GetWitnessHash() is very confusing as it is not a hash of the witness data for the transaction, but rather a hash of the full serialization of the transaction including witness data. This goes beyond confusing to downright wrong with CT/CA where the witness hash will be a hash tree of witness data (rangeproofs, surjectionproofs, script signatures, etc.) and NOT have any transaction data.
2017-04-02 14:28:28 -04:00
Gregory Sanders
1ebbd1dcd6 Remove asset wildcard, make default behavior 2017-04-02 14:28:28 -04:00
Gregory Sanders
7fddf61e92 Allow FillOutputs to continue on failure to deblind output 2017-04-02 14:28:24 -04:00
Gregory Sanders
a144f600e8 Revamp BlindOutputs 2017-04-02 14:28:24 -04:00
Mark Friedenbach
cd6b2929c8 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-04-02 14:28:18 -04:00
Mark Friedenbach
7c35c08302 CT/CA: Unify CTxOutAsset and CTxOutValue into a single templated abstract base class 2017-04-02 14:28:18 -04:00
Mark Friedenbach
9db43d8b48 CT: Move CTxOutValue::vchNonceCommitment into CTxOut 2017-04-02 14:28:18 -04:00
Mark Friedenbach
203fa8f7a9 CT: Move CTxOutValue::vchRangeproof into CTxOut 2017-04-02 14:28:18 -04:00
Mark Friedenbach
96221efaab CT: CTxOutValue::IsAmount() -> CTxOutValue::IsExplicit() 2017-04-02 14:28:18 -04:00
Mark Friedenbach
e2077844f6 CA: CTxOutAsset::vchAssetTag -> CTxOutAsset::vchCommitment 2017-04-02 14:28:18 -04:00
Mark Friedenbach
343bf9176f CA: CTxOutAsset::IsAsset() -> CTxOutAsset::IsExplicit() 2017-04-02 14:28:18 -04:00
Mark Friedenbach
8135667a12 CA: CTxOutAsset::IsAssetCommitment() -> CTXOutAsset::IsCommitment() 2017-04-02 14:28:18 -04:00
Mark Friedenbach
944d602526 CA: Switch CTxOutAsset::GetAssetID() to return a constant reference to the stored asset ID rather than perform unnecessary memory reallocation. 2017-04-02 14:28:18 -04:00
Mark Friedenbach
83456d6037 CA: CAssetID -> CAsset 2017-04-02 14:28:18 -04:00
Mark Friedenbach
6e8f1b7247 CA: uint256 -> CAssetID 2017-04-02 14:25:06 -04:00
Gregory Sanders
9e10299f19 generate: assert split from state change 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
Anditto Heristyo
a83902e70a Add example to sendtoaddress, generateasset, signblock, combineblocksigs, dumpblindingkey, and importblindingkey 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
43f3201217 Wallet: fix sendmany with assets 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
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
d9ab0e3edf Replace nTxFee with explicit output fees 2017-04-02 14:21:30 -04:00
Gregory Sanders
589761f799 DEMO ONLY: issuance skeleton 2017-04-02 14:21:30 -04:00
Gregory Sanders
029f222b60 SendFrom: Remove 2017-04-02 14:18:27 -04:00
Gregory Sanders
9ed0174ab5 Wallet: Support arbitrary assets 2017-04-02 14:18:27 -04:00
Gregory Sanders
05bc6db085 Consensus: Add asset type to CTxOut and validation 2017-04-02 14:05:25 -04:00
Gregory Sanders
58164875aa Correctly unblind outputs in FillOutputBlinds 2017-03-15 09:33:46 -04:00
Gregory Sanders
528e5469a0 new createblindedaddress call to gen CT address 2017-03-09 10:16:57 -05:00
Jorge Timón
8736efe758 DOWN: fixup! Unused tip on getblockchaininfo 2017-02-02 10:59:11 -05:00
Gregory Sanders
424a85fcdd Detect mainchain cookie auth using datadir checking, not mapArgs 2017-02-02 10:59:01 -05:00
Eric Martindale
1150d0e9fc Add IFDEF around blind transactions 2017-02-02 10:59:01 -05:00
Eric Martindale
01d7915bb7 Migrate project naming from "Beta" to "Elements"
Note: this also changes the CHAINPARAMS_ELEMENTS constant!  The new
network name is simply `elements`, and similarly regtest is now
`elementsregtest`
2017-02-02 10:59:01 -05:00
instagibbs
cc272afff1 Regtest generate sends fees to wallet 2017-02-02 10:58:57 -05:00
instagibbs
ef891a13a5 add testproposedblock rpc call 2017-02-02 10:58:57 -05:00
instagibbs
c136e0ac78 Enforce all ISM upgrades immediately 2017-02-02 10:58:56 -05:00
instagibbs
e637e5a5da block header commits to height 2017-02-02 10:58:56 -05:00
instagibbs
2e0973a4b3 added functions to rpc logging 2017-02-02 10:58:55 -05:00
instagibbs
2a34dbdaa5 Introduce user getter to avoid null pointers 2017-02-02 10:58:55 -05:00
instagibbs
5412a584f4 Add thread-local storage of rpc username 2017-02-02 10:58:55 -05:00