Gregory Sanders
05bc6db085
Consensus: Add asset type to CTxOut and validation
2017-04-02 14:05:25 -04:00
Mark Friedenbach
1dcf7ff761
[Hard Fork] CT: Swap meaning of serialization byte for explicit outputs
...
Previously 0 was explicit and 1 was original bitcoin format. This has been reversed such that the original bitcoin format is 0 and the new explicit format is 1.
This is by no means a necessary change, but it is a navel gazing fix that might as well be included since the format is changing anyway to allow compact explicit amounts.
2017-04-02 14:05:25 -04:00
Mark Friedenbach
6427ee14da
[Hard Fork] CT: Resize vchCommitment based on type (explicit or committed)
...
Previously all outputs had a fixed size (33 byte) commitment field.
With this change, explicit / unblinded outputs are serialized to 9 bytes,
saving 24 bytes of transaction space per explicit output.
2017-04-02 14:05:25 -04:00
Karl-Johan Alm
58db3a1e84
Uses built-in byte swap if available (Apple) and if bswap_XX is undefined.
...
Defers to pre-defined version if found (e.g. protobuf). For protobuf case, the definitions are identical and thus include order should not affect results.
Github-Pull: #9366
Rebased-From: 815f4148b2
2017-02-02 10:59:11 -05:00
Gregory Sanders
1d7134881c
New address prefix: CTE
2017-02-02 10:59:07 -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
d81e6a69b8
Tests for new opcodes
2017-02-02 10:59:01 -05:00
Jonas Nick
bb1f44f8a6
QA: Allow setting the fedpeg script with a command line argument
...
- In both default and regtest modes
- The script is stored
- BaseSignatureChecker is used to pass it to the interpreter
Modified by jtimon
2017-02-02 10:59:00 -05:00
Jorge Timón
e2aef80ab8
Preparations: Pass mapArgs to CChainParams::Factory
2017-02-02 10:59:00 -05:00
instagibbs
33609ed3ea
Multithreaded amount commitment and range proof checking
2017-02-02 10:58:56 -05:00
instagibbs
56aa82fc2d
Move amount verification to main
2017-02-02 10:58:56 -05:00
instagibbs
21914204c2
FIXME: Unit tests compile and pass
2017-02-02 10:58:56 -05:00
instagibbs
ba699771dc
Add basic testing of blinding caching functionality in wallet
2017-02-02 10:58:56 -05:00
instagibbs
e637e5a5da
block header commits to height
2017-02-02 10:58:56 -05:00
Pieter Wuille
670e7fb32e
Range proofs in witness
2017-02-02 10:58:51 -05:00
instagibbs
f2538b9530
Added testing of mainchain withdraw tx tracking
2017-02-02 10:58:50 -05:00
instagibbs
f49fc5318d
Reactivated rpc_rawparams (TODO: Split into appropriate squashes)
2017-02-02 10:58:50 -05:00
instagibbs
95900548d3
Basic locked utxo testing
2017-02-02 10:58:50 -05:00
Matt Corallo
4d2379f5ac
Rename binaries and shared libraries
2017-02-02 10:58:49 -05:00
Pieter Wuille
9bfc2c813d
Better algorithm for determining whether a dummy output is needed
2017-02-02 10:58:49 -05:00
Matt Corallo
7ab3826dd1
Add blinding transaction-creation code
2017-02-02 10:58:48 -05:00
Luke Dashjr
438b0d89ae
Consensus support for blinded amounts
2017-02-02 10:58:48 -05:00
Luke Dashjr
3ad6bbe651
Refactors in anticipation of blinded values
2017-02-02 10:58:48 -05:00
Matt Corallo
3e00c9084c
Require input values in createrawtransaction
2017-02-02 10:58:48 -05:00
Matt Corallo
49f24bc6e2
Add explicit fee field to transaction
2017-02-02 10:58:48 -05:00
Matt Corallo
0663a9bf9f
No subsidy, 21 million genesis block
2017-02-02 10:58:48 -05:00
Matt Corallo
3db5ff1e03
Add removeForBlock-withdraws test
2017-02-02 10:58:48 -05:00
Matt Corallo
54f981de1f
Keep mempool consistent after conflicting withdraw-spent
2017-02-02 10:58:47 -05:00
Matt Corallo
79d422acfa
Add withdraw-claimed tracking to mempool and enforce it
2017-02-02 10:58:47 -05:00
Matt Corallo
9f3c9ad5ad
Add withdraw-spent to CCoinsView/utxodb
...
Allows CCoinsCacheEntry/CCoinsMap entries to either be a CCoins
or, by setting a flag in the map key, a withdraw output from a
chain from which withdraw proofs are allowed to move to this
chain from.
2017-02-02 10:58:47 -05:00
Matt Corallo
6c945bea44
Tweak SignatureChecker to expose a bit more about the transaction
2017-02-02 10:58:47 -05:00
Matt Corallo
f0327ad6f1
Re-add support for bitcoin headers/proofs in sidechain validation
2017-02-02 10:58:47 -05:00
instagibbs
49002b0a92
Implement basic private chain mode
2017-02-02 10:58:47 -05:00
jtimon
911294c696
Refactors in anticipation of private chain mode
2017-02-02 10:58:43 -05:00
Jorge Timón
568827dce1
Elements: Start Alpha
2016-11-01 11:48:16 -04:00
Jorge Timón
28c3d990e6
Elements: Remove testnet3
2016-11-01 11:48:16 -04:00
Jorge Timón
d16d076053
Checkpoints: The hash of the genesis block it's the genesis checkpoint and chain id
2016-11-01 11:48:16 -04:00
Matt Corallo
595f6bda3a
Chainparams: Get rid of CChainParams& Params(std::string)
2016-11-01 11:48:16 -04:00
Johnson Lau
fef7b46841
test segwit uncompressed key fixes
...
Github-Pull: #8499
Rebased-From: 9260085377
2016-10-17 14:16:08 +02:00
Johnson Lau
821f3e6751
Require compressed keys in segwit as policy and disable signing with uncompressed keys for segwit scripts
...
Github-Pull: #8499
Rebased-From: 4c0c25a604
2016-10-17 14:10:58 +02:00
jonnynewbs
bcf3806f4c
Update bitcoin-tx to output witness data.
...
Github-Pull: #8817
Rebased-From: 4408558843
2016-10-13 20:35:33 +02:00
Pieter Wuille
fe1975a974
Use cmpctblock type 2 for segwit-enabled transfer
...
Contains version negotiation logic by Matt Corallo and bugfixes by
Suhas Daftuar.
Github-Pull: #8393
Rebased-From: 6aa28abf53
2016-10-13 20:15:17 +02:00
Johnson Lau
3e80ab7f2a
Add policy: null signature for failed CHECK(MULTI)SIG
...
Github-Pull: #8634
Rebased-From: e41bd449ab
2016-10-13 20:01:46 +02:00
Johnson Lau
0027672c80
Make non-minimal OP_IF/NOTIF argument non-standard for P2WSH
...
Github-Pull: #8526
Rebased-From: c72c5b1e3b
2016-10-13 20:01:45 +02:00
jnewbery
eb18cc1272
bitcoin-util-test.py should fail if the output file is empty
...
Github-Pull: #8836
Rebased-From: da94697708
2016-10-03 10:56:41 +02:00
jnewbery
2a8bca465d
Add bitcoin-tx JSON tests
...
Github-Pull: #8829
Rebased-From: 54e5d7c1b8
2016-10-03 10:55:07 +02:00
Pieter Wuille
ff893aa557
Implement SipHash in Python
...
Github-Pull: #8418
Rebased-From: 9c8593d2b4
2016-09-26 16:46:56 +02:00
Pieter Wuille
30eac2d79a
Use a signal to continue init after genesis activation
...
Github-Pull: #8392
Rebased-From: 0fd2a33648
2016-09-21 02:43:47 +00:00
Chris Stewart
9b0097976f
Update README.md
...
Updating documentation for adding new unit test files
Removing unneeded sentence from README
Removing uint160_tests.cpp as it DNE
Formatting command line instructions to use ``
fixing 80 char formatting issue in README
fixing more nits
Github-Pull: #8428
Rebased-From: b8db185952
2016-09-21 02:43:47 +00:00
Suhas Daftuar
a7aa3ccc4f
Enable size accounting in mining unit tests
...
Github-Pull: #8419
Rebased-From: 8bfd70817b
2016-09-21 02:43:47 +00:00