src/utils/message.cpp
/**
 * @brief Verify the message contents.
 *
 * @return bool
 **/
@brief Verify the message contents.
@return bool
@brief Verify the message contents . @return bool
bool Ark::Crypto::Utils::Message::verify() {
  const auto unsignedMessage = reinterpret_cast<const unsigned char *>(this->message.c_str());
  const auto hash = Sha256::getHash(unsignedMessage, this->message.length());
  return cryptoVerify(this->publicKey, hash, this->signature);
}
bool Ark :: Crypto :: Utils :: Message :: verify ( ) { const auto unsignedMessage = reinterpret_cast < const unsigned char * > ( this -> message . c_str ( ) ) ; const auto hash = Sha256 :: getHash ( unsignedMessage , this -> message . length ( ) ) ; return cryptoVerify ( this -> publicKey , hash , this -> signature ) ; }
@brief Verify the message contents.
@brief Verify the message contents .
// cast message to unsigned char*