Page MenuHomePhabricator

[native] Modify `getUserPublicKey()` JSI function to return `ClientPublicKeys`
ClosedPublic

Authored by atul on Dec 30 2022, 3:23 PM.
Tags
None
Referenced Files
F5192859: D6115.id20453.diff
Fri, Apr 4, 6:35 PM
Unknown Object (File)
Sat, Mar 8, 6:51 PM
Unknown Object (File)
Feb 17 2025, 9:05 PM
Unknown Object (File)
Feb 17 2025, 9:05 PM
Unknown Object (File)
Feb 17 2025, 9:05 PM
Unknown Object (File)
Feb 17 2025, 9:05 PM
Unknown Object (File)
Feb 13 2025, 10:09 AM
Unknown Object (File)
Jan 31 2025, 11:12 PM
Subscribers
None

Details

Summary

Right now getUserPublicKey() returns stringified JSON, we want an object of type ClientPublicKeys instead.

Test Plan

Added the following to privacy-preferences.react.js and logged values to ensure that they were as expected:

React.useEffect(() => {
  (async () => {
    await commCoreModule.initializeCryptoAccount('ABC');
    const { curve25519, ed25519 } = await commCoreModule.getUserPublicKey();
    console.log(curve25519);
    console.log(ed25519);
  })();
}, []);

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable