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)
Fri, Apr 18, 3:41 PM
Unknown Object (File)
Fri, Apr 18, 10:41 AM
Unknown Object (File)
Fri, Apr 18, 1:09 AM
Unknown Object (File)
Thu, Apr 17, 11:19 AM
Unknown Object (File)
Wed, Apr 9, 6:04 AM
Unknown Object (File)
Fri, Apr 4, 6:35 PM
Unknown Object (File)
Mar 8 2025, 6:51 PM
Unknown Object (File)
Feb 17 2025, 9:05 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