Pieter Wuille
0c8ea6380c
Abstract out IsSolvable from Witnessifier
7 years ago
Akira Takizawa
595a7bab23
Increment MIT Licence copyright header year on files modified in 2017
7 years ago
MeshCollider
1a445343f6
scripted-diff: Replace #include "" with #include <> (ryanofsky)
...
-BEGIN VERIFY SCRIPT-
for f in \
src/*.cpp \
src/*.h \
src/bench/*.cpp \
src/bench/*.h \
src/compat/*.cpp \
src/compat/*.h \
src/consensus/*.cpp \
src/consensus/*.h \
src/crypto/*.cpp \
src/crypto/*.h \
src/crypto/ctaes/*.h \
src/policy/*.cpp \
src/policy/*.h \
src/primitives/*.cpp \
src/primitives/*.h \
src/qt/*.cpp \
src/qt/*.h \
src/qt/test/*.cpp \
src/qt/test/*.h \
src/rpc/*.cpp \
src/rpc/*.h \
src/script/*.cpp \
src/script/*.h \
src/support/*.cpp \
src/support/*.h \
src/support/allocators/*.h \
src/test/*.cpp \
src/test/*.h \
src/wallet/*.cpp \
src/wallet/*.h \
src/wallet/test/*.cpp \
src/wallet/test/*.h \
src/zmq/*.cpp \
src/zmq/*.h
do
base=${f%/*}/ relbase=${base#src/} sed -i "s:#include \"\(.*\)\"\(.*\):if test -e \$base'\\1'; then echo \"#include <\"\$relbase\"\\1>\\2\"; else echo \"#include <\\1>\\2\"; fi:e" $f
done
-END VERIFY SCRIPT-
7 years ago
Pieter Wuille
c091b99379
Implement BIP173 addresses and tests
7 years ago
practicalswift
aa95947ded
Use the override specifier (C++11) where we expect to be overriding the virtual function of a base class
7 years ago
Jorge Timón
5995735c5b
scripted-diff: Remove #include <boost/foreach.hpp>
...
-BEGIN VERIFY SCRIPT-
sed -i ':a;N;$!ba;s/#include <boost\/foreach.hpp>\n//' ./src/*.h ./src/*.cpp ./src/*/*.h ./src/*/*.cpp ./src/*/*/*.h ./src/*/*/*.cpp
-END VERIFY SCRIPT-
7 years ago
Jorge Timón
7c00c26726
scripted-diff: Fully remove BOOST_FOREACH
...
-BEGIN VERIFY SCRIPT-
sed -i 's/BOOST_FOREACH *(\(.*\),/for (\1 :/' ./src/*.h ./src/*.cpp ./src/*/*.h ./src/*/*.cpp ./src/*/*/*.h ./src/*/*/*.cpp ;
-END VERIFY SCRIPT-
7 years ago
practicalswift
90593ed92c
Limit variable scope
7 years ago
practicalswift
5a9b508279
[trivial] Add end of namespace comments
7 years ago
Karl-Johan Alm
8cbfc4e472
Refactor: Remove using namespace <xxx> from script/
7 years ago
Pieter Wuille
f6fb7acda4
Move CTxInWitness inside CTxIn
8 years ago
Johnson Lau
4c0c25a604
Require compressed keys in segwit as policy and disable signing with uncompressed keys for segwit scripts
8 years ago
Pieter Wuille
605e8473a7
BIP143: Signing logic
8 years ago
Pieter Wuille
3dd410294d
BIP143: Verification logic
...
Includes simplifications by Eric Lombrozo.
8 years ago
Pieter Wuille
0ef1dd3e11
Refactor script validation to observe amounts
...
This is a preparation for BIP143 support.
8 years ago
Pieter Wuille
449f9b8deb
BIP141: Witness program
8 years ago
MarcoFalke
fa24439ff3
Bump copyright headers to 2015
9 years ago
Pieter Wuille
114b5812f6
Prevector type
9 years ago
Jorge Timón
627b9deff4
Policy: MOVEONLY: Create policy/policy.h with some constants
9 years ago
Pieter Wuille
9b4e7d9a5e
Add DummySignatureCreator which just creates zeroed sigs
9 years ago
Pieter Wuille
18051c7fbd
Abstract out Ctransaction-specific signing into TransactionSignatureCreator
9 years ago
Pieter Wuille
9fddceda44
Avoid storing a reference passed to SignatureChecker constructors
10 years ago
Pieter Wuille
858809a33e
Use separate SignatureChecker for CMutableTransaction
10 years ago
sandakersmann
f914f1a746
Added "Core" to copyright headers
...
Github-Pull: #5494
Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
10 years ago
Luke Dashjr
d227011184
MOVEONLY: core/ -> primitives/
10 years ago
Michael Ford
b9a36b15bf
Make comments in /src/script doxygen compatible
10 years ago
Pieter Wuille
1f847936c9
Avoid a bunch of copying/conversion in script/sign
10 years ago
jtimon
4a3587d8db
MOVEONLY: Separate CTransaction and dependencies from core
10 years ago
Cory Fields
e9ca4280f3
script: add ToByteVector() for converting anything with begin/end
...
This should move to a util header once their dependencies are cleaned up.
10 years ago
Pieter Wuille
e790c370b5
Replace SCRIPT_VERIFY_NOCACHE by flag directly to checker
10 years ago
Pieter Wuille
5c1e798a8e
Make signature cache optional
10 years ago
Pieter Wuille
c7829ea797
Abstract out SignatureChecker
10 years ago
Philip Kaufmann
2d79bba36b
cleanup new script files (no code changes)
...
- add missing header end comments
- ensure alphabetical ordering
- update copyright year and license
10 years ago
jtimon
6dcfda2dc4
Don't pass nHashType to EvalScript nor CheckSig
10 years ago
jtimon
2b23a87599
Don't pass nHashType to VerifyScript
10 years ago
jtimon
e088d65acb
Separate script/sign
10 years ago
jtimon
9294a4bbe7
Separate CScriptCompressor
10 years ago
jtimon
c4408a6c85
Separate script/standard
10 years ago
jtimon
da03e6ed7c
Separate script/interpreter
10 years ago
jtimon
cbd22a50c4
Move CScript class and dependencies to script/script
10 years ago
jtimon
86dbeea2cd
Rename script.h/.cpp to scriptutils.h/.cpp (plus remove duplicated includes)
10 years ago
Peter Todd
8e44f2e00a
Clarify 'compressed nor uncompressed' error message
10 years ago
Philip Kaufmann
a264e445ff
remove dup include of foreach.hpp in script.cpp
10 years ago
jtimon
53efb09e4c
Discover some missing includes
10 years ago
Wladimir J. van der Laan
ad49c256c3
Split up util.cpp/h
...
Split up util.cpp/h into:
- string utilities (hex, base32, base64): no internal dependencies, no dependency on boost (apart from foreach)
- money utilities (parsesmoney, formatmoney)
- time utilities (gettime*, sleep, format date):
- and the rest (logging, argument parsing, config file parsing)
The latter is basically the environment and OS handling,
and is stripped of all utility functions, so we may want to
rename it to something else than util.cpp/h for clarity (Matt suggested
osinterface).
Breaks dependency of sha256.cpp on all the things pulled in by util.
10 years ago
Peter Todd
aa41ac216e
Test IsPushOnly() with invalid push
10 years ago
jtimon
54e658f249
Remove unused CKeyStoreIsMineVisitor
10 years ago
Philip Kaufmann
6354935c48
move rand functions from util to new random.h/.cpp
10 years ago
JaSK
a3e192a327
replaced MINE_ with ISMINE_
10 years ago
Pieter Wuille
d5087d1ba0
Use script matching rather than destination matching for watch-only.
...
This changes the keystore data format, wallet format and IsMine logic
to detect watch-only outputs based on direct script matching rather
than first trying to convert outputs to destinations (addresses).
The reason is that we don't know how the software that has the spending
keys works. It may support the same types of scripts as us, but that is
not guaranteed. Furthermore, it removes the ambiguity between addresses
used as identifiers for output scripts or identifiers for public keys.
One practical implication is that adding a normal pay-to-pubkey-hash
address via importaddress will not cause payments to the corresponding
full public key to be detected as IsMine. If that is wanted, add those
scripts directly (importaddress now also accepts any hex-encoded script).
Conflicts:
src/wallet.cpp
10 years ago