Page MenuHomePhabricator

Implement method to sign message
ClosedPublic

Authored by marcin on Feb 21 2023, 10:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 8, 2:58 AM
Unknown Object (File)
Thu, Mar 28, 5:01 PM
Unknown Object (File)
Thu, Mar 28, 5:01 PM
Unknown Object (File)
Thu, Mar 28, 5:01 PM
Unknown Object (File)
Thu, Mar 28, 5:01 PM
Unknown Object (File)
Thu, Mar 28, 5:01 PM
Unknown Object (File)
Thu, Mar 28, 5:00 PM
Unknown Object (File)
Thu, Mar 28, 4:54 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #22874)

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

native/cpp/CommonCpp/CryptoTools/CryptoModule.cpp
337 ↗(On Diff #22874)

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.