Page MenuHomePhabricator

[native] Generate `primaryIdentityPublicKey` and pass to `landing/SIWE`
ClosedPublic

Authored by atul on Dec 30 2022, 4:52 PM.
Tags
None
Referenced Files
F3392096: D6124.id20469.diff
Sat, Nov 30, 6:57 AM
F3392095: D6124.diff
Sat, Nov 30, 6:57 AM
Unknown Object (File)
Mon, Nov 11, 6:40 PM
Unknown Object (File)
Mon, Nov 4, 1:21 AM
Unknown Object (File)
Mon, Nov 4, 1:21 AM
Unknown Object (File)
Oct 26 2024, 10:55 PM
Unknown Object (File)
Oct 26 2024, 10:55 PM
Unknown Object (File)
Oct 26 2024, 10:55 PM
Subscribers
None

Details

Summary

Make necessary JSI calls to get primaryIdentityPublicKey and set siwe-primary-identity-public-key header before loading landing/SIWE webview.


Depends on D6115

Test Plan

Logged primaryIdentityPublicKey value and ensured it was as expected.

In subsequent diff will capture the value from header and pass to landing/SIWE component so it can be included in the signed SIWEMessage.

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul published this revision for review.Dec 30 2022, 4:53 PM
ashoat added inline comments.
native/account/siwe-panel.react.js
91

The string 'anonymous' passed here doesn't actually get used for anything, does it?

This revision is now accepted and ready to land.Dec 30 2022, 8:53 PM
native/account/siwe-panel.react.js
91

Nah, and based on discussion on Linear + further investigation it looks like the argument can be removed altogether. I'll replace "anonymous" with "PLACEHOLDER" until I get to https://linear.app/comm/issue/ENG-2601/remove-userid-arg-from-jsi-initializecryptoaccount to make it a bit more clear.

anonymous -> PLACEHOLDER

This revision was landed with ongoing or failed builds.Dec 30 2022, 9:20 PM
This revision was automatically updated to reflect the committed changes.