Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | enum WalletFlags : uint64_t { | ||||
//! then improperly reinitializing it. | //! then improperly reinitializing it. | ||||
WALLET_FLAG_BLANK_WALLET = (1ULL << 33), | WALLET_FLAG_BLANK_WALLET = (1ULL << 33), | ||||
}; | }; | ||||
static constexpr uint64_t KNOWN_WALLET_FLAGS = | static constexpr uint64_t KNOWN_WALLET_FLAGS = | ||||
WALLET_FLAG_AVOID_REUSE | WALLET_FLAG_BLANK_WALLET | | WALLET_FLAG_AVOID_REUSE | WALLET_FLAG_BLANK_WALLET | | ||||
WALLET_FLAG_KEY_ORIGIN_METADATA | WALLET_FLAG_DISABLE_PRIVATE_KEYS; | WALLET_FLAG_KEY_ORIGIN_METADATA | WALLET_FLAG_DISABLE_PRIVATE_KEYS; | ||||
static constexpr uint64_t MUTABLE_WALLET_FLAGS = WALLET_FLAG_AVOID_REUSE; | |||||
static const std::map<std::string, WalletFlags> WALLET_FLAG_MAP{ | static const std::map<std::string, WalletFlags> WALLET_FLAG_MAP{ | ||||
{"avoid_reuse", WALLET_FLAG_AVOID_REUSE}, | {"avoid_reuse", WALLET_FLAG_AVOID_REUSE}, | ||||
{"blank", WALLET_FLAG_BLANK_WALLET}, | {"blank", WALLET_FLAG_BLANK_WALLET}, | ||||
{"key_origin_metadata", WALLET_FLAG_KEY_ORIGIN_METADATA}, | {"key_origin_metadata", WALLET_FLAG_KEY_ORIGIN_METADATA}, | ||||
{"disable_private_keys", WALLET_FLAG_DISABLE_PRIVATE_KEYS}, | {"disable_private_keys", WALLET_FLAG_DISABLE_PRIVATE_KEYS}, | ||||
}; | }; | ||||
extern const std::map<uint64_t, std::string> WALLET_FLAG_CAVEATS; | extern const std::map<uint64_t, std::string> WALLET_FLAG_CAVEATS; | ||||
▲ Show 20 Lines • Show All 1,482 Lines • Show Last 20 Lines |