mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-19 09:53:47 +01:00
util: move util/message to common/signmessage
Move util/message to common/signmessage so it is named more clearly, and because the util library is not supposed to depend on other libraries besides the crypto library. The signmessage functions use CKey, CPubKey, PKHash, and DecodeDestination functions in the consensus and common libraries.
This commit is contained in:
parent
cc5f29fbea
commit
6861f954f8
@ -144,6 +144,7 @@ BITCOIN_CORE_H = \
|
||||
compat/cpuid.h \
|
||||
compat/endian.h \
|
||||
common/settings.h \
|
||||
common/signmessage.h \
|
||||
common/system.h \
|
||||
compressor.h \
|
||||
consensus/consensus.h \
|
||||
@ -308,7 +309,6 @@ BITCOIN_CORE_H = \
|
||||
util/hasher.h \
|
||||
util/insert.h \
|
||||
util/macros.h \
|
||||
util/message.h \
|
||||
util/moneystr.h \
|
||||
util/overflow.h \
|
||||
util/overloaded.h \
|
||||
@ -680,6 +680,7 @@ libbitcoin_common_a_SOURCES = \
|
||||
common/interfaces.cpp \
|
||||
common/run_command.cpp \
|
||||
common/settings.cpp \
|
||||
common/signmessage.cpp \
|
||||
common/system.cpp \
|
||||
common/url.cpp \
|
||||
compressor.cpp \
|
||||
@ -742,7 +743,6 @@ libbitcoin_util_a_SOURCES = \
|
||||
util/hasher.cpp \
|
||||
util/sock.cpp \
|
||||
util/syserror.cpp \
|
||||
util/message.cpp \
|
||||
util/moneystr.cpp \
|
||||
util/rbf.cpp \
|
||||
util/readwritefile.cpp \
|
||||
|
@ -3,12 +3,12 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <common/signmessage.h>
|
||||
#include <hash.h>
|
||||
#include <key.h>
|
||||
#include <key_io.h>
|
||||
#include <pubkey.h>
|
||||
#include <uint256.h>
|
||||
#include <util/message.h>
|
||||
#include <util/strencodings.h>
|
||||
|
||||
#include <cassert>
|
@ -3,8 +3,8 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#ifndef BITCOIN_UTIL_MESSAGE_H
|
||||
#define BITCOIN_UTIL_MESSAGE_H
|
||||
#ifndef BITCOIN_COMMON_SIGNMESSAGE_H
|
||||
#define BITCOIN_COMMON_SIGNMESSAGE_H
|
||||
|
||||
#include <uint256.h>
|
||||
|
||||
@ -74,4 +74,4 @@ uint256 MessageHash(const std::string& message);
|
||||
|
||||
std::string SigningResultString(const SigningResult res);
|
||||
|
||||
#endif // BITCOIN_UTIL_MESSAGE_H
|
||||
#endif // BITCOIN_COMMON_SIGNMESSAGE_H
|
@ -6,13 +6,13 @@
|
||||
#define BITCOIN_INTERFACES_WALLET_H
|
||||
|
||||
#include <addresstype.h>
|
||||
#include <common/signmessage.h>
|
||||
#include <consensus/amount.h>
|
||||
#include <interfaces/chain.h>
|
||||
#include <pubkey.h>
|
||||
#include <script/script.h>
|
||||
#include <support/allocators/secure.h>
|
||||
#include <util/fs.h>
|
||||
#include <util/message.h>
|
||||
#include <util/result.h>
|
||||
#include <util/ui_change_type.h>
|
||||
|
||||
|
@ -10,9 +10,9 @@
|
||||
#include <qt/platformstyle.h>
|
||||
#include <qt/walletmodel.h>
|
||||
|
||||
#include <common/signmessage.h> // For MessageSign(), MessageVerify()
|
||||
#include <config/bitcoin-config.h> // IWYU pragma: keep
|
||||
#include <key_io.h>
|
||||
#include <util/message.h> // For MessageSign(), MessageVerify()
|
||||
#include <wallet/wallet.h>
|
||||
|
||||
#include <vector>
|
||||
|
@ -3,6 +3,7 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <common/signmessage.h>
|
||||
#include <key.h>
|
||||
#include <key_io.h>
|
||||
#include <rpc/protocol.h>
|
||||
@ -10,7 +11,6 @@
|
||||
#include <rpc/server.h>
|
||||
#include <rpc/util.h>
|
||||
#include <univalue.h>
|
||||
#include <util/message.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
|
@ -3,12 +3,12 @@
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <chainparams.h>
|
||||
#include <common/signmessage.h>
|
||||
#include <key_io.h>
|
||||
#include <test/fuzz/FuzzedDataProvider.h>
|
||||
#include <test/fuzz/fuzz.h>
|
||||
#include <test/fuzz/util.h>
|
||||
#include <util/chaintype.h>
|
||||
#include <util/message.h>
|
||||
#include <util/strencodings.h>
|
||||
|
||||
#include <cassert>
|
||||
|
@ -3,6 +3,7 @@
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <clientversion.h>
|
||||
#include <common/signmessage.h> // For MessageSign(), MessageVerify(), MESSAGE_MAGIC
|
||||
#include <hash.h> // For Hash()
|
||||
#include <key.h> // For CKey
|
||||
#include <sync.h>
|
||||
@ -12,7 +13,6 @@
|
||||
#include <util/bitdeque.h>
|
||||
#include <util/fs.h>
|
||||
#include <util/fs_helpers.h>
|
||||
#include <util/message.h> // For MessageSign(), MessageVerify(), MESSAGE_MAGIC
|
||||
#include <util/moneystr.h>
|
||||
#include <util/overflow.h>
|
||||
#include <util/readwritefile.h>
|
||||
|
@ -2,9 +2,9 @@
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <common/signmessage.h>
|
||||
#include <key_io.h>
|
||||
#include <rpc/util.h>
|
||||
#include <util/message.h>
|
||||
#include <wallet/rpc/util.h>
|
||||
#include <wallet/wallet.h>
|
||||
|
||||
|
@ -6,13 +6,13 @@
|
||||
#define BITCOIN_WALLET_SCRIPTPUBKEYMAN_H
|
||||
|
||||
#include <addresstype.h>
|
||||
#include <common/signmessage.h>
|
||||
#include <logging.h>
|
||||
#include <psbt.h>
|
||||
#include <script/descriptor.h>
|
||||
#include <script/script.h>
|
||||
#include <script/signingprovider.h>
|
||||
#include <util/error.h>
|
||||
#include <util/message.h>
|
||||
#include <util/result.h>
|
||||
#include <util/time.h>
|
||||
#include <wallet/crypter.h>
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include <coins.h>
|
||||
#include <common/args.h>
|
||||
#include <common/settings.h>
|
||||
#include <common/signmessage.h>
|
||||
#include <common/system.h>
|
||||
#include <consensus/amount.h>
|
||||
#include <consensus/consensus.h>
|
||||
@ -52,7 +53,6 @@
|
||||
#include <util/error.h>
|
||||
#include <util/fs.h>
|
||||
#include <util/fs_helpers.h>
|
||||
#include <util/message.h>
|
||||
#include <util/moneystr.h>
|
||||
#include <util/result.h>
|
||||
#include <util/string.h>
|
||||
|
Loading…
Reference in New Issue
Block a user