HomePhabricator
Diffusion Comm da1f612382ab

[keyserver] Pull `primaryIdentityPublicKey` out of SIWE statement and pass to…

Tags
None
Referenced Files
F312727: 1f2f8c.png
Jan 3 2023, 2:49 PM
File Not Attached
F312726: IMG_2684.PNG
Jan 3 2023, 2:49 PM
File Not Attached
Subscribers
None

Description

[keyserver] Pull primaryIdentityPublicKey out of SIWE statement and pass to siweAccountCreationRequest

Summary:
Use the utility functions introduced earlier in the stack to pull primaryIdentityPublicKey out of the signed SIWE message statement (if it exists).

For native clients we expect the value of primaryIdentityPublicKey to be a string that conforms to primaryIdentityPublicKeyRegex and for web clients we expect null.


Depends on D6132

Test Plan:

  1. public key appears in signing request:

IMG_2684.PNG (2×1 px, 769 KB)

  1. public key properly extracted on keyserver:

1f2f8c.png (362×3 px, 196 KB)

Reviewers: ashoat, tomek

Reviewed By: ashoat

Differential Revision: https://phab.comm.dev/D6133