yoshihide shimada
0064b03f39
Add Asset parameter to MutateTxAddOutData
2018-11-14 09:26:51 -05:00
Gregory Sanders
65ed777e6e
remove legacy peg-in/withdrawlocks
2017-11-06 09:51:45 -05:00
tdudz
d3a48d59e3
changed elements serialization to new style with no marker 0x00 byte and witness data at the end
2017-10-08 11:36:05 -04:00
Gregory Sanders
ae1f058433
Only use chainparams to access BITCOINID as pegged_asset
2017-08-24 14:30:35 -04:00
Gregory Sanders
6c4b6b9f04
remove unused value field in bitcoin-tx input addition
2017-06-16 12:02:36 -04:00
Gregory Sanders
984967c40e
Update wallet infrastructure to support blinding issuances
2017-06-16 12:02:35 -04:00
Mark Friedenbach
48751f33b6
use IsNull for CConfidentialNonce
2017-06-16 12:02:34 -04:00
Mark Friedenbach
4c8f785185
[Hard-Fork] CT/CA: Put the asset surjection proof, value range proof, and issuance rangeproofs under the witness commitment
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
690a403a6d
CT: CTxOutValue::IsAmount() -> CTxOutValue::IsExplicit()
2017-06-16 12:02:34 -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
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
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
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
Gregory Sanders
2f7a9a5846
Replace nTxFee with explicit output fees
2017-06-16 12:02:16 -04:00
Gregory Sanders
4f3f87649f
Wallet: Support arbitrary assets
2017-06-16 12:02:16 -04:00
Gregory Sanders
f9fd37cc8e
Consensus: Add asset type to CTxOut and validation
2017-06-16 12:02:15 -04:00
Eric Martindale
bdfe5e2e25
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-06-16 12:02:14 -04:00
Jonas Nick
afcdcf4fa8
Enable peginsign in tx tool
2017-06-15 14:31:26 -04:00
Matt Corallo
239bddd64f
Rename binaries and shared libraries
2017-06-15 14:31:25 -04:00
Matt Corallo
8cbec40bec
bitcoin-tx changes for blinded values
2017-06-15 14:30:12 -04:00
Luke Dashjr
b5f1b6dd38
Refactors in anticipation of blinded values
2017-06-15 14:20:38 -04:00
Matt Corallo
4ab8b0823a
Tweak SignatureChecker to expose a bit more about the transaction
2017-06-15 14:20:38 -04:00
Jorge Timón
a73073011e
[upstream #8994 ] Testchains: Generic selection with -chain=<str> in addition of -testnet and -regtest
2017-06-15 14:11:48 -04:00
Awemany
04c21afcdf
bitcoin-tx: Fix missing range check
...
The number of arguments is not checked MutateTxAddOutAddr(..), meaning
that
> ./bitcoin-tx -create outaddr=
accessed the vStrInputParts vector beyond its bounds.
This also includes work by jnewbery to check the inputs for
MutateTxAddPubKey()
Github-Pull: #10130
Rebased-From: eb66bf9bdd
2017-03-31 11:47:50 +02:00
Wladimir J. van der Laan
d5d4ad87af
Merge #8883 : Add all standard TXO types to bitcoin-tx
...
0c50909 testcases: explicitly specify transaction version 1 (John Newbery)
b7e144b Add test cases to test new bitcoin-tx functionality (jnewbery)
61a1534 Add all transaction output types to bitcoin-tx. (jnewbery)
1814b08 add p2sh and segwit options to bitcoin-tx outscript command (Stanislas Marion)
2017-01-12 12:24:35 +01:00
isle2983
27765b6403
Increment MIT Licence copyright header year on files modified in 2016
...
Edited via:
$ contrib/devtools/copyright_header.py update .
2016-12-31 11:01:21 -07:00
jnewbery
61a153443e
Add all transaction output types to bitcoin-tx.
...
This commit enhances bitcoin-tx so all remaining standard TXO types can be created:
- Pay to Pub Key
- Multi-sig
- bare multi-sig
- multi-sig in Pay To Script Hash
- multi-sig in Pay to Witness Script Hash
- multi-sig in Pay to Witness Script Hash, wrapped in P2SH
- Pay to Witness Pub Key Hash
- Pay to Witness Pub Key Hash, wrapped in P2SH
- Pay to Witness Script Hash
- Pay to Witness Script Hash, wrapped in P2SH
2016-12-29 15:40:40 +00:00
Stanislas Marion
1814b089fb
add p2sh and segwit options to bitcoin-tx outscript command
2016-12-29 15:40:40 +00:00
Matt Corallo
0cf86a6678
Introduce (and use) an IsArgSet accessor method
2016-12-23 21:30:16 -05:00
Pieter Wuille
f6fb7acda4
Move CTxInWitness inside CTxIn
2016-12-04 23:47:12 -08:00
Pieter Wuille
42fd8dee30
Make DecodeHexTx return a CMutableTransaction
2016-12-02 18:28:22 -08:00
Karl-Johan Alm
2f2625a0bb
Removed using namespace std from bitcoin-cli/-tx and added std:: in appropriate places.
2016-11-25 17:17:57 +09:00
Wladimir J. van der Laan
210891143b
Merge #8837 : allow bitcoin-tx to parse partial transactions
...
7451cf5 Allow bitcoin-tx to parse partial transactions (jnewbery)
2016-11-21 15:33:19 +01:00
UdjinM6
45d372f889
Missed one "return false" in recent refactoring in #9067
2016-11-10 00:53:55 +03:00
UdjinM6
bd0de1386e
Fix exit codes:
...
- `--help`, `--version` etc should exit with `0` i.e. no error ("not enough args" case should still trigger an error)
- error reading config file should exit with `1`
Slightly refactor AppInitRPC/AppInitRawTx to return standard exit codes (EXIT_FAILURE/EXIT_SUCCESS) or CONTINUE_EXECUTION (-1)
2016-11-04 18:40:33 +03:00
jnewbery
7451cf59cd
Allow bitcoin-tx to parse partial transactions
...
Restore pre V0.13.1 functionality to bitcoin-tx and allow it to parse 0-input partial transactions.
2016-11-04 09:10:44 +00:00
BtcDrak
b0aea80579
Sync bitcoin-tx with tx version policy
2016-10-16 23:22:15 +01:00
Jorge Timón
cdd79eb70f
C++11: s/boost::scoped_ptr/std::unique_ptr/
2016-09-01 19:05:07 +02:00
MarcoFalke
fa6dc9f0e5
Remove unused variables
2016-08-25 14:59:38 +02:00
NicolasDorier
745eb678ef
[RPC] signrawtransaction can sign P2WSH
2016-06-22 15:43:01 +02:00
Pieter Wuille
605e8473a7
BIP143: Signing logic
2016-06-22 15:43:01 +02:00
Pieter Wuille
2b1f6f9ccf
BIP141: Other consensus critical limits, and BIP145
...
Includes changes by Suhas Daftuar, Luke-jr, and mruddy.
2016-06-22 15:43:00 +02:00
Pieter Wuille
3dd410294d
BIP143: Verification logic
...
Includes simplifications by Eric Lombrozo.
2016-06-22 15:43:00 +02:00
Pieter Wuille
0ef1dd3e11
Refactor script validation to observe amounts
...
This is a preparation for BIP143 support.
2016-06-22 15:43:00 +02:00
Pieter Wuille
449f9b8deb
BIP141: Witness program
2016-06-22 15:42:59 +02:00