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
F3369165: D9074.diff
Mon, Nov 25, 10:07 PM
Unknown Object (File)
Fri, Nov 22, 4:12 PM
Unknown Object (File)
Tue, Oct 29, 10:37 AM
Unknown Object (File)
Sun, Oct 27, 4:09 PM
Unknown Object (File)
Oct 23 2024, 6:38 PM
Unknown Object (File)
Oct 22 2024, 12:16 AM
Unknown Object (File)
Oct 2 2024, 11:44 PM
Unknown Object (File)
Sep 27 2024, 11:27 PM
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
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

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