Page MenuHomePhabricator

[native] expose prekey generation to js
ClosedPublic

Authored by varun on Sep 4 2023, 9:37 PM.
Tags
None
Referenced Files
F3388445: D9076.id30740.diff
Fri, Nov 29, 2:22 PM
Unknown Object (File)
Fri, Nov 22, 7:10 PM
Unknown Object (File)
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)
Oct 28 2024, 1:24 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
Branch
native (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

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.