aboutsummaryrefslogtreecommitdiff
path: root/src/base58.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headers to 2018DrahtBot2018-07-271-1/+1
|
* use base58 map instead of strchr()Kevin Pan2018-03-211-4/+21
|
* Split key_io (address/key encodings) off from base58Pieter Wuille2018-02-191-214/+0
|
* Stop using CBase58Data for ext keysPieter Wuille2018-02-191-61/+47
|
* Replace CBitcoinSecret with {Encode,Decode}SecretPieter Wuille2018-02-191-26/+22
|
* Increment MIT Licence copyright header year on files modified in 2017Akira Takizawa2018-01-031-1/+1
|
* scripted-diff: Replace #include "" with #include <> (ryanofsky)MeshCollider2017-11-161-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -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-
* Merge #10961: Improve readability of DecodeBase58Check(...)Wladimir J. van der Laan2017-10-091-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c6a995e Improve readability of DecodeBase58Check(...) (practicalswift) Pull request description: Use the more readable form ... ```c++ &vchRet[vchRet.size() - 4] ``` ... instead of ... ```c++ &v.end()[-n] ``` Has the added benefit of eliminating a spurious static analyzer warning about improper use of negative values. Tree-SHA512: 5895310c189e9322082c28f34342ff9a6c238e2cae3f204521111c8a7981bc555af60b42de082c91608c1125dfc244a65c4faf929249a067a51435e2be74cb39
| * Improve readability of DecodeBase58Check(...)practicalswift2017-08-241-1/+1
| |
* | Implement BIP173 addresses and testsPieter Wuille2017-09-281-1/+61
| |
* | Implement {Encode,Decode}Destination without CBitcoinAddressPieter Wuille2017-09-231-81/+49
| |
* | Remove unused GetKeyID and IsScript methods from CBitcoinAddressJoão Barbosa2017-09-061-17/+0
| |
* | Move CBitcoinAddress to base58.cppPieter Wuille2017-09-061-0/+24
| |
* | Introduce wrappers around CBitcoinAddressPieter Wuille2017-09-061-0/+22
|/ | | | | | | This patch removes the need for the intermediary Base58 type CBitcoinAddress, by providing {Encode,Decode,IsValid}Destination function that directly operate on the conversion between strings and CTxDestination.
* Declare single-argument (non-converting) constructors "explicit"practicalswift2017-08-161-1/+1
| | | | In order to avoid unintended implicit conversions.
* scripted-diff: Use the C++11 keyword nullptr to denote the pointer literal ↵practicalswift2017-08-071-1/+1
| | | | | | | | | | | | | instead of the macro NULL -BEGIN VERIFY SCRIPT- sed -i 's/\<NULL\>/nullptr/g' src/*.cpp src/*.h src/*/*.cpp src/*/*.h src/qt/*/*.cpp src/qt/*/*.h src/wallet/*/*.cpp src/wallet/*/*.h src/support/allocators/*.h sed -i 's/Prefer nullptr, otherwise SAFECOOKIE./Prefer NULL, otherwise SAFECOOKIE./g' src/torcontrol.cpp sed -i 's/tor: Using nullptr authentication/tor: Using NULL authentication/g' src/torcontrol.cpp sed -i 's/METHODS=nullptr/METHODS=NULL/g' src/test/torcontrol_tests.cpp src/torcontrol.cpp sed -i 's/nullptr certificates/NULL certificates/g' src/qt/paymentserver.cpp sed -i 's/"nullptr"/"NULL"/g' src/torcontrol.cpp src/test/torcontrol_tests.cpp -END VERIFY SCRIPT-
* Fix subscript[0] in base58.cppJeremy Rubin2017-07-081-6/+6
|
* [trivial] Add end of namespace commentspracticalswift2017-05-311-1/+1
|
* [trivial] Fix typos in commentspracticalswift2017-03-211-1/+1
|
* Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Use prefix operator in for loop of DecodeBase58.Jiaxing Wang2016-09-161-1/+1
|
* base58: Improve DecodeBase58 performance.Jiaxing Wang2016-09-151-3/+7
| | | | | Improve DecodeBase58 performance the same way as commit 3252208 did for EncodeBase58.
* CBase58Data::SetString: cleanse the full vectorKaz Wesley2016-04-211-1/+1
| | | | | | SetString seems to be passing the length of the wrong variable to memory_cleanse, resulting in the last byte of the temporary buffer not being securely erased.
* Improve EncodeBase58 performanceJoão Barbosa2016-03-091-3/+8
|
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* openssl: abstract out OPENSSL_cleanseCory Fields2015-02-151-1/+1
| | | | | | This makes it easier for us to replace it if desired, since it's now only in one spot. Also, it avoids the openssl include from allocators.h, which essentially forced openssl to be included from every compilation unit.
* Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* Convert remaining comments in /src to doxygen formatMichael Ford2014-11-211-2/+2
| | | | | | | | | | - Update comments in checkpoints to be doxygen compatible - Update comments in checkqueue to be doxygen compatible - Update coins to be doxygen compatible - Fix comment typo in crypter.h - Update licenses/copyright dates Closes #5325 #5184 #5183 #5182
* Fixing out of bounds error in GetKey()ENikS2014-09-231-1/+2
|
* Apply clang-format on some infrequently-updated filesPieter Wuille2014-09-191-49/+80
|
* Broken addresses on command line no longer trigger testnet.Ross Nicoll2014-08-301-2/+6
| | | | | When passing a bitcoin: URI on the command line, invalid addresses do not incorrectly send the user to the test network.
* ensure clean and consistent "namespace" usagePhilip Kaufmann2014-06-261-1/+3
| | | | | | - remove some missplaced ; - ensure end of a namespace is clearly visible - use same formatting when using namespace
* base58: add paranoid return value checksJeff Garzik2014-06-111-5/+4
|
* Move base58.h implementation code to base58.cppPieter Wuille2014-05-101-0/+183
|
* Replace DecodeBase58/EncodeBase58 with direct implementation.Pieter Wuille2014-04-221-0/+91
This removes the bignum/OpenSSL dependency. The base58 transformation code is also moved to a separate .cpp file.