Changeset View
Changeset View
Standalone View
Standalone View
src/util/message.cpp
Show All 13 Lines | |||||
#include <string> | #include <string> | ||||
#include <vector> | #include <vector> | ||||
/** | /** | ||||
* Text used to signify that a signed message follows and to prevent | * Text used to signify that a signed message follows and to prevent | ||||
* inadvertently signing a transaction. | * inadvertently signing a transaction. | ||||
*/ | */ | ||||
const std::string MESSAGE_MAGIC = "Bitcoin Signed Message:\n"; | const std::string MESSAGE_MAGIC = "eCash Signed Message:\n"; | ||||
MessageVerificationResult MessageVerify(const CChainParams ¶ms, | MessageVerificationResult MessageVerify(const CChainParams ¶ms, | ||||
const std::string &address, | const std::string &address, | ||||
const std::string &signature, | const std::string &signature, | ||||
const std::string &message) { | const std::string &message) { | ||||
CTxDestination destination = DecodeDestination(address, params); | CTxDestination destination = DecodeDestination(address, params); | ||||
if (!IsValidDestination(destination)) { | if (!IsValidDestination(destination)) { | ||||
return MessageVerificationResult::ERR_INVALID_ADDRESS; | return MessageVerificationResult::ERR_INVALID_ADDRESS; | ||||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |