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
Unknown Object (File)
Sun, Apr 28, 9:07 AM
Unknown Object (File)
Sun, Apr 28, 9:07 AM
Unknown Object (File)
Sun, Apr 28, 9:03 AM
Unknown Object (File)
Sun, Apr 28, 8:20 AM
Unknown Object (File)
Sat, Apr 6, 6:11 AM
Unknown Object (File)
Fri, Apr 5, 3:59 AM
Unknown Object (File)
Apr 2 2024, 12:28 AM
Unknown Object (File)
Apr 2 2024, 12:28 AM
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