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)
Thu, Nov 28, 3:04 AM
Unknown Object (File)
Thu, Nov 28, 12:46 AM
Unknown Object (File)
Sat, Nov 16, 1:06 AM
Unknown Object (File)
Wed, Nov 13, 12:27 AM
Unknown Object (File)
Oct 26 2024, 10:55 PM
Unknown Object (File)
Oct 26 2024, 10:55 PM
Unknown Object (File)
Oct 26 2024, 10:55 PM
Unknown Object (File)
Oct 26 2024, 10:55 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
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 ↗(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.