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
No Lint Coverage - Unit
No Test Coverage
Event Timeline
| native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp | ||
|---|---|---|
| 2076–2077 | 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. | |