HomePhabricator
Diffusion Comm 331e51b88036

[native] Modify `getUserPublicKey()` JSI function to return `ClientPublicKeys`

Description

[native] Modify getUserPublicKey() JSI function to return ClientPublicKeys

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);
  })();
}, []);

Reviewers: ashoat, tomek

Reviewed By: ashoat

Differential Revision: https://phab.comm.dev/D6115

Details

Provenance
atulAuthored on Dec 30 2022, 3:21 PM
Reviewer
ashoat
Differential Revision
D6115: [native] Modify `getUserPublicKey()` JSI function to return `ClientPublicKeys`
Parents
rCOMM0f079fec2c9a: [lib] Include COMM_ALCHEMY_KEY in web Webpack build as well
Branches
Unknown
Tags
Unknown