Page MenuHomePhabricator

[native] expose prekey generation to js
ClosedPublic

Authored by varun on Sep 4 2023, 9:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 13, 2:43 AM
Unknown Object (File)
Sat, May 4, 12:06 PM
Unknown Object (File)
Sat, May 4, 12:06 PM
Unknown Object (File)
Sat, May 4, 12:06 PM
Unknown Object (File)
Sat, May 4, 12:03 PM
Unknown Object (File)
Sat, May 4, 11:30 AM
Unknown Object (File)
Apr 4 2024, 8:39 AM
Unknown Object (File)
Apr 4 2024, 8:39 AM
Subscribers

Details

Summary

we want to send a contentPrekey and a notificationPrekey to the identity service on registration

Test Plan

console.log(await commCoreModule.generateAndGetPrekey()) returns a prekey string

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Sep 4 2023, 9:54 PM
Harbormaster failed remote builds in B22372: Diff 30739!

console.log output:

{"curve25519":{"AAAAAg":"sexB8fblTCASSVSMtKkcVsLHbheayl11uH76AQO33h4"}}
varun requested review of this revision.Sep 4 2023, 10:36 PM
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
531 ↗(On Diff #30740)

I would name this method generateAndGetContentPrekey to avoid confusion.

Seems reasonable, defer to @marcin since he has more context

This revision is now accepted and ready to land.Sep 6 2023, 2:03 PM
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
531 ↗(On Diff #30740)

in a later diff I change this method to return both prekeys and their respective signatures. renamed it to generateAndGetPrekeys at that point

This revision was automatically updated to reflect the committed changes.