aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoin-tx.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Switch to libsecp256k1-based validation for ECDSAPieter Wuille2015-11-151-2/+8
|
* constify missing catch casesPhilip Kaufmann2015-10-271-1/+1
| | | | - ensure all missing catch cases are constant where possible
* Merge pull request #6846Wladimir J. van der Laan2015-10-221-1/+1
|\ | | | | | | 3cb56f3 *: alias -h for --help (Daniel Cousens)
| * *: alias -h for --helpDaniel Cousens2015-10-221-1/+1
| |
* | Merge pull request #6235Wladimir J. van der Laan2015-10-201-4/+5
|\ \ | |/ |/| | | | | 55a8975 Chainparams: Translations: DRY: options and error strings (Jorge Timón) f3525e2 Chainparams: Replace CBaseChainParams::Network enum with string constants (suggested by Wladimir) (Jorge Timón)
| * Chainparams: Translations: DRY: options and error stringsJorge Timón2015-10-201-4/+5
| | | | | | | | Also remove SelectBaseParamsFromCommandLine and SelectParamsFromCommandLine
* | [Univalue] add univalue over subtreeJonas Schnelli2015-10-011-1/+1
| | | | | | | | similar to secp256k1 include and compile univalue over a subtree
* | Merge pull request #5264Wladimir J. van der Laan2015-09-251-2/+2
|\ \ | |/ |/| | | af3208b Resolve issue 3166. These changes decode valid SIGHASH types on signatures in assembly (asm) representations of scriptSig scripts. This squashed commit incorporates substantial helpful feedback from jtimon, laanwj, and sipa. (mruddy)
| * Resolve issue 3166.mruddy2015-07-301-2/+2
| | | | | | | | | | These changes decode valid SIGHASH types on signatures in assembly (asm) representations of scriptSig scripts. This squashed commit incorporates substantial helpful feedback from jtimon, laanwj, and sipa.
* | Add support for data-based outputs (OP_RETURN) to bitcoin-tx.Pavel Janík2015-08-061-0/+32
|/
* Avoid leaking file descriptors in RegisterLoadCasey Rodarmor2015-07-281-3/+4
| | | | | This is pretty trivial, but if there's an error here we'll leak a file descriptor. Changed it to always close the file.
* Policy: MOVEONLY: Create policy/policy.h with some constantsJorge Timón2015-06-261-0/+1
|
* UniValue: prefer .size() to .count(), to harmonize w/ existing treeJeff Garzik2015-06-041-2/+2
|
* Merge pull request #6047Wladimir J. van der Laan2015-05-061-1/+12
|\ | | | | | | | | a56054b Update key.cpp to use new libsecp256k1 (Pieter Wuille) a591d98 Squashed 'src/secp256k1/' changes from 1897b8e..22f60a6 (Pieter Wuille)
| * Update key.cpp to use new libsecp256k1Pieter Wuille2015-05-041-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libsecp256k1's API changed, so update key.cpp to use it. Libsecp256k1 now has explicit context objects, which makes it completely thread-safe. In turn, keep an explicit context object in key.cpp, which is explicitly initialized destroyed. This is not really pretty now, but it's more efficient than the static initialized object in key.cpp (which made for example bitcoin-tx slow, as for most of its calls, libsecp256k1 wasn't actually needed). This also brings in the new blinding support in libsecp256k1. By passing in a random seed, temporary variables during the elliptic curve computations are altered, in such a way that if an attacker does not know the blind, observing the internal operations leaks less information about the keys used. This was implemented by Greg Maxwell.
* | Merge pull request #6022Wladimir J. van der Laan2015-04-301-2/+0
|\ \ | | | | | | | | | b74dcb3 Separate CTranslationInterface from CClientUIInterface (Jorge Timón)
| * | Separate CTranslationInterface from CClientUIInterfaceJorge Timón2015-04-161-2/+0
| |/
* / Consensus: Create consensus/consensus.h with some constantsjtimon2015-04-201-4/+4
|/
* Help messages correctly formatted (79 chars)Luca Venturini2015-03-101-27/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | Help messages are formatted programmatically with FormatParagraph in order not to break existing strings in Transifex. The new format works even if the translation of the strings modifies the lenght of the message. Sqashed 6 commits in a single one. Help messages correctly formatted for SVGA text mode (132 chars) Help messages are formatted programmatically with FormatParagraph in order not to break existing strings in Transifex. The new format should work even if the translation of the strings modifies the lenght of the message. Fix - syntax error Correct formatting for 79 chars Correctly based on C++ functions Removed spare spaces from option strings Fix - syntax error
* Avoid storing a reference passed to SignatureChecker constructorsPieter Wuille2015-02-021-1/+1
|
* Use separate SignatureChecker for CMutableTransactionPieter Wuille2015-02-021-1/+1
|
* Merge pull request #5513Wladimir J. van der Laan2015-01-061-2/+1
|\ | | | | | | | | | | 856e862 namespace: drop most boost namespaces and a few header cleanups (Cory Fields) 9b1ab86 namespace: drop boost::assign altogether here (Cory Fields) a324199 namespace: remove boost namespace pollution (Cory Fields)
| * namespace: drop most boost namespaces and a few header cleanupsCory Fields2015-01-021-2/+1
| | | | | | | | A few boost::asio were left around because they're very wordy otherwise.
* | String conversions uint256 -> uint256SWladimir J. van der Laan2015-01-051-1/+1
| | | | | | | | | | | | | | If uint256() constructor takes a string, uint256(0) will become dangerous when uint256 does not take integers anymore (it will go through std::string(const char*) making a NULL string, and the explicit keyword is no help).
* | Replace direct use of 0 with SetNull and IsNullWladimir J. van der Laan2015-01-051-2/+2
|/ | | | | | Replace x=0 with .SetNull(), x==0 with IsNull(), x!=0 with !IsNull(). Replace uses of uint256(0) with uint256().
* bitcoin-tx: Refer to the JSON fields rather than the whole objectEric R. Schulz2014-12-231-2/+2
|
* bitcoin-tx: Fix JSON validation of prevtxsEric R. Schulz2014-12-221-1/+1
|
* Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* Merge pull request #5470Wladimir J. van der Laan2014-12-191-1/+1
|\ | | | | | | 78253fc Remove references to X11 licence (Michael Ford)
| * Remove references to X11 licenceMichael Ford2014-12-161-1/+1
| |
* | make all catch() arguments constPhilip Kaufmann2014-12-171-4/+4
|/ | | | | | | - I saw this on http://en.cppreference.com/w/cpp/language/try_catch and thought it would be a good idea - also unify used format to better be able to search for exception uses in our codebase
* Merge pull request #5181Wladimir J. van der Laan2014-12-051-1/+3
|\ | | | | | | afd4b94 Move CMerkleBlock and CPartialMerkleTree to their own file (Matt Corallo)
| * Move CMerkleBlock and CPartialMerkleTree to their own fileMatt Corallo2014-12-051-1/+3
| |
* | Merge pull request #5207Wladimir J. van der Laan2014-12-051-0/+10
|\ \ | |/ |/| | | 8487790 bitcoin-tx: Add the "-txid" option. Also add the hex-encoded transaction to the JSON output as the "hex" property. (mruddy)
| * bitcoin-tx: Add the "-txid" option. Also add the hex-encoded transaction to ↵mruddy2014-11-041-0/+10
| | | | | | | | the JSON output as the "hex" property.
* | MOVEONLY: core/ -> primitives/Luke Dashjr2014-12-031-1/+1
|/
* Separate protocol versioning from clientversionCory Fields2014-10-291-0/+1
|
* MOVEONLY: Separate CTransaction and dependencies from corejtimon2014-10-271-1/+1
|
* Merge pull request #4834Pieter Wuille2014-10-081-11/+9
|\ | | | | | | | | | | | | | | 7c70438 Get rid of the dummy CCoinsViewCache constructor arg (Pieter Wuille) ed27e53 Add coins_tests with a large randomized CCoinViewCache test. (Pieter Wuille) 058b08c Do not keep fully spent but unwritten CCoins entries cached. (Pieter Wuille) c9d1a81 Get rid of CCoinsView's SetCoins and SetBestBlock. (Pieter Wuille) f28aec0 Use ModifyCoins instead of mutable GetCoins. (Pieter Wuille)
| * Get rid of the dummy CCoinsViewCache constructor argPieter Wuille2014-09-241-1/+1
| |
| * Use ModifyCoins instead of mutable GetCoins.Pieter Wuille2014-09-231-10/+8
| | | | | | | | | | | | | | | | | | Replace the mutable non-copying GetCoins method with a ModifyCoins, which returns an encapsulated iterator, so we can keep track of concurrent modifications (as iterators can be invalidated by those) and run cleanup code after a modification is finished. This also removes the overloading of the 'GetCoins' name.
* | Make signature cache optionalPieter Wuille2014-10-021-1/+1
| |
* | Use a typedef for monetary valuesMark Friedenbach2014-09-261-2/+2
|/
* Merge pull request #4555Wladimir J. van der Laan2014-09-171-1/+1
|\ | | | | | | | | | | | | 6dcfda2 Don't pass nHashType to EvalScript nor CheckSig (jtimon) 2b23a87 Don't pass nHashType to VerifyScript (jtimon) ce3649fb Remove CScriptCheck::nHashType (was always 0) (jtimon) 358562b Remove unused function main:VerifySignature (jtimon)
| * Don't pass nHashType to VerifyScriptjtimon2014-09-121-1/+1
| |
* | Move CTxDestination from script/script to script/standardPieter Wuille2014-09-161-3/+2
| |
* | Merge pull request #4911Pieter Wuille2014-09-161-6/+7
|\ \ | | | | | | | | | 611116d header include cleanup (Philip Kaufmann)
| * | header include cleanupPhilip Kaufmann2014-09-141-6/+7
| |/ | | | | | | - ensures alphabetical ordering for includes etc. in source file headers
* / Bugfix: bitcoin-tx: scriptPubKey may be null, so accept outscript=<n>:Luke Dashjr2014-09-141-2/+1
|/
* Merge pull request #4822Pieter Wuille2014-09-101-3/+3
|\ | | | | | | 629d75f Combine CCoinsViewCache's HaveCoins and const GetCoins into AccessCoins. (Pieter Wuille)