| 191 | } |
| 192 | |
| 193 | std::string CryptoModule::generateAndGetPrekey() { |
| 194 | try { |
| 195 | this->vodozemacAccount->generate_prekey(); |
| 196 | return std::string(this->vodozemacAccount->prekey()); |
| 197 | } catch (const std::exception &e) { |
| 198 | throw std::runtime_error( |
| 199 | "error generateAndGetPrekey => " + std::string(e.what())); |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | void CryptoModule::markPrekeyAsPublished() { |
| 204 | this->vodozemacAccount->mark_prekey_as_published(); |
no test coverage detected