Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/rawtransaction.cpp
Show All 29 Lines | |||||
#include <script/sign.h> | #include <script/sign.h> | ||||
#include <script/signingprovider.h> | #include <script/signingprovider.h> | ||||
#include <script/standard.h> | #include <script/standard.h> | ||||
#include <txmempool.h> | #include <txmempool.h> | ||||
#include <uint256.h> | #include <uint256.h> | ||||
#include <util/error.h> | #include <util/error.h> | ||||
#include <util/moneystr.h> | #include <util/moneystr.h> | ||||
#include <util/strencodings.h> | #include <util/strencodings.h> | ||||
#include <util/string.h> | |||||
#include <validation.h> | #include <validation.h> | ||||
#include <validationinterface.h> | #include <validationinterface.h> | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <numeric> | #include <numeric> | ||||
#include <univalue.h> | #include <univalue.h> | ||||
▲ Show 20 Lines • Show All 1,113 Lines • ▼ Show 20 Lines | static std::string WriteHDKeypath(std::vector<uint32_t> &keypath) { | ||||
for (uint32_t num : keypath) { | for (uint32_t num : keypath) { | ||||
keypath_str += "/"; | keypath_str += "/"; | ||||
bool hardened = false; | bool hardened = false; | ||||
if (num & 0x80000000) { | if (num & 0x80000000) { | ||||
hardened = true; | hardened = true; | ||||
num &= ~0x80000000; | num &= ~0x80000000; | ||||
} | } | ||||
keypath_str += std::to_string(num); | keypath_str += ToString(num); | ||||
if (hardened) { | if (hardened) { | ||||
keypath_str += "'"; | keypath_str += "'"; | ||||
} | } | ||||
} | } | ||||
return keypath_str; | return keypath_str; | ||||
} | } | ||||
static UniValue decodepsbt(const Config &config, | static UniValue decodepsbt(const Config &config, | ||||
▲ Show 20 Lines • Show All 1,014 Lines • Show Last 20 Lines |