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, Jan 3, 11:36 AM
Unknown Object (File)
Fri, Dec 27, 12:13 PM
Unknown Object (File)
Fri, Dec 27, 12:13 PM
Unknown Object (File)
Fri, Dec 27, 12:13 PM
Unknown Object (File)
Fri, Dec 27, 12:00 PM
Unknown Object (File)
Tue, Dec 10, 11:44 PM
Unknown Object (File)
Dec 4 2024, 8:31 AM
Unknown Object (File)
Dec 4 2024, 8:30 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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage