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
Unknown Object (File)
Fri, Dec 13, 2:30 AM
Unknown Object (File)
Fri, Nov 29, 12:38 PM
Unknown Object (File)
Tue, Nov 26, 6:03 AM
Unknown Object (File)
Tue, Nov 26, 5:02 AM
Unknown Object (File)
Mon, Nov 25, 11:42 PM
Unknown Object (File)
Mon, Nov 25, 10:07 PM
Unknown Object (File)
Nov 22 2024, 4:12 PM
Unknown Object (File)
Oct 29 2024, 10:37 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