| 350 | } |
| 351 | |
| 352 | std::string CryptoModule::signMessage(const std::string &message) { |
| 353 | try { |
| 354 | return std::string(this->vodozemacAccount->sign(message)); |
| 355 | } catch (const std::exception &e) { |
| 356 | throw std::runtime_error("error signMessage => " + std::string(e.what())); |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | void CryptoModule::verifySignature( |
| 361 | const std::string &publicKey, |
no test coverage detected