Modified the function to accept any vector of bytes, not only strings (and thus removed the cast to uint8_t*).
Details
Details
Checked that commCoreModule.verifySignature() called from JS still correctly verifies string messages.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
| native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp | ||
|---|---|---|
| 2076–2077 ↗ | (On Diff #47890) | Conversion of std::string to std::vector<uint8_t> (typedefed as OlmBuffer) is straightforward because string.length() and iteration on strings are char/byte-wise. |