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
F2067403: D9074.id30729.diff
Fri, Jun 21, 2:35 PM
Unknown Object (File)
Fri, Jun 21, 12:33 AM
Unknown Object (File)
Sat, Jun 15, 11:09 PM
Unknown Object (File)
Sat, Jun 15, 9:55 PM
Unknown Object (File)
Wed, Jun 12, 11:10 PM
Unknown Object (File)
Sun, May 26, 10:19 AM
Unknown Object (File)
May 19 2024, 9:09 AM
Unknown Object (File)
May 19 2024, 9:09 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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