Page MenuHomePhabricator

[client-backup] extract logic for getting primary identity public key
ClosedPublic

Authored by kamil on Sep 4 2023, 1:53 AM.
Tags
None
Referenced Files
F2129961: D9074.diff
Thu, Jun 27, 2:27 PM
Unknown Object (File)
Tue, Jun 25, 11:30 AM
Unknown Object (File)
Tue, Jun 25, 11:14 AM
Unknown Object (File)
Tue, Jun 25, 4:20 AM
Unknown Object (File)
Tue, Jun 25, 4:20 AM
Unknown Object (File)
Tue, Jun 25, 4:20 AM
Unknown Object (File)
Tue, Jun 25, 4:20 AM
Unknown Object (File)
Tue, Jun 25, 4:20 AM
Subscribers

Details

Summary

This code is duplicated and will be duplicated, so wrapping this in one function.

Depends on D9001

Test Plan

Verify function result is correct (SIWE login)

Diff Detail

Repository
rCOMM Comm
Branch
land-client-backup
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
marcin requested changes to this revision.Sep 5 2023, 1:48 AM
  1. Primary keyword is not valid when talking about the "main" olm account - the convention is to use Content keyword.
  2. Identity keyword refers to curve25519. ed25519 is signing key.

That said the correct name for this function is getContentSigningKey. This is not a nit - this is important to stick to this naming convention as those keys are used across different programming languages.

This revision now requires changes to proceed.Sep 5 2023, 1:48 AM

rename to getContentSigningKey

marcin added inline comments.
native/account/siwe-panel.react.js
83 ↗(On Diff #30742)

If it doesn't takie to much effort it would be nice to rename this function as well as it looks like naming discrepancy from the first sight.

This revision is now accepted and ready to land.Sep 5 2023, 2:22 AM