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
F3392766: D6115.id20472.diff
Sat, Nov 30, 10:06 AM
F3392762: D6115.id20453.diff
Sat, Nov 30, 10:06 AM
F3392761: D6115.id.diff
Sat, Nov 30, 10:06 AM
F3392083: D6115.diff
Sat, Nov 30, 6:56 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:54 PM
Unknown Object (File)
Oct 26 2024, 10:47 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