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
F3402663: D6115.id20472.diff
Mon, Dec 2, 6:01 PM
Unknown Object (File)
Sat, Nov 30, 5:34 PM
Unknown Object (File)
Sat, Nov 30, 10:06 AM
Unknown Object (File)
Sat, Nov 30, 10:06 AM
Unknown Object (File)
Sat, Nov 30, 10:06 AM
Unknown Object (File)
Sat, Nov 30, 6:56 AM
Unknown Object (File)
Oct 26 2024, 10:55 PM
Unknown Object (File)
Oct 26 2024, 10:55 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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage