Changeset View
Changeset View
Standalone View
Standalone View
src/test/descriptor_tests.cpp
Show All 24 Lines | |||||
} | } | ||||
constexpr int DEFAULT = 0; | constexpr int DEFAULT = 0; | ||||
// Expected to be ranged descriptor | // Expected to be ranged descriptor | ||||
constexpr int RANGE = 1; | constexpr int RANGE = 1; | ||||
// Derivation needs access to private keys | // Derivation needs access to private keys | ||||
constexpr int HARDENED = 2; | constexpr int HARDENED = 2; | ||||
// This descriptor is not expected to be solvable | // This descriptor is not expected to be solvable | ||||
constexpr int UNSOLVABLE = 4; | // constexpr int UNSOLVABLE = 4; | ||||
// We can sign with this descriptor (this is not true when actual BIP32 | // We can sign with this descriptor (this is not true when actual BIP32 | ||||
// derivation is used, as that's not integrated in our signing code) | // derivation is used, as that's not integrated in our signing code) | ||||
constexpr int SIGNABLE = 8; | constexpr int SIGNABLE = 8; | ||||
std::string MaybeUseHInsteadOfApostrophy(std::string ret) { | std::string MaybeUseHInsteadOfApostrophy(std::string ret) { | ||||
if (InsecureRandBool()) { | if (InsecureRandBool()) { | ||||
while (true) { | while (true) { | ||||
auto it = ret.find("'"); | auto it = ret.find("'"); | ||||
▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines |