Page MenuHomePhabricator

Implement method to sign message
ClosedPublic

Authored by marcin on Feb 21 2023, 10:41 AM.
Tags
None
Referenced Files
F1688287: D6821.diff
Wed, May 1, 9:58 AM
Unknown Object (File)
Sun, Apr 28, 6:49 AM
Unknown Object (File)
Sun, Apr 28, 6:49 AM
Unknown Object (File)
Sun, Apr 28, 6:49 AM
Unknown Object (File)
Sun, Apr 28, 6:48 AM
Unknown Object (File)
Sun, Apr 28, 6:48 AM
Unknown Object (File)
Sun, Apr 28, 6:47 AM
Unknown Object (File)
Sun, Apr 28, 6:25 AM
Subscribers

Details

Summary

This differential implements method to sign a message using private ed25519 key of an olm account. Counterpart method to verify signature is implemented as well

Test Plan

In CommCoreModule call this method on cryptoModule attribute on some data. Copy returned signature. Pass this signatur back to verify method, ensure app does not crash.

Diff Detail

Repository
rCOMM Comm
Branch
marcin/eng-2901
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

marcin retitled this revision from Implement method to sind message to Implement method to sign message.Feb 21 2023, 10:44 AM

Great work finding the right utilities in the Olm library!!

native/cpp/CommonCpp/CryptoTools/CryptoModule.cpp
337

Should this be an "olm error" + empty string?

native/cpp/CommonCpp/CryptoTools/CryptoModule.cpp
337

Thanks for catching! This is definitely a mistake, we should extract last error from utility object as we do from account in signMessage method. I will change it.

Log error from olmUtility structure when signature verification fails.

This revision is now accepted and ready to land.Feb 27 2023, 2:35 AM
This revision was automatically updated to reflect the committed changes.