Page MenuHomePhabricator

[native] expose prekey generation to js
ClosedPublic

Authored by varun on Sep 4 2023, 9:37 PM.
Tags
None
Referenced Files
F3348337: D9076.diff
Fri, Nov 22, 2:29 PM
Unknown Object (File)
Sat, Nov 9, 11:41 AM
Unknown Object (File)
Sat, Nov 9, 11:41 AM
Unknown Object (File)
Sat, Nov 9, 11:41 AM
Unknown Object (File)
Fri, Nov 8, 8:08 AM
Unknown Object (File)
Mon, Oct 28, 1:24 PM
Unknown Object (File)
Mon, Oct 28, 12:19 PM
Unknown Object (File)
Sep 27 2024, 10:27 PM
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.